Skip to main content
POST
/
thermostats
/
daily_programs
/
create
await seam.thermostats.dailyPrograms.create({ device_id: "cc2d0fb9-1f5f-410f-80f1-a64b699de82a", name: "Weekday Program", periods: [ { starts_at_time: "07:00:00", climate_preset_key: "Home" }, { starts_at_time: "09:00:00", climate_preset_key: "Away" }, { starts_at_time: "16:00:00", climate_preset_key: "Home" }, { starts_at_time: "22:30:00", climate_preset_key: "Sleep" }, ], }); /* { "created_at": "2025-06-14T16:54:17.946642Z", "device_id": "cc2d0fb9-1f5f-410f-80f1-a64b699de82a", "name": "Weekday Program", "periods": [ { "starts_at_time": "07:00:00", "climate_preset_key": "Home" }, { "starts_at_time": "09:00:00", "climate_preset_key": "Away" }, { "starts_at_time": "16:00:00", "climate_preset_key": "Home" }, { "starts_at_time": "22:30:00", "climate_preset_key": "Sleep" } ], "thermostat_daily_program_id": "ab8ef74c-c7cd-4100-aa32-0ef960c0080d", "workspace_id": "8da8d923-e55b-45cd-84a3-6c96b3d3d454" } */
{
  "ok": true,
  "thermostat_daily_program": {
    "created_at": "2023-11-07T05:31:56Z",
    "device_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "periods": [
      {
        "climate_preset_key": "<string>",
        "starts_at_time": "<string>"
      }
    ],
    "thermostat_daily_program_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

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 create a daily program.

name
string
required

Name of the thermostat daily program.

periods
object[]
required

Array of thermostat daily program periods.

Response

OK

ok
boolean
required
thermostat_daily_program
object
required

Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.