Coordinate
GET /services/coordinate/locations/{locationId}/link/alert
Changed onRedirect to condent provider's alert detail link. If no query given, coordinate of the location ID is used. Otherwise the coordinate of subscription will be used.
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.
Query parameters
postalCodestring
The postal code (postalCode and subscriptionId cannot be combined)
subscriptionIdstring
The ID of the Nimbus subscription (postalCode and subscirptionId cannot be combined)
Headers
X-ST-Unitsstring
prefered units(metrics or empiral) of the response content, default to metrics
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
Authorizationstring string required
OAuth token
Response
Unexpected error
Example response
{
"requestId": "7b8514e6-230d-41cc-b3c2-512bca15abf0",
"error": {
"code": "ConstraintViolationError",
"message": "The request was malformed.",
"target": "31192dc9-eb45-4d90-b606-21e9b66d8c2b"
}
}Changes
- warning
deleted the
queryrequest parametergeoplaceId
- warning
- info
added the new optional
queryrequest parameterpostalCode
- info