ID of the group to update (hyphens optional).
Update a group
Updates the name and/or description of an existing group.
At least one field must be provided. Only the fields included in the request body are updated
(partial update semantics).
Requires the GROUPMANAGEMENT security role.
Path Parameters
Body
application/json
Body
New description for the group. Pass null to clear it.
New name for the group. Must be unique within the account.
Response
application/json
Response
Group updated successfully.
Group
Number of members in the group.
Authentication
Path Parameters
Body
Add users to a group
Adds one or more users to the specified group. Pass a single-element array to add one user.
Users that are already members of the group are silently ignored (the operation is idempotent).
An empty user_ids array is accepted and is a no-op.
Requires the GROUPMANAGEMENT security role.
Path Parameters
ID of the group (hyphens optional).
Body
application/json
Body
GroupMembersInput
IDs of the users to add or remove. An empty list is a no-op.
Response
application/json
Response
Users added successfully.
GroupMembersResult
Updated number of members in the group after the operation.
Authentication
Path Parameters
Body
Remove users from a group
Removes one or more users from the specified group. Pass a single-element array to remove one user.
Users not currently in the group are silently ignored (the operation is idempotent).
An empty user_ids array is accepted and is a no-op.
Requires the GROUPMANAGEMENT security role.
Path Parameters
ID of the group (hyphens optional).
Body
application/json
Body
GroupMembersInput
IDs of the users to add or remove. An empty list is a no-op.
Response
application/json
Response
Users removed successfully.
GroupMembersResult
Updated number of members in the group after the operation.
Authentication
Path Parameters
Body
Groups (Legacy)
Retrieve groups
Requires the GROUPMANAGEMENT security role.
Query Parameters
Search on matching group names.
What page of results to return.
Default:1
Maximum results to return. If limit is not provided the first 20 results will be returned.
Default:20
Order of the returned list of groups.
Allowed values:ascdesc
Response
200 application/json
Response
Successful response