Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

Delete (soft delete) a test case

Deletes a test case from a project component item (soft delete - sets deletedAt timestamp). Test cases are used to define test scenarios with steps and expected results for component items. This endpoint validates that the test case exists and belongs to a component item in the specified project. The service automatically triggers condition cleanup, recalculation, and timeframe updates.

DELETE/projects/{projectId}/items/{itemId}/testcases/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
projectIdstringrequired
Project UUID
itemIdstringrequired
Component item UUID. Items are the building blocks within components (Epics, Work Packages, Todo Lists, Test Suites).
idstringrequired
Test case UUID
Responses
200Test case deleted successfully
successboolean
400Invalid projectId, itemId, or testCaseId format
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to delete test cases or no access to project
404Project not found, component item not found, or test case not found in the specified item
Request
curl -X DELETE "https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/items/3047983b-d798-4aff-8dd4-628cf1900703/testcases/550e8400-e29b-41d4-a716-446655440010" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}