Skip to main content
PUT
curl
Coming soon. First-class schedules are on the roadmap. Until they ship, this route answers 501 Not Implemented.Schedule the work one command at a time instead. Send a push with start to run a command later, or with start and end to run it for a window. Send one push for each time you want something to happen.A device that lists auto.schedule in its commands map already runs its own stored program when you send that command.

Authorizations

x-api-key
string
header
required

Path Parameters

deviceId
string
required

The unique identifier for the battery device.

Example:

"device_abc123"

Body

application/json

The schedule to set on the device: a non-empty slots array, an optional recurrence, and an optional timezone (required for time-variant slots). No deviceId in the body; the device is the URL.

The body is of type string.

Response

Schedule set on the device.