Create a group
POST/groups
Creates a group, optionally attaching one grant and an initial batch of members (organizations by slug, or users by email) in one transaction. The answer is 200 and data.status says what happened: created, name-taken (nothing created), or rejected-members (nothing created, data.rejections lists each refused identifier).
A group is created not sponsored, turn sponsorship on with PATCH /groups/{group_id}. Newly attached organizations' owners (or users) receive an email.
Requires grant:write and at least the org-admin role.
Request
Responses
- 200
- 401
- 404
- 422
The outcome, in data.status
UNAUTHORIZED: the token lacks the grant:read / grant:write ability, or the caller lacks the required role in the organization
grantId does not name a grant of this organization
Validation failed