Email Drafts

Updates the supplied fields on a draft. account_id and inbox_id are server-owned and ignored if present in the body, so a draft can never be moved between accounts or inboxes.

A draft that is being sent or has already been sent is immutable and returns 422 — modifying it would race with delivery or rewrite the record of what was actually sent.

put/email_inboxes/{inbox_id}/drafts/{draft_id}

Request

  • Base URL: https://api.telnyx.com/v2
  • URL: https://api.telnyx.com/v2/email_inboxes/{inbox_id}/drafts/{draft_id}
  • Auth: HTTP bearer

Path parameters

inbox_idstring uuid required

Email inbox UUID.

draft_idstring uuid required

Email draft UUID.

Request body

from_emailstring
from_namestring
reply_tostring
subjectstring
text_bodystring
html_bodystring
textstring

Alias for text_body, matching the send endpoint.

htmlstring

Alias for html_body, matching the send endpoint.

headersobject
attachmentsobject[]
labelsstring[]
tagsstring[]
metadataobject

Response

The updated draft.

Changes

    • warning

      added the new 10011 enum value to the // response property for the response status

    • warning

      added the new 10011 enum value to the // response property for the response status

    • warning

      added the new 10011 enum value to the // response property for the response status

    • warning

      added the new 10011 enum value to the // response property for the response status

    • warning

      added the new domain_graduation_limit_exceeded enum value to the // response property for the response status

    • warning

      added the new domain_graduation_limit_exceeded enum value to the // response property for the response status

    • warning

      added the new domain_graduation_limit_exceeded enum value to the // response property for the response status

    • warning

      added the new domain_graduation_limit_exceeded enum value to the // response property for the response status

    • info

      endpoint added