Skip to main content
POST
Send an asset schedule

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Example:

"ha_b7q2m1k8v4n0x3c9l5p2r7td"

Body

application/json
resolution
enum<string>
required

The length of every slot.

Available options:
15min
Example:

"15min"

items
object[]
required

Consecutive quarter hours, in any order and with none left out between the first and the last. They replace the sender's plan for that whole window, so send local for a quarter hour where nothing is planned. Quarter hours outside the window keep their plan.

Required array length: 1 - 300 elements

Response

The stored slots

object
enum<string>
required
Available options:
asset_schedule
asset
string
required
Example:

"ha_b7q2m1k8v4n0x3c9l5p2r7td"

period
object
required
resolution
enum<string>
required
Available options:
15min
items
object[]
required

Sorted by time. On a POST, the stored slots. On a GET, the plan in force: one slot per planned quarter hour. A quarter hour without one runs the device's own logic.