Delete task type
Soft deletes a task type from the workspace.
How soft delete works:
- The task type is marked as deleted but not permanently removed
- Existing tasks of this type retain the type reference
- The task type no longer appears in type lists or can be assigned to new tasks
- The task type can potentially be restored if needed
Important considerations:
- The task type will be removed from all projects where it was assigned
- Tasks currently using this type will keep the type but it will not be available for new task creation
- This action should be used carefully as it affects workflows
Note: Consider updating existing tasks to use a different type before deleting if you want to maintain workflow continuity.
DELETE
/administration/task-settings/types/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200Task type deleted successfully
successboolean401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/administration/task-settings/types/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/administration/task-settings/types/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/administration/task-settings/types/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions