Delete Template

Deletes a Sales Configuration Template, with an option to also delete the underlying template Quote or Order.

  • Resource URL: /services/apexrest/<namespace>/v1/cpq/templates/{templateId}
  • HTTP Method: DELETE
  • Content-Type: application/json
  • Response Format: JSON
ParameterTypeRequiredDescription
templateIdStringYesThe SalesConfigTemplate__c record ID.
deleteTemplateRecordBooleanNoIf true, also deletes the underlying template Quote or Order and its line items.
forceDeleteBooleanNoIf true, allows deletion of templates in Approved status.

DELETE /services/apexrest/vlocity_cmt/v1/cpq/templates/a1Bxx0000004XyzDEF?deleteTemplateRecord=true&forceDelete=false

Success Response (200):

ParameterTypeDescription
deletedTemplateIdStringThe ID of the deleted SalesConfigTemplate__c record.
deletedTemplateRecordIdStringThe ID of the deleted underlying Quote or Order (only present when deleteTemplateRecord was true and the record was successfully deleted).