Skip to main content
DELETE
/
levels
/
{id}
curl -X DELETE "https://api.companyflow.com/levels/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_TOKEN"
{
  "success": true,
  "message": "level deleted"
}

Authorization

Requires authentication with a Bearer token. Only users with the following roles can delete levels:
  • Super Admin
  • HR Manager

Path Parameters

id
string
required
The unique identifier of the level (UUID format)

Response

success
boolean
Indicates if the request was successful
message
string
Confirmation message
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.

Build docs developers (and LLMs) love