Introduction
Errors
Every failure answers with one JSON shape and a short code you can act on.
A successful request answers 200 with the operation's result. A failed request answers a 4xx or 5xx status with an error object.
The error envelope
Every error has the same shape:
Error codes
Examples
A device id that is not an id, such as a serial number:
A device you have no access to:
A path that does not exist:
Operations that act on several items
A few operations take one id or a list of ids: Rate nights, Cancel timeline events and Act on Orion Intelligence changes. They answer 200 with one result per id, and one id failing does not stop the others:
Check ok on each result, not only the status code. Each operation's reference page lists its statuses.
Retrying
Changing a zone, a schedule or a setting to the same value twice gives the same result, so retrying those is safe. Starting thermal relief, swapping zones and splitting zones are not: read the current state before you send them again.