Devices
Set multiple zones at once
Immediately sets temperature (°C) and/or on-off state on MULTIPLE zones of one device in a single update: they all change together, in one sync to the device.
PUT
Prefer it over repeated set_zone calls when changing both zones, e.g. "turn both sides off" or "set zone_a to 18 and zone_b to 24". Each zone needs at least one of temp / on; zones not listed are left unchanged.
Request parameters
Authorization string requiredYour API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.
Path parameters
serialstring requiredDevice serial number (from list_devices, e.g. "AA:BB:CC:DD:EE:FF")
Body application/json
zonesobject[] required min items 1Zone updates to apply together. Each needs temp and/or on.
Response parameters
200 OK application/json
successboolean requiredzonesobject[] requiredEvery zone of the bed after the change
Errors
Every error answers { "error": { "code", "message" } }.
set_zones