Locations
Get a Location
Changed onGet a specific Location if accessible to the requester.
get/locations/{locationId}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:locations:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
allowedstring
If set to true, the items in the response may contain the allowed list property
Response
A Location.
Example response
{
"locationId": "6b3d1909-1e1c-43ec-adc2-5f941de4fbf9",
"name": "Home",
"countryCode": "USA",
"latitude": 45.00708112,
"longitude": -93.11223629,
"regionRadius": 150,
"temperatureScale": "F",
"timeZoneId": "America/Chicago",
"locale": "en_US",
"parent": {
"type": "LOCATIONGROUP",
"id": "6ecb6c06-7319-49b1-8ebd-f97660efdd06"
},
"created": 1547920800,
"lastModified": 1548007200
}Changes
- info
added the new optional
queryrequest parameterallowed
- info