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
| Field | Type | Description |
target * | Target (required: external_id) | |
object * | object | |
idempotency_key | string | |
object
| Field | Type | Description |
from | string (email)[] | |
to | string (email)[] | |
cc | string (email)[] | |
bcc | string (email)[] | |
subject | string | |
textBody | string | |
htmlBody | string | |
attachments | BlobRef[] | |
inReplyTo | string | |
Result
| Field | Type | Description |
external_id | string | |
updated_at | string (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