Upgrade Machine Software (v2.0)
PUT/v2.0/api/tenants/:tenant_id/machines/:machine_id/software/:software_id
Upgrade the machine software.
Request
Path Parameters
The ID of the tenant.
The ID of the device.
The ID of the device software.
- application/json
Body
The device software ID.
The devices for which software upgrades have been scheduled. The list will display a temporary download completed state and then the scheduled upgrade.
ID of the tenant.
The upgrade interval time limit until an upgrade attempt is performed.
The software version for the upgrade.
Responses
- 200
- 400
Successful Operation
- application/json
- Schema
- Example (from schema)
Schema
The device software ID.
The devices for which software upgrades have been scheduled. The list will display a temporary download completed state and then the scheduled upgrade.
ID of the tenant.
The upgrade interval time limit until an upgrade attempt is performed.
The software version for the upgrade.
{
"id": "string",
"scheduled_upgrade": "string",
"tenant_id": "string",
"upgrade_interval": 0,
"upgrade_version": "string"
}
Bad Request
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
_error ErrorResponse[]
The error code.
The error message.
{
"_error": [
{
"code": "string",
"message": "string"
}
]
}
{
"value": {
"_error": [
{
"code": "MACHINE_UNKNOWN"
},
{
"code": "INVALID_JSON_EXTRA_ATTRIBUTE"
},
{
"code": "INVALID_JSON_COMMON_ATTR_MISMATCH"
},
{
"code": "MACHINE_SOFTWARE_CONFIG_VERSION_NOT_FOUND"
},
{
"code": "MACHINE_SOFTWARE_CONFIG_ELEMENT_CLAIMED"
},
{
"code": "MACHINE_SOFTWARE_CONFIG_VERSION_NOT_ALLOCATED"
},
{
"code": "MACHINE_SOFTWARE_CONFIG_VERSION_ALREADY_PRESENT"
}
]
}
}