HTTP Endpoint

get
Update

https://device.nerves-hub.org/device/update
This endpoint allows you to poll for firmware updates.
Request
Response
Request
Headers
X-NervesHub-uuid
required
string
The running firmware's UUID
X-NervesHub-vcs_identifier
optional
string
A version control system tag or identifier on the running firmware if any
X-NervesHub-version
required
string
The running firmware's version number
X-NervesHub-product
optional
string
The product name that's encoded into the running firmware
X-NervesHub-platform
optional
string
The running firmware's platform field
X-NervesHub-description
optional
string
The running firmware's description field
X-NervesHub-author
optional
string
The author metadata in the running firmware
X-NervesHub-architecture
required
string
The device's architecture.
Response
200: OK
A firmware update is available.
{
"update_available": true,
"deployment_id": 12,
"firmware_url": "Some URL",
"firmware_meta": {
"uuid": "12345-6789-0129435",
"architecture": "arm",
"platform": "rpi0",
"product": "MyProduct",
"version": "1.1.10",
"author": "Ron Swanson",
"description": "baconator 3000",
"vcs_identifier": "some_version_control_sha",
"misc": "random data"
}
}