Deletes a specified for a specified .
POST /thermostats/delete_climate_preset ⇒ void
Authentication Methods
Personal access token
Must also include the seam-workspace
header in the request.
To learn more, see .
Request Parameters
climate_preset_key
String (Required)
Climate preset key of the climate preset that you want to delete.
device_id
String (Required)
ID of the thermostat device for which you want to delete a climate preset.
Response
void
Examples
Delete a climate preset
Specify the device_id
of the desired thermostat and the climate_preset_key
of the desired climate preset.
Code
await seam.thermostats.deleteClimatePreset({
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
});
Output
Code
seam.thermostats.delete_climate_preset(
device_id="123e4567-e89b-12d3-a456-426614174000", climate_preset_key="occupied"
)
Output
Code
seam.thermostats.delete_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied",
)
Output
Code
<?php
$seam->thermostats->delete_climate_preset(
device_id: "123e4567-e89b-12d3-a456-426614174000",
climate_preset_key: "occupied"
);
Output
Code
seam thermostats delete-climate-preset --device_id "123e4567-e89b-12d3-a456-426614174000" --climate_preset_key "occupied"
Output
Code
package main
import api "github.com/seamapi/go"
func main() {
client.Thermostats.DeleteClimatePreset(
context.Background(),
api.ThermostatsDeleteClimatePresetRequest{
DeviceId: api.String("123e4567-e89b-12d3-a456-426614174000"),
ClimatePresetKey: api.String("occupied"),
},
)
}
Output
Code
curl --include --request POST "https://connect.getseam.com/thermostats/delete_climate_preset" \
--header "Authorization: Bearer $SEAM_API_KEY" \
--json @- <<EOF
{
"device_id": "123e4567-e89b-12d3-a456-426614174000",
"climate_preset_key": "occupied"
}
EOF
Output