Novant

Documentation

Sign in

Import Schedules

Imports schedules to add or update schedule records in a project.

POST /v1/import/schedules

Requires a Control API key. A schedule applies its scene modes to equipment, so changing a schedule is a write to the building.

Content

See Schedules for details on the CSV format used for schedules. To add a new schedule:

name, schedule, active, inactive
Office, weekdays 8:00-17:00, "sn.1.1, sn.2.1", "sn.1.2, sn.2.2"

To update just the times of an existing schedule:

id, schedule
sch.2, weekdays 7:00-18:00
curl https://api.novant.io/v1/import/schedules \
  -X POST \
  -u ak_sample_123: \
  -H "Content-Type: text/csv" \
  --data-binary @schedules.csv

Returns

Returns ok if import was successful.

{ "proj_id": 4821, "status": "ok" }