Update an account group
PUT/:workspace/account-groups/:accountGroup
Renames an account group, changes its accounts, or both. Only the fields sent are changed: sending only name keeps the accounts, and sending only accounts keeps the name. accounts replaces the whole set, so to add or remove one account send the group's current account_ids with that change; an empty array empties the group. Returns the updated group. Requires the ADMIN or MEMBER workspace role; the VIEWER role receives 403.
Request
Responses
- 200
- 401
- 403
- 404
- 422
The updated 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 or the account group was not found.
The request body failed validation.