Update user group
POST/groups-srv/usergroups
This API call stores user groups.
Updatable Fields:
groupId: Cannot be changed after creation (serves as unique identifier)groupName: Can be updated to change the display namegroupType: Can be changed, but must reference an existing group typeparentId: Can be changed, but must be "root" or a valid existing groupId (no circular references)customFields: Can be updated, added, or removed- Visibility settings:
memberProfileVisibility,noneMemberProfileVisibility make_first_user_admin: Can be updated
Immutable Fields:
groupOwner: Cannot be set, but will be client by default
Validation Rules:
groupId: Must existgroupName: If provided, cannot be emptygroupType: If provided, must reference an existing group typeparentId: If provided, must be "root" or a valid existing groupId- Circular references are not allowed (a group cannot be its own parent or ancestor)
Business Rules:
- When changing
groupType, ensure the new groupType's roleMode allows the roles currently assigned to users in this group - When changing
parentId, the new parent must exist and not create circular references - System-managed user groups (groupOwner: admin) cannot be updated via API
- Changes to groupType may affect which roles can be assigned to users in the future
Request
Responses
- 200
- 401
- 404
- 417
OK - User group updated successfully
Unauthorized - Authentication failed or missing required scope
Not Found - User group does not exist
Expectation Failed - Validation failed (e.g., invalid groupType, invalid parentId, circular reference, or missing required fields)