The Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. It offers interfaces for accessing topologies, events, motion data, and more.
Cognitive Systems App Core API
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/batch
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/batch \
-H 'Authorization: YOUR_API_KEY_HERE'{ "batch_id": 0 }
If not null, the execution of this action will be delayed until this trigger action has completed successfully (status=2xx).
If the trigger action fails (status=4xx), this action will fail with the same status.
000 - Pending start
001 - Waiting for action with trigger_id
002 - Waiting for device to come online
01x - Command was attempted "x" times
100 - Device acknowledged, action started
1xx - command_id specific progress codes
200 - Completed (Success)
4xx - Completed (Failed)
Optional batch group identifier for this action. If null then websocket-based monitoring of this action will not be possible.
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/create
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/create?createBatch=false' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 0,
"created_at": 0,
"updated_at": 0,
"trigger_id": 0,
"payload": {
"property1": "string",
"property2": "string"
},
"state": 0,
"node_id": 0,
"batch_id": 0,
"response": {
"message": [
"string"
]
},
"id": 0,
"command_id": 0
}'OK.
If not null, the execution of this action will be delayed until this trigger action has completed successfully (status=2xx).
If the trigger action fails (status=4xx), this action will fail with the same status.
000 - Pending start
001 - Waiting for action with trigger_id
002 - Waiting for device to come online
01x - Command was attempted "x" times
100 - Device acknowledged, action started
1xx - command_id specific progress codes
200 - Completed (Success)
4xx - Completed (Failed)
Optional batch group identifier for this action. If null then websocket-based monitoring of this action will not be possible.
{ "network_id": 0, "created_at": 0, "updated_at": 0, "trigger_id": 0, "payload": { "property1": "string", "property2": "string" }, "state": 0, "node_id": 0, "batch_id": 0, "response": { "message": [ … ] }, "id": 0, "command_id": 0 }
- Mock serverhttps://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/monitor
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/manage/monitor?id=0' \
-H 'Authorization: YOUR_API_KEY_HERE'