Create Ota Artifact
POST
/api/firmware/{firmware_id}/create-artifact
const url = 'https://example.com/api/firmware/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/create-artifact?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"artifact_name":"example","compression":"gzip","device_types":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url 'https://example.com/api/firmware/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/create-artifact?organization_id=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "artifact_name": "example", "compression": "gzip", "device_types": [ "example" ] }'Create an OTA-Pulse artifact from an uploaded firmware binary.
This converts a raw firmware image into a proper OTA-Pulse artifact that can be installed by the soc-ota-agent.
The artifact will include:
- Proper OTA-Pulse artifact headers
- Device type compatibility information
- Compression (default: gzip)
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” firmware_id
required
Firmware Id
string format: uuid
Query Parameters
Section titled “ Query Parameters ” organization_id
required
Organization Id
string format: uuid
Request Bodyrequired
Section titled “ Request Bodyrequired ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
ArtifactStatusResponse
Response for artifact creation status
object
Example generated
{ "artifact_path": "example", "artifact_size": 1, "checksum": "example", "error": "example", "status": "example"}Validation 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" } ]}