Locations
Patch a location
Changed onUpdate or unset one or more fields of a specified Location. If, for a given value, both toNull=true and a value are provided, the response will be a 422.
patch/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
{
"latitude": {
"toNull": true
},
"longitude": {
"value": 50
}
}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
endpoint added
- info