Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Header

Description

Authorization (required)Access token. You can obtain a token by making a request.
ParameterDescription
attributeType (required)

Can have the following values:

  • 1— department

  • 2 — group

  • 3 — user profile field

attributeId (optional)

The user field ID. Should be filled out only if attributeType is 3.

operator (required)

For departments:

  • 1 — a single department without any daughter departments 
  • 2 — a department and all its daughter departments 

For groups and user fields:

  • always 1
value (required)

For departments:

  • the department ID

For groups:

  • the group ID

For user profile fields:

  • the user profile field value (for example, the value for the Last Name field is Smith)

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.

Response Codes

201

Created

new smart group has been added.
400 Bad RequestSome of the sent parameters are incorrect.
401UnauthorizedAn authorization error.
403Permission denied

The user doesn't have enough permissions to add smart groups

Code

Text

Description

...