Sleep device
Endpoints
Sleep device
Sleep a device (202): accrue duration, suspend the sprite, mark sleeping. Idempotent.
POST
Sleep device
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Device id (dev_<uuid>)
Response
The sleeping device
A device as returned on the /v1 surface. id/current_task_id carry the dev_/task_ prefixes
(the bare uuids never leave the DB); space_id is a raw uuid (Spaces are not an Operator concept).
dev_<uuid>.
Discriminator for polymorphic SDK decoders. Always "device".
task_<uuid> of the task currently holding the device, or null when idle.