With these endpoints, you can manage all aspects of the groups in your account. In addition to various CRUD methods, you can also use these endpoints to manage the members of your groups. You’ll want to use these methods if you’re managing group membership for more than one member at a time. For dealing with single members, there are better methods in the members endpoints.
Get a basic listing of all active member groups for a single account.
Returns : | An array of groups. |
---|---|
Parameters: |
|
Create one or more new member groups.
Returns : | An array of the new group ids and group names. |
---|---|
Parameters: |
|
Get the detailed information for a single member group.
Returns : | A group. |
---|---|
Raises : | Http404 if the group does not exist. |
Update information for a single member group.
Parameters: |
|
---|---|
Returns : | True if the update was successful |
Raises : | Http404 if the group does not exist. |
Delete a single member group.
Returns : | True if the group is deleted. |
---|---|
Raises : | Http404 if the group does not exist. |
Get the members in a single active member group.
Returns : | An array of members. |
---|---|
Parameters: |
|
Raises : | Http404 if the group does not exist. |
Add a list of members to a single active member group.
Parameters: |
|
---|---|
Returns : | An array of references to the members added to the group. If a member already exists in the group or is not a valid member, that reference will not be returned. |
Raises : | Http404 if the group does not exist. |
Remove members from a single active member group.
Parameters: |
|
---|---|
Returns : | An array of references to the removed members. |
Raises : | Http404 if the group does not exist. |
Remove all members from a single active member group.
Parameters: |
|
---|---|
Returns : | Returns the number of members removed from the group. |
Raises : | Http404 if the group does not exist. |
Delete all members in this group with the specified status. Remove those members from all groups as a background job. The member_status_id parameter must be set.
Parameters: |
|
---|---|
Returns : | Returns true. |
Raises : | Http404 if the group does not exist. |
Copy all the users of one group into another group.
Parameters: |
|
---|---|
Returns : | True |
Raises : | Http404 if the group does not exist. |