Skip to main content

Delete a document template (soft).

DELETE/api/v1/document-templates/{document_template_id}document_templates:write

Refused with 409 in_use while workflow templates or records use the template: those the caller can read are named, the rest counted. permanent=true removes the template for good instead (a deleted ID is then 404); it is only for a template whose document no longer exists, and answers 409 conflict while the document is there. permanent=true also needs Permanently Delete Document Templates.

Scopedocument_templates:write
AsynchronousNo
MCP tooldelete_document_template
Portal permissionsdelete_document_templates

Parameters​

NameInTypeRequiredDescription
document_template_idpathstringRequired
permanentqueryboolean or nullOptionalRemove the template for good instead of marking it deleted. Only for a template whose document no longer exists.
Docwize-Versionheaderstring (date)Optional
If-MatchheaderstringOptional

Responses​

StatusDescriptionBody
204Done.
400invalid_versionapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, in_useapplication/problem+json Problem
412precondition_failedapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.