Skip to main content
POST
/
thermostats
/
update_weekly_program
await seam.thermostats.updateWeeklyProgram({
  device_id: "076546e8-966c-47dd-831b-8d98413bf070",
  monday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  tuesday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  wednesday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  thursday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  friday_program_id: "a36dccaa-aeb9-47da-bf1d-43a08ba5c870",
  saturday_program_id: "3bf5a788-caf8-40c5-a7d5-78b72e9b3a28",
  sunday_program_id: "3bf5a788-caf8-40c5-a7d5-78b72e9b3a28",
});

/*
{
  "action_attempt_id": "a1b2c3d4-e5f6-4a3b-2c1d-0e9f8a7b6c5d",
  "action_type": "PUSH_THERMOSTAT_PROGRAMS",
  "error": null,
  "result": {},
  "status": "success"
}
*/
{
  "action_attempt": {
    "action_attempt_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "result": {},
    "error": {
      "type": "<string>",
      "message": "<string>"
    }
  },
  "ok": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
device_id
string<uuid>
required

ID of the thermostat device for which you want to update the weekly program.

friday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Fridays.

monday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Mondays.

saturday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Saturdays.

sunday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Sundays.

thursday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Thursdays.

tuesday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Tuesdays.

wednesday_program_id
string<uuid> | null

ID of the thermostat daily program to run on Wednesdays.

Response

OK

action_attempt
object
required

Tracks the progress of this operation. Poll using the action_attempt_id.

ok
boolean
required