Account Owner, Account Administrators, Department Administrators, or custom roles.
Header | Description |
---|---|
Authorization (required) | Access token. You can obtain a token by making a request. |
Parameter | Description |
group_id (required) | The ID of a smart group whose rules you would like to get. |
Code | Text | Description |
---|---|---|
200 | OK | The request was successfully processed. The response contains a list of smart group rules. |
400 | Bad Request | A request error. |
401 | Unauthorized | An authorization error. |
403 | Permission Denied | The user doesn't have enough permissions to get smart group rules. |
GET /group/smart/3fa85f64-5717-4562-b3fc-2c963f66afa6/rules https/1.1 Host: api-learn.ispringlearn.com Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE |
https/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <response> <smartGroupRules> <groupId>3fa85f64-5717-4562-b3fc-2c963f66afa6</groupId> <rules> <and> <or> <rule> <attributeType>1</attributeType> <attributeId></attributeId> <operator>1</operator> <value>6f774f46-de00-11e9-bb11-0a580af40984</value> </rule> </or> <or> <rule> <attributeType>2</attributeType> <attributeId></attributeId> <operator>1</operator> <value>eb53de1e-dea4-11e9-8de4-0a580af40738</value> </rule> </or> <or> <rule> <attributeType>3</attributeType> <attributeId>14072df2-d54f-11e9-a7ce-0a580af40973</attributeId> <operator>1</operator> <value>Sales Manager</value> </rule> </or> </and> </rules> </smartGroupRules> </response> |