Skip to main content

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​

HeaderRequiredDescription
AuthorizationYesFormat: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature

πŸ“ Request Structure​

Path Parameters​

ParameterTypeRequiredDescriptionExample
idstring (UUID)YesUnique identifier of the group to delete550e8400-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​

  1. πŸ’Ύ Update Local Cache

    • Remove group from local storage
    • Update UI to reflect deletion
  2. 🌐 System Updates

    • Remove group references
    • Update integration mappings
  3. πŸ“’ Notifications

    • Inform affected systems
    • Update documentation
  4. βœ… Verification

    • Confirm deletion success
    • Verify dependent systems