Profiles
Create a Device Profile
Changed onCreate a Device Profile.
post/deviceprofiles
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:deviceprofiles
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring string required
OAuth token
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.
Request body
Response
The Device Profile.
Example response
{
"id": "a362ddb6-349b-4650-9911-681b51069a57",
"name": "thermostat1.model1",
"metadata": {
"firmWareVersion": "0.2.123",
"manufacturerName": "SmartThingsCommunity"
},
"presentationId": "perfectlife6617.custom-thermostat",
"preferences": [
{
"title": "Temperature Offset",
"description": "The offset for a particular temperature setting"
}
],
"components": [
{
"id": "main",
"capabilities": [
{
"id": "switch",
"version": 1,
"config": {
"values": [
{
"key": "thermostatMode.value"
}
]
},
"status": {
"switch": {
"value": "on"
}
}
}
],
"categories": [
{
"name": "Light"
}
]
}
]
}Changes
- info
added the new optional
headerrequest parameterX-ST-Organization
- info