DELETE
Delete a document template
Company space For: Administrator, Manager · Permission: company_templates.delete Conditions
  • When the template is active, replacement_company_template_id is required; it must be another template of the same company and the same document type, otherwise the call is refused.
  • The replacement is only used when the deleted template is active; it is ignored for an inactive template.
What else happens
  • Deletes the template from the lists; it can be brought back with the restore action.
  • When the template was active, it is switched off and the replacement becomes the active template of that type.
Part of Invoice and document templates.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

companyTemplate
string
required

Identifier of the company template, the company's own copy of a template (27-character KSUID string).

Query Parameters

replacement_company_template_id
string | null

Identifier of another template of the same company and the same document type, which becomes the active template. Required when the template being deleted is active; ignored otherwise. 27-character KSUID string.

Maximum string length: 27

Response

No content