Skip to the documentation
API

Update a draft

A partial update: fields you omit are left exactly as they were.

PATCHapi.openemail.uk/drafts/{id}

Runs the real call against your workspace, with your own key.

PATCH /drafts/{id}

A partial update: fields you omit are left exactly as they were.

Example

Needs drafts:write.

curl
curl -X PATCH "$OE/drafts/draft-fdc85673-…" -H "$AUTH" -H "Content-Type: application/json" \  -d '{ "subject": "Revised subject" }'
Response
{ "object": "draft", "id": "draft-fdc85673-…" }

Read the id back from the response rather than reusing the one you sent.