Rules
List Rules
Changed onReturn a list of Rules contained in a specified location.
get/rules
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesr: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 you want to list Rules for.
includeAllParentsstring
If set to true, all rules are returned
maxinteger
The max number of Rules to fetch
offsetinteger
The start index of Rules to fetch
Response
A paginated list of Rules.
Changes
- info
added the new optional
queryrequest parameterincludeAllParents
- info