Coordinate
POST /services/coordinate/locations/{locationId}/subscriptions
Create a new subscription
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:locations:*, mobile
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
locationIdstring required
A unique location identifier. This is not guaranteed to be a valid UUID.
Headers
Authorizationstring string required
OAuth token
Request body
Example request
{
"capabilities": [
"weather",
"forecast",
"airQuality",
"airQualityForecast"
],
"isaId": "d61126ba-a485-4c6d-8ec4-0d41f5f2757c",
"type": "EXECUTION",
"predicate": "now.weather.temperature.value > 20 && now.airQuality.o2Index.value > 1"
}Response
Success
Example response
{
"locationId": "fb9e719c-e432-4dc3-86b3-7b64ce76c1dc",
"subscriptionId": "76ba490c-f10d-4746-8f20-f291b327836c"
}Changes
No recorded changes to this operation across all 8 revisions of this API.