put
https://api.jmapcloud.io/api/ss/rest/v1/organizations//groups//members
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
| Field | Required | Description |
|---|---|---|
members | Yes | Emails 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:membersis missing ornull. 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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…