The WiFi Motion Core APIs facilitate the creation, configuration, and management of WiFi Motion networks via RESTful APIs. Additionally, it offers interfaces for accessing topologies, events, and motion data. The only difference is that the Core APIs do not specifically reference a user, and instead provide you with the ability to query the data from any network that is available in the environment.
Cognitive Systems App Core API
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/application/settings
- 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/network/{network_id}/application/settings' \
-H 'Authorization: YOUR_API_KEY_HERE'
Application configuration retrieved successfully
The sleep settings enabled or disabled.
true
Sleep settings are enabled
false
Sleep settings are not enabled
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the minute within the hour when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household ends their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the minute within the hour when the household ends their sleeping pattern.
The date and time when the Application Settings were enabled. If the application settings are not enabled, then a value of null
will be provided.
How long after the door sensor should we check when home, if the user has left.
How long should we allow for people to leave when home.
How long after the door sensor detect should we check when away
How long to wait after wake_time to watch for Critical Inactivity Alert
{ "network_id": 123, "timezone": "America/New_York", "enabled": true, "sleep_hour": 22, "sleep_minute": 30, "wake_hour": 6, "wake_minute": 30, "created_at": "2025-03-26T03:32:58.000Z", "updated_at": "2025-04-08T16:25:07.709Z", "enabled_at": "2025-03-26T03:32:58.000Z" }
Application configuration object that needs to be created
The sleep settings enabled or disabled.
true
Sleep settings are enabled
false
Sleep settings are not enabled
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the minute within the hour when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household ends their sleeping pattern.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/application/settings
- 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/network/{network_id}/application/settings' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 0,
"timezone": "string",
"enabled": true,
"sleep_hour": 23,
"sleep_minute": 59,
"wake_hour": 23,
"wake_minute": 59
}'
{ "message": "Configuration created successfully", "data": { "network_id": 123, "timezone": "America/New_York", "enabled": true, "sleep_hour": 22, "sleep_minute": 30, "wake_hour": 6, "wake_minute": 30, "created_at": "2025-06-17T18:44:01.674Z", "updated_at": "2025-06-17T18:44:01.674Z", "enabled_at": "2025-06-17T18:44:01.674Z" } }
Application configuration fields to update
The sleep settings enabled or disabled.
true
Sleep settings are enabled
false
Sleep settings are not enabled
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the minute within the hour when the household initiates their sleeping pattern.
Provides rough guidance to the WiFi Motionâ„¢ network as to the hour of day when the household ends their sleeping pattern.
- Mock server
https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/application/settings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.cognitivesystems.com/_mock/assets/specs/api/core/network/{network_id}/application/settings' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"network_id": 0,
"timezone": "string",
"enabled": true,
"sleep_hour": 23,
"sleep_minute": 59,
"wake_hour": 23,
"wake_minute": 59
}'
{ "message": "Configuration updated successfully", "data": { "network_id": 369, "timezone": "America/New_York", "enabled": true, "sleep_hour": 22, "sleep_minute": 30, "wake_hour": 6, "wake_minute": 30, "created_at": "2025-06-17T18:51:22.140Z", "updated_at": "2025-06-17T19:02:23.869Z", "enabled_at": "2025-06-17T19:02:23.869Z" } }