Remove group type
DELETE/groups-srv/grouptypes/:groupType
This API call deletes a group type if it is not assigned to any user group.
Validation Rules:
- The group type must exist in the system.
- The group type must not be assigned to any user group (no user groups can have this groupType).
- Group Types Setup with
objectOwner: admincannot be deleted.
Business Rules:
- Before deleting a group type, ensure all user groups using this groupType are deleted or updated to use a different groupType.
- System group types (objectOwner: admin) are protected and cannot be deleted.
Request
Responses
- 200
- 401
- 404
- 417
OK
UNAUTHORIZED
RESOURCE NOT FOUND - group type
group type could not be deleted e.g. it is in use