API: Delete Employee

Request

Soft delete a specific Employee by ID:

DELETE /employees/{id}

Sample Response:

                    
{
    "status": "success",
    "message": "Employee deleted successfully"
}
                    
                

Notes:

  • The employee ID is required in the URL to specify which employees to delete.
  • If the employee does not exist, the API will return an error response.