Request: POST /group/smart
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, or custom roles.
|X-Auth-Account-Url (required)||The base URL of the account, e.g. http://myaccount.ispringlearn.com.|
|X-Auth-Email (required)||The login of Account Owner, Administrators, Department Administrators, or a user with a role with custom settings allowing to create new smart groups.|
|X-Auth-Password (required)||The password of Account Owner, Administrators, Department Administrators or a user with a role with custom settings allowing to create new smart groups.|
Can have the following values:
The user field ID. Should be filled out only if attributeType is 3.
For groups and user fields:
For user profile fields:
Note: for the Country field, use the country ID, not its name. The country ID can be obtained with the Getting User Profile Fields method.
You can add multiple groups of conditions that should be satisfied to add a user to a smart group. All groups of conditions should be met at the same time.
Inside these groups of conditions, add rules. Any of the rules can be completed so that a user was added to the smart group.
Read more about smart groups, their rules and conditions in the Creating Smart Groups article.
|A new smart group has been added.|
|400||Bad Request||Some of the sent parameters are incorrect.|
|401||Unauthorized||An authorization error.|
The user doesn't have enough permissions to add smart groups