---
title: "Update a Thermostat Daily Program"
method: POST
path: "/thermostats/daily_programs/update"
tags: ["/thermostats"]
---

# Update a Thermostat Daily Program

`POST /thermostats/daily_programs/update`

Updates a specified thermostat daily program. The periods that you specify overwrite any existing periods for the daily program.

## Request body

- object
  - `name` string, required — Name of the thermostat daily program that you want to update.
  - `periods` object[], required — Array of thermostat daily program periods. The periods that you specify overwrite any existing periods for the daily program.
    - `climate_preset_key` string, required — Key of the [climate preset](/capability-guides/thermostats/creating-and-managing-climate-presets) to activate at the `starts_at_time`.
    - `starts_at_time` string, required — Time at which the thermostat daily program period starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
  - `thermostat_daily_program_id` string, uuid, required — ID of the thermostat daily program that you want to update.

## 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)
