---
title: "Update the Thermostat Weekly Program"
method: POST
path: "/thermostats/update_weekly_program"
tags: ["/thermostats"]
---

# Update the Thermostat Weekly Program

`POST /thermostats/update_weekly_program`

Updates the thermostat weekly program for a thermostat device. To configure a weekly program, specify the ID of the daily program that you want to use for each day of the week. When you update a weekly program, the set of programs that you specify overwrites any previous weekly program for the thermostat.

## Request body

- object
  - `device_id` string, uuid, required — ID of the thermostat device for which you want to update the weekly program.
  - `friday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Fridays.
  - `monday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Mondays.
  - `saturday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Saturdays.
  - `sunday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Sundays.
  - `thursday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Thursdays.
  - `tuesday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Tuesdays.
  - `wednesday_program_id` string, uuid, nullable — ID of the thermostat daily program to run on Wednesdays.

## Response `200`

OK

- object
  - `action_attempt` object, required — Tracks the progress of this operation. Poll using the action_attempt_id. See the [action_attempt object](/api/action_attempts/object).
    - `action_attempt_id` string, uuid, required — ID of the action attempt.
    - `action_type` 'PUSH_THERMOSTAT_PROGRAMS', required — Type of action being tracked.
    - `status` 'pending' | 'success' | 'error', required — Current status of the action.
    - `result` object, nullable — Result payload on success.
    - `error` object, nullable — Error details on failure.
      - `type` string
      - `message` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/seam/apis/seam-connect.md) · [All operations](https://skmtc.net/seam/apis/seam-connect/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seam/seam-connect/versions/00c35395ce12/schema)
