Add members to a group
POST/tap/api/v1/groups/:groupId/members
Adds one or more users to a group. Every ID is checked before any membership is written, so a 400, 403, or 404 response adds no one. Users already in the group are skipped. Each membership stores a copy of the user's fullName, email, and userRole. Requires the admin role.
Request
Responses
- 200
- 400
- 403
- 404
- 500
The memberships that were created.
The request body is missing user IDs or contains an invalid ID.
The caller does not have the admin role, or one of the users is a super_admin and the caller is not.
The group or one of the users was not found.
The request body is malformed: not a JSON object, userId is null, or userIds is not an array of IDs. A membership that cannot be saved is left out of data instead of causing an error.