Sleep configuration
Split a two-zone sleeper
For a user who holds both zones of a bed alone: keeps them on one zone and frees the other for a partner (as a guest sleeper), so each side can be set on its own.
POST
The step before swap_zones when someone joins the bed.
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
Body application/json
user_idstring (uuid)Target user id (from list_devices shared_with). Defaults to the authenticated user. Anyone on a bed may move themselves; acting on another user needs the owner or admin role on a shared bed.
Response parameters
200 OK application/json
successboolean requiredanonymousUserIdstring requiredThe new guest sleeper on the freed zone
Errors
Every error answers { "error": { "code", "message" } }.
split_zones