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 · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
projectIdstringrequiredProject UUID
itemIdstringrequiredComponent item UUID. Items are the building blocks within components (Epics, Work Packages, Todo Lists, Test Suites).
idstringrequiredTest case UUID
Responses
200Test case deleted successfully
successboolean400Invalid 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"const response = await fetch("https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/items/3047983b-d798-4aff-8dd4-628cf1900703/testcases/550e8400-e29b-41d4-a716-446655440010", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/projects/a47dc37b-7693-4d06-b49c-17084b773aff/items/3047983b-d798-4aff-8dd4-628cf1900703/testcases/550e8400-e29b-41d4-a716-446655440010",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Invalid projectId, itemId, or testCaseId format
Unauthorized - Invalid or missing authentication token
Insufficient permissions to delete test cases or no access to project
Project not found, component item not found, or test case not found in the specified item