Reschedule a delivery
const url = 'https://mail.work.optidata.cloud/api/mail/mailboxes/78/scheduled/44';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"scheduled_at":"2026-08-21 14:30:00","timezone":"America/Sao_Paulo"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://mail.work.optidata.cloud/api/mail/mailboxes/78/scheduled/44 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "scheduled_at": "2026-08-21 14:30:00", "timezone": "America/Sao_Paulo" }'Move a still-pending delivery to a new moment, subject to the same 10-minute floor. A delivery already being sent, sent or cancelled cannot be moved.
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.
Request Bodyrequired
Section titled “Request Bodyrequired”object
The new moment, read in timezone.
IANA time zone. Defaults to the one already stored.
Examples
{ "scheduled_at": "2026-08-21 14:30:00", "timezone": "America/Sao_Paulo"}Responses
Section titled “ Responses ”The updated scheduled delivery.
A draft waiting for its delivery time.
object
When the message will be sent.
The time zone the user chose the moment in.
Where a scheduled delivery stands.
How many delivery attempts have been made.
Why the last attempt failed, when one did.
Example
{ "id": 44, "timezone": "America/Sao_Paulo", "status": "pending"}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."}The request body or query string failed validation.
object
The first validation message.
Validation messages keyed by field name.
object
Examples
{ "message": "The conversations field is required.", "errors": { "conversation_ids": [ "The conversations field is required." ] }}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."}