Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Delete (soft delete) a component library item

Soft deletes a component library item by setting the deletedAt timestamp. The item is marked as deleted but not permanently removed from the database. Automatically cleans up invalid condition targets and updates timeframes. Only library component items (component.projectId is null) can be deleted through this endpoint.

DELETE/administration/project-components/items/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Component item UUID
Responses
200Item deleted successfully
successbooleanrequired
Success status
400Invalid component item ID format (not valid UUID)
401Unauthorized - Invalid or missing authentication token
403Insufficient permissions to edit component library
404Item not found, item does not belong to library component, or item already deleted
Request
curl -X DELETE "https://leadtime.app/api/public/administration/project-components/items/3047983b-d798-4aff-8dd4-628cf1900703" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}