Capabilities
Get a Capability by ID and Version
Get a Capability with a given ID and version.
get/capabilities/{capabilityId}/{capabilityVersion}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.com
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
successful return of a Capability
Example response
{
"id": "namespace.colorTemperature",
"version": 1,
"name": "Color Temperature",
"ephemeral": true,
"attributes": {
"colorTemperature": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "integer",
"minimum": 1,
"maximum": 30000
},
"unit": {
"type": "string",
"enum": [
"K"
],
"default": "K"
},
"required": [
"value"
]
}
}
}
},
"commands": {
"setColorTemperature": {
"arguments": [
{
"name": "temperature",
"schema": {
"type": "integer",
"minimum": 1,
"maximum": 30000
}
}
]
}
}
}Changes
No recorded changes to this operation across all 8 revisions of this API.