Authorization
Requires authentication with a Bearer token. Only users with the following roles can delete levels:
Path Parameters
The unique identifier of the level (UUID format)
Response
Indicates if the request was successful
curl -X DELETE "https://api.companyflow.com/levels/550e8400-e29b-41d4-a716-446655440000" \
-H "Authorization: Bearer YOUR_TOKEN"
{
"success": true,
"message": "level deleted"
}
Error Responses
{
"success": false,
"message": "invalid level id"
}
{
"success": false,
"message": "unauthorized"
}
{
"success": false,
"message": "internal server error"
}
Deleting a level is a permanent action and cannot be undone. Ensure that no employees are currently assigned to this level before deletion.