create #
Creates a device.
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/:engineId/devices
Method: POST
Other protocols #
{
"controller": "device-manager/devices",
"action": "create",
"engineId": "<engineId>",
"body": {
"model": "<device model>",
"reference": "<device reference>",
"metadata": {
"<metadata name>": "<metadata value>"
}
}
}
Arguments #
engineId
: Engine ID
Body properties #
model
: Device model namereference
: Device reference (must be unique within a model)metadata
: Object containing metadata
Response #
{
"status": 200,
"error": null,
"controller": "device-manager/devices",
"action": "create",
"requestId": "<unique request identifier>",
"result": {
"_id": "<deviceId>",
"_source": {
// Device content
},
}
}
Edit this page on Github(opens new window)