...
| Parameter | Type | Description |
|---|---|---|
| token (required) | string | Access token. You can obtain a token by making a request. |
| name (required) | string | The name of a new smart group. |
| rules (required) | array | The list of a smart group rules. |
| attributeType (required) | int | Can have the following values: |
| attributeId (optional) | string | The user field ID. Should be filled out only if attributeType is 3. |
| operator (required) | int | For departments:
For groups and user fields:
|
| value (required) | string | For departments:
For groups:
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. |
| Info |
|---|
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. |
...