Capabilities
List Capabilities by Namespace
Changed onList Capabilities by namespace.
Namespaces are used to organize a user's Capabilities and provide a way to uniquely identify them. A user can retrieve all of the Capabilities under their assigned namespace by referencing it.
The namespace is recognizable as the first part of a capabilityId in the format namespace.capabilityName.
get/capabilities/namespaces/{namespace}
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr:customcapability
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-ST-Organizationstring ^(?:([0-9a-fA-F]{32})|([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}))$
Organization id. If not provided, default user organization will be used.
Response
Successful return of a namespace's Capabilities
Example response
{
"items": [
{
"id": "switch",
"version": 1,
"ephemeral": true
}
],
"_links": {
"next": {
"href": "https://..."
},
"previous": {
"href": "https://..."
}
}
}Changes
- info
added the new optional
headerrequest parameterX-ST-Organization
- info