importCatalog #
Creates entries in the provisioning catalog via CSV import
Query Syntax #
HTTP #
URL: http://kuzzle:7512/_/device-manager/devices/_catalog[?refresh=wait_for]
Method: POST
Other protocols #
{
"controller": "device-manager/device",
"action": "importCatalog",
"body": {
"csv": "deviceId,authorized\nDummyTemp-imported,false"
}
}
Kourou #
kourou device-manager/device:importCatalog --body '{ "csv": "deviceId,authorized\nDummyTemp-imported,false" }'
Body properties #
csv
: a csv syntax compatible containing at least this two headersdeviceId,authorized
with their corresponding values
Optional: #
refresh
: if set towait_for
, Kuzzle will not respond until the documents are indexed
Response #
{
"status": 200,
"error": null,
"index": "<index>",
"controller": "device-manager/device",
"action": "importCatalog",
"requestId": "<unique request identifier>",
"result": {}
}
Edit this page on Github (opens new window)