Gmail draft update profile

org.intentschema.communication.email.draft.update.v1@com.google.gmail.v1

JSON: bare · @sha256:217a942d1604…
Hash: sha256:217a942d1604b0600d1d1ffdbffee491eb582ebafb79d2542d554779f8ffeb60

Gmail profile for email draft update.

Implements: Update email draft (org.intentschema.communication.email.draft.update.v1)

Payload

FieldTypeDescription
target *Target (required: external_id)(system = "gmail", required: system)
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)

API mapping

FieldValue
base_urlhttps://gmail.googleapis.com
methodPUT
path/gmail/v1/users/me/drafts/{id}
scopeshttps://www.googleapis.com/auth/gmail.compose
docshttps://developers.google.com/gmail/api/reference/rest/v1/users.drafts/update

Field mapping

Intent fieldAPI parameter
object.tomessage.raw To header
object.subjectmessage.raw Subject header
object.textBodymessage.raw text/plain part
object.htmlBodymessage.raw text/html part
object.inReplyTomessage.raw In-Reply-To header
target.external_iduserId/drafts/{id} path parameter