Update email draft

org.intentschema.communication.email.draft.update.v1

JSON: bare · @sha256:14ca10881b5d…
Hash: sha256:14ca10881b5de2878411b05ad6bb1a01b1bc638567f358ec25914ff983a5d7d2

Replace the contents of an existing draft. The full object is sent (not a patch).

Payload

FieldTypeDescription
target *Target (required: external_id)
object *object
idempotency_keystring
object
FieldTypeDescription
fromstring (email)[]
tostring (email)[]
ccstring (email)[]
bccstring (email)[]
subjectstring
textBodystring
htmlBodystring
attachmentsBlobRef[]
inReplyTostring

Result

FieldTypeDescription
external_idstring
updated_atstring (date-time)

Examples

update draft body

{
  "target": {
    "system": "gmail",
    "external_id": "draft_abc"
  },
  "object": {
    "to": [
      "jane@example.com"
    ],
    "subject": "Re: Checking in",
    "textBody": "Updated reply text."
  }
}

Profiles