Replace the members of a group

Replaces the members of a group of your organization: the members listed are added, and the members not listed are removed from the group.

Required role: ORG_ADMIN. The organization path parameter must be the organization of the access token.

Fields

FieldRequiredDescription
membersYesEmails of all the members of the group, from your organization. Replaces the current members (compared case-insensitively). [] removes all the members; missing or null returns 400.

Members

A member is the email of a member of your organization. A member who isn't a member of your organization returns 404, and nothing is changed. Emails are compared ignoring the case: [email protected] and [email protected] are the same member.

Response

result holds all the members of the group after the change, each with its email.

When it fails

  • 400: members is missing or null. Use [] to remove all the members.
  • 404: the group doesn't exist in your organization, or a member isn't a member of your organization. The members don't change.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the group

Body Params

Emails of all the members of the group: they replace the current members.

members
array of strings
required

Emails of all the members of the group, from your organization. Replaces the current members (case-insensitive); [] removes them all, and missing or null returns 400.

members*
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json