Emails
Reschedule an email
Move a scheduled email to a new send time.
PATCH
/v1/emails/{id}API keyChanges scheduledAt on an email that is still scheduled. The only thing you can change is the time; to change the content, cancel it and send a new one.
A new email.scheduled event is added to the timeline with { "scheduledAt": "…", "rescheduled": true }.
Path parameters
The email ID.
Body parameters
The new send time, an ISO 8601 date-time with a time zone offset. Must be in the future and at most 30 days from now.
Response
The full email, in the same shape as Retrieve an email, with the new scheduledAt.
Errors
| Status | Code | When |
|---|---|---|
| 400 | invalid_body | scheduledAt is missing or not a date-time with an offset. |
| 400 | invalid_schedule | The new time is in the past or more than 30 days ahead. |
| 404 | email_not_found | No email with that ID in this project. |
| 409 | not_cancelable | The email isn't scheduled any more, for example because it's already being sent. |