Upload deployment log
Deprecated
PUT
/api/devices/v1/deployments/device/deployments/{deployment_id}/log
const url = 'https://example.com/api/devices/v1/deployments/device/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/log';const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/devices/v1/deployments/device/deployments/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/log \ --header 'Authorization: Bearer <token>'Store deployment logs in the deployment_logs table.
Delegates to :func:app.services.deployment_logs.append_logs which
inserts one row per message. On FAILED deployments the last ERROR-level
message is also written to firmware_deployments.error_message for
backwards compatibility.
Verifies that the deployment belongs to device before delegating.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” deployment_id
required
Deployment Id
string format: uuid
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Example generated
exampleValidation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}