Preferences
Create a Preference
Changed onCreate a preference.
post/devicepreferences
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:customcapabilities:*
- 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.
Request body
Example request
{
"title": "Temperature Offset",
"description": "The offset for a particular temperature setting",
"required": false,
"preferenceType": "number",
"definition": {
"minimum": -10,
"maximum": 10,
"default": 0
}
}Response
successful return of the created preference
Example response
{
"title": "Temperature Offset",
"description": "The offset for a particular temperature setting"
}Changes
- info
endpoint added
- info