---
title: "Update Thermostat Smart Home/Away"
method: PATCH
path: "/thermostats/{thermostatId}/autoAway"
tags: ["thermostats"]
---

# Update Thermostat Smart Home/Away

`PATCH /thermostats/{thermostatId}/autoAway`

## Request

- Base URL: `https://api.sb.ecobee.com/api/v2`
- URL: `https://api.sb.ecobee.com/api/v2/thermostats/{thermostatId}/autoAway`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://api.sb.ecobee.com/api/v2/token` scopes: `write:thermostat`

Toggles the Smart Home/Away feature on the thermostat

## Request body

- UpdateThermostatSettingsAutoAwayBody
  - `autoAway` boolean, required: Is the Smart Away feature enabled?

## Response `200`

Success

- ThermostatSettingsAutoAwayResponse
  - `status` 'success'
  - `data` ThermostatSettingsAutoAway
    - `autoAway` boolean, required: Is the Smart Away feature enabled?

## Other responses

- `400`: Bad request
- `401`: Not authenticated
- `403`: Not authorized
- `404`: Not found
- `422`: Validation Failed
- `429`: Too many requests
- `500`: Internal server error
- `default`: Unexpected error

---

[API](https://skmtc.dev/ecobee/apis/ecobee-smartbuildings-public-api.md) - [All operations](https://skmtc.dev/ecobee/apis/ecobee-smartbuildings-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ecobee/apis/ecobee-smartbuildings-public-api/revisions/d78d4fd5e1c6?raw)
