Autional Autional
API Reference GitHub autional.com →

DELETE /communication/scheduled/{template_id}

Cancel a scheduled message send task with a specified ID that is in scheduled status. Messages already sent or failed cannot be canceled. After cancellation, the message status changes to cancelled. References: ePrivacy Directive 2002/58/EC, CAN-SPAM Act.

Communication Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Message ID

Request Body

Schema: dto.CancelScheduledRequest

FieldTypeRequiredExampleConstraintsDescription
cancel_key string No

Responses

StatusDescriptionSchema
200Cancellation successfuldto.OKResponse
400Invalid request parametersdto.SimpleResponse
401Unauthenticated or invalid tokendto.SimpleResponse
403Insufficient permissions to access this resourcedto.SimpleResponse
404Message not founddto.SimpleResponse
409Message is not in scheduled status, cannot canceldto.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