POST
/
device
/
sync
Python
from miru_agent_sdk import Miru

client = Miru()
response = client.device.sync()
print(response.code)
{
  "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"
}

Response

200 - application/json

Successfully synced the device.

The response is of type object.