Delete User Group
This endpoint allows you to permanently remove a user group from the system. This operation cannot be undone.
πΉ Endpoint Detailsβ
DELETE /api/v1/user-groups/{id}
π Authenticationβ
Header | Required | Description |
---|---|---|
Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Request Structureβ
Path Parametersβ
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
id | string (UUID) | Yes | Unique identifier of the group to delete | 550e8400-e29b-41d4-a716-446655440000 |
π§© Request Exampleβ
curl -X DELETE "https://openapi.onlive.site/api/v1/user-groups/550e8400-e29b-41d4-a716-446655440000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π€ Response Formatβ
Successful Response (200 OK)β
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Global Sales Team",
"description": "International sales team with product management access",
"externalId": "SALES_TEAM_01",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"extraFields": {
"department": "Sales",
"location": "Global",
"allowedFeatures": [
"product_management",
"sales_reports",
"international_pricing"
]
},
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:35:00Z",
"deletedAt": "2025-05-22T11:00:00Z"
}
β Error Responsesβ
401 Unauthorizedβ
{
"statusCode": 401,
"message": "Invalid or missing authorization credentials"
}
403 Forbiddenβ
{
"statusCode": 403,
"message": "Cannot delete user group with active members"
}
404 Not Foundβ
{
"statusCode": 404,
"message": "User group not found"
}
π Notesβ
- This operation permanently removes the user group
- All members must be removed before deletion
- Associated data and permissions will be removed
- The deletion cannot be undone
- The response includes the final state of the group
- A
deletedAt
timestamp is included in the response - You can only delete groups within your organization
β Pre-deletion Checklistβ
- π₯ Members: Remove all users from the group
- π Dependencies: Update systems that reference this group
- π Data: Back up any important group data
- π Permissions: Review and update access controls
- π± Applications: Update any apps using this group
π Post-deletion Actionsβ
-
πΎ Update Local Cache
- Remove group from local storage
- Update UI to reflect deletion
-
π System Updates
- Remove group references
- Update integration mappings
-
π’ Notifications
- Inform affected systems
- Update documentation
-
β Verification
- Confirm deletion success
- Verify dependent systems