Sleep configuration
Swap zones with bed partner
Swaps the given user with the other user on the same device (each must occupy exactly one zone, device must have exactly 2 users).
POST
Pass your own user id to swap yourself with your bed partner.
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) requiredUser id whose zone will be swapped with their bed partner (your own id or a shared user from list_devices)
Response parameters
200 OK application/json
successboolean required
Errors
Every error answers { "error": { "code", "message" } }.
swap_zones