curl --unix-socket /run/miru/miru.sock \
--request POST \
--url http://localhost/v1/device/sync{
"code": "success",
"message": "Device is not connected to the backend.",
"last_synced_at": "2021-01-01T00:00:00Z",
"last_attempted_sync_at": "2021-01-01T00:00:00Z",
"in_cooldown": true,
"cooldown_ends_at": "2021-01-01T00:00:00Z"
}Manually force a device sync with the edits made in the dashboard.
curl --unix-socket /run/miru/miru.sock \
--request POST \
--url http://localhost/v1/device/sync{
"code": "success",
"message": "Device is not connected to the backend.",
"last_synced_at": "2021-01-01T00:00:00Z",
"last_attempted_sync_at": "2021-01-01T00:00:00Z",
"in_cooldown": true,
"cooldown_ends_at": "2021-01-01T00:00:00Z"
}Successfully synced the device.
The result of attempting to sync the device.
success, network_connection_error, in_cooldown The message of the result.
"Device is not connected to the backend."
Timestamp of when the device was last synced.
"2021-01-01T00:00:00Z"
Timestamp of when the last attempted sync occurred.
"2021-01-01T00:00:00Z"
Whether the device is currently in cooldown.
true
Timestamp of when the cooldown will end.
"2021-01-01T00:00:00Z"