Delete Subtask
This endpoint allows you to delete a subtask.
Request
DELETE /api/v1/tickets/:id/subtasks/:subtask_id
curl --request DELETE \
--url 'https://www.zep-online.de/zepinstanz/next/api/v1/tickets/123/subtasks/456' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {token}'Parameters
- id (integer, required): The ID of the parent ticket
- subtask_id (integer, required): The ID of the subtask to delete
Response
Successful Deletion
{
"success": true
}A successful deletion returns an object with success: true.
Error Codes
- 401 Unauthorized: Invalid or missing authentication
- 404 Not Found: Ticket or subtask with the specified ID was not found
- 500 Internal Server Error: Deletion failed
Notes
- Deleting a subtask is a permanent action and cannot be undone
- Make sure you use the correct subtask ID before executing the deletion
- Verify that the user has the necessary permissions to delete subtasks
- The parent ticket remains after the subtask is deleted
Example
DELETE /api/v1/tickets/123/subtasks/456Response:
{
"success": true
}