update #
Updates an asset.
Only the metadata
can be updated.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:engineId/assets/:_id
Method: PUT
Other protocols #
{
"controller": "device-manager/assets",
"action": "update",
"engineId": "<engineId>",
"_id": "<assetId>",
"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/assets",
"action": "update",
"requestId": "<unique request identifier>",
"result": {
"_id": "<assetId>",
"_source": {
// Asset content
},
}
}
Edit this page on Github(opens new window)