Zum Inhalt springen
Leadtime
Deutsch
Esc
↑↓navigieren↵öffnen⌘Jvorschau

Delete document template

Soft deletes a document template from the workspace.

What happens:

  • The template is marked as deleted (soft delete)
  • It will no longer appear in list queries
  • It cannot be used for generating new documents
  • The template data is preserved in the database

Note: This is a soft delete operation. The template is not permanently removed and can potentially be restored if needed. This endpoint requires the DocumentTemplates.canManage permission.

DELETE/administration/document-templates/{id}
Authorization
AuthorizationOAuth2 access token · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
successbooleanrequired

Operation success flag

401

Unauthorized - Invalid or missing authentication token

403

Forbidden - Insufficient API scopes or permissions

Try it
Server
Authorization
Parameters
Request
curl -X DELETE "https://leadtime.app/api/public/administration/document-templates/string" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Response
{
  "success": true
}