Uploads

Firmware file upload endpoints

Upload firmware

post

Upload a firmware binary file to the server.

The file type is determined by the type form field:

  • FIRMWARE — OTA firmware binary (.bin, .zip, .tar, .gz, .hs, .xz, .bz2, .tar.gz, .ota.bin.gz, .bin.gz, .bin.hs, .yml, .yaml)

The maximum file size is 10 MB.

Authentication: Use an OAuth2 Bearer token in the Authorization header.

Authorizations
AuthorizationstringRequired

OAuth2 Bearer token obtained from authentication endpoint

Body
upfilestring · binaryRequired

The firmware file to upload

typestring · enumOptional

Upload file type. Must be FIRMWARE.

Example: FIRMWAREPossible values:
Responses
200

File uploaded successfully. Returns the server path to the uploaded file.

application/json
stringOptional
post
/api/upload

Last updated

Was this helpful?