✔️ Upload firmware
POST {{host}}{{api-path}}/firmwares
To upload the firmwares, following is passed to the headers:
x-bytebeam-tenant: <tenant>
x-bytebeam-api-key: <your api-key>
The response body contains a firmware file and version-number.
The content-type
of the firmware file is multipart/form-data
.
Attention has to be given while uploading a firmware file the version number should not be an existing one.
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"version-number", "value"=>"{{$randomInt}}", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-bytebeam-tenant | string | ||
x-bytebeam-api-key | string |
RESPONSES
status: Created
{"version-number":"2.090","file-name":"temp-file","content-length":104857600}