Autional Autional
API Reference GitHub autional.com →

DELETE /admin/communication/templates/{template_id}

Soft delete a message template (set is_active to false). If there are pending messages referencing this template, deletion is refused to ensure delivery traceability. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Template ID

Responses

StatusDescriptionSchema
200Template deactivated successfullydto.OKResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
404Template not founddto.SimpleResponse
409There are pending messages referencing this template, cannot deletedto.SimpleResponse
500Internal server errordto.SimpleResponse

Referenced Schemas

dto.OKResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No 0
message string No success

dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No