Update Draft

PATCH /tenants/{tenant}/email-configs/{code}/drafts/{messageId}

Saves changes to an existing synced draft via the email provider. The configuration must have ReadEnabled set to true. Every field is the draft's new full content, not an override — omit Attachments to leave the draft's existing attachments untouched. If the response includes ReconnectRequired=true, the OAuth connection needs to be re-authorised.

Requires: Update on Mailbox.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string
messageId* path string (uuid)
{
  "subject": "string",
  "plainTextBody": "string",
  "toRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "ccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "bccRecipients": [
    {
      "email": "...",
      "name": "..."
    }
  ],
  "htmlBody": "string"
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
403 Forbidden – the caller lacks the permissions this endpoint requires; the detail lists every one missing
application/problem+json
404 Not Found