Create an account group
POST/:workspace/account-groups
Creates an account group. name is required; accounts is optional, so a group can start empty. Every account must belong to the workspace. Returns 201 Created with the new group. Requires the ADMIN or MEMBER workspace role; the VIEWER role receives 403.
Request
Responses
- 201
- 401
- 403
- 404
- 422
The created account group. Bare object, not wrapped in data.
The bearer token is missing, malformed, unknown, or expired.
The token is valid, but the user it belongs to may not perform this action:
- they are not a member of the
{workspace}in the path; or - their workspace role is too low for this endpoint (write routes require Admin or Member); or
- for
/panelendpoints, they are not a platform administrator.
The {workspace} UUID in the path does not match any workspace.
The request body failed validation.