Update a Thermostat Schedule
PATCH /thermostats/schedules/update ⇒ voidUpdates a specified thermostat schedule.
Request
await seam.thermostats.schedules.update({
thermostat_schedule_id: "89d3507e-60e3-4101-bd1b-ba066ec30ad4",
ends_at: "2024-11-15T15:00:00Z",
});Response
// voidRequest
seam.thermostats.schedules.update(
thermostat_schedule_id="89d3507e-60e3-4101-bd1b-ba066ec30ad4",
ends_at="2024-11-15T15:00:00Z",
)Response
NoneRequest
seam.thermostats.schedules.update(
thermostat_schedule_id: "89d3507e-60e3-4101-bd1b-ba066ec30ad4",
ends_at: "2024-11-15T15:00:00Z",
)Response
nilRequest
<?php
$seam->thermostats->schedules->update(
thermostat_schedule_id: "89d3507e-60e3-4101-bd1b-ba066ec30ad4",
ends_at: "2024-11-15T15:00:00Z"
);Response
nullRequest
seam thermostats schedules update --thermostat_schedule_id "89d3507e-60e3-4101-bd1b-ba066ec30ad4" --ends_at "2024-11-15T15:00:00Z"Response
{}Request
package main
import api "github.com/seamapi/go"
import schedules "github.com/seamapi/go/schedules"
func main() {
client.Thermostats.Schedules.Update(
context.Background(),
schedules.SchedulesUpdateRequest{
ThermostatScheduleId: api.String("89d3507e-60e3-4101-bd1b-ba066ec30ad4"),
EndsAt: api.String("2024-11-15T15:00:00Z"),
},
)
}Response
nilAuthentication Methods
API key
Client session token
Personal access token Must also include the
seam-workspaceheader in the request.
Request Parameters
climate_preset_key
climate_preset_keyType: string Required: No
Key of the climate preset to use for the thermostat schedule.
ends_at
ends_atType: string Required: No
Date and time at which the thermostat schedule ends, in ISO 8601 format.
is_override_allowed
is_override_allowedType: boolean Required: No
Indicates whether a person at the thermostat or using the API can change the thermostat's settings while the schedule is active. See also Specifying Manual Override Permissions.
max_override_period_minutes
max_override_period_minutesType: number Required: No
Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also Specifying Manual Override Permissions.
name
nameType: string Required: No
User-friendly name to identify the thermostat schedule.
starts_at
starts_atType: string Required: No
Date and time at which the thermostat schedule starts, in ISO 8601 format.
thermostat_schedule_id
thermostat_schedule_idType: string Required: Yes
ID of the desired thermostat schedule.
Return Type
void
Last updated
Was this helpful?

