Docs

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
/v1/devices/{serial}/zones

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

Headers
Authorization string required

Your API key as a bearer token: Bearer os_…. Make one on the API keys page; see Authentication.

Path parameters
  • serial string required

    Device serial number (from list_devices, e.g. "AA:BB:CC:DD:EE:FF")

Body application/json
  • zones object[] required min items 1

    Zone updates to apply together. Each needs temp and/or on.

Response parameters

200 OK application/json
  • success boolean required
  • zones object[] required

    Every zone of the bed after the change

Errors

Every error answers { "error": { "code", "message" } }.

StatusCodeMeaning
400invalidInvalid input.
401unauthorizedMissing or unsupported API key.
403forbiddenNot allowed on this device or user.
429rate_limitedRate limit exceeded.
503unavailableNot available for this account.
Also an MCP tool: set_zones