Users Manual

400 Bad Request already set to use inactive partition on next boot
GET /system/update
Get information about currently active and inactive firmware/system images on sensor.
Template request
GET /api/v1/system/update HTTP/1.1
Host: <rcvisard>
Sample response
HTTP/1.1 200 OK
Content-Type: application/json
{
"active
_
image": {
"image
_
version": "rc
_
visard
_
v1.1.0"
},
"fallback
_
booted": false,
"inactive
_
image": {
"image
_
version": "rc
_
visard
_
v1.0.0"
},
"next
_
boot
_
image": "active
_
image"
}
Response Headers
Content-Type application/json
Status Codes
200 OK successful operation (returns FirmwareInfo)
Referenced Data Models
FirmwareInfo (Section 8.2.3)
POST /system/update
Update firmware/system image with a mender artifact. Reboot is required afterwards in order to activate
updated firmware version.
Template request
POST /api/v1/system/update HTTP/1.1
Host: <rcvisard>
Accept: multipart/form-data
Form Parameters
file mender artifact file (required)
Request Headers
Accept multipart/form-data
Status Codes
200 OK successful operation
400 Bad Request client error, e.g. no valid mender artifact
8.2. REST-API interface 149