Modes
Get the Modes of a Location
Changed onGet all Modes of a Location from a user's account.
get/locations/{locationId}/modes
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:locations:*, r:service:locations:modes, mobile
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Accept-Languagestring
Language header representing the client's preferred language. The format of the Accept-Language header follows what is defined in RFC 7231, section 5.3.5
Response
A List of Modes
Example response
{
"items": [
{
"id": "9206ea57-2e2e-414c-a792-9087117ca3d8",
"label": "Vacation",
"name": "Home"
}
]
}Changes
- info
endpoint added
- info