Cancel a scheduled delivery
const url = 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/scheduled/44';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://mail.work.optidata.cloud/api/mail/mailboxes/78/scheduled/44 \ --header 'Authorization: Bearer <token>'Call off a pending delivery. The draft itself survives and returns to the Drafts folder.
Requires scheduled sending to be enabled for the tenant.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Id of the mailbox. Every mailbox the caller may use is listed in their account.
Id of the scheduled delivery.
Responses
Section titled “ Responses ”The delivery was cancelled.
Acknowledgement returned by several write operations.
object
Examples
{ "message": "Scheduled draft cancelled."}Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}Scheduled sending is not enabled for this tenant.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Not available"}No such resource, or it does not belong to the caller.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "No query results for model."}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}