Rules
Create a Rule
Create a Rule for a specified location and user.
post/rules
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesw:rules:*
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
locationIdstring ^(?:([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}))$ required
The ID of the Location where the Rule should be posted.
Request body
Response
The created Rule
Changes
No recorded changes to this operation across all 8 revisions of this API.