Uploading the manifest
In Portal: Uploading the manifest
Upload the firmware manifest to Device Management to use it with the firmware update service:
-
Log in to Device Management Portal for your region:
-
Select Firmware update > Manifests from the left menu.
-
Click the Upload manifest button.
-
Enter a name and description for the manifest.
-
Click the Choose file button, and select the file.
-
Click the Upload firmware manifest button.
Using the API: Uploading the manifest
Prepare the manifest to use in a campaign:
-
In the firmware manifest file, update the
payloadUri
field that points at the image; use the URL indatafile
from the step above:`"payloadUri" : "<../path/to/file/FULL_EXAMPLE/mbed-cloud-client-example/file.bin`>"
-
Sign and encode the manifest using the manifest tool.
-
Upload the signed manifest to the service. Note that this endpoint, like that to upload a firmware image, requires data as a multipart form:
curl -X POST https://api.us-east-1.mbedcloud.com/v3/manifests -H "Authorization: Bearer <access_key>" \ -F datafile=@<../path/to/file.bin> \ -F name="<name>" \ -F description="<description>"
You will receive this information:
{ "created_at":"<timestamp>", "datafile":"<url>", "datafile_size":<size>, "description":"<description>", "device_class":"<class_id>", "etag":"<tag>", "id":"<device_id>", "name":"<name>", "object":"firmware-manifest", "timestamp":"<time>", "updated_at":"<timestamp>", "key_table":null }