curl --request DELETE \
--url https://api.example.com/api/task-types/{id}Delete an existing task type
curl --request DELETE \
--url https://api.example.com/api/task-types/{id}204 No Content on successful deletion with an empty response body.
curl -X DELETE https://api.example.com/api/task-types/5 \
-H "Authorization: Bearer YOUR_TOKEN_HERE"
HTTP/1.1 204 No Content
{
"error": "Unauthorized",
"message": "Invalid or missing authentication token"
}
{
"error": "Not Found",
"message": "Task type not found"
}
taskType reference set to null@PreRemove hook in the TaskType entity