Locations
Update a Location
Update one or more fields of a specified Location. All fields in the request body are optional. Only the specified fields will be updated. Exception: the location name is required. Other exception: if the latitude or longitude is updated, and no new timezone is provided, a new timezone will be picked based on the latitude and longitude.
put/locations/{locationId}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:locations:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Home",
"temperatureScale": "F"
}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
No recorded changes to this operation across all 8 revisions of this API.