update #
Updates a device.
Only the metadata
can be updated.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:engineId/devices/:_id
Method: PUT
Other protocols #
{
"controller": "device-manager/devices",
"action": "update",
"engineId": "<engineId>",
"_id": "<deviceId>",
"body": {
"metadata": {
"<metadata name>": "<metadata value>"
}
}
}
Arguments #
engineId
: Engine ID_id
: Asset ID
Body properties #
metadata
: Object containing metadata
Response #
{
"status": 200,
"error": null,
"controller": "device-manager/devices",
"action": "update",
"requestId": "<unique request identifier>",
"result": {
"_id": "<deviceId>",
"_source": {
// Device content
},
}
}
Edit this page on Github(opens new window)