Zum Inhalt springen
Leadtime
Deutsch
Esc
navigateopen⌘Jpreview

Delete project upload

Removes a project upload from the project. This performs a soft delete, meaning the upload is marked as deleted but not permanently removed from the database. The file itself remains in the workspace file storage.

What happens:

  • The upload record is marked as deleted (deletedAt timestamp is set)
  • The upload no longer appears in project upload lists
  • The underlying file remains in workspace storage

Validation:

  • Upload must exist and belong to the workspace
  • User must have access to the project containing the upload

Note: This endpoint requires the Projects.manageUploads permission.

DELETE/projects/uploads/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
successbooleanrequired
Operation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/projects/uploads/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}