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"
}
*/{
"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"
}
}Daily Programs
Create a Thermostat Daily Program
Creates a new thermostat daily program. A daily program consists of a set of periods, where each period includes a start time and the key of a configured climate preset. Once you have defined a daily program, you can assign it to one or more days within a weekly program.
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"
}
*/{
"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
client_sessionpat_with_workspaceconsole_session_with_workspaceapi_key
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
OK
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. See the thermostat_daily_program object.
Show child attributes
Show child attributes
Was this page helpful?