Modes
Change a Location's Current Mode
Changed onChange a Location's current Mode. Note: This can cause enabled automations to run if the Location's Mode is an automation trigger.
put/locations/{locationId}/modes/current
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesx:locations:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"modeId": "9206ea57-2e2e-414c-a792-9087117ca3d8"
}Response
Changed successfully.
Example response
{
"id": "9206ea57-2e2e-414c-a792-9087117ca3d8",
"label": "Vacation",
"name": "Home"
}Changes
- info
endpoint added
- info