Skip to content
Docs
Open Escouade
Documentation contents

Docs › Mail › Tools

update_draft

View as .md

Correct a draft.

Changes a draft’s subject, text or HTML as long as it is not approved. The recipient and the inbox do not change (for that: cancel_message, then a new send). Every correction is noted in the log with its author.

Access

  • Key: an Escouade Mail key with send or approve.
  • Space: any space, verified or not.
  • Changes nothing: no, it acts.
  • Safe to replay: yes.

Parameters

ParameterTypeRequiredDescription
message_idstringyesThe draft (msg_…, see list_drafts).
subjectstringnoNew subject.
textstringnoNew text.
htmlstringnoNew HTML (empty text: removes the HTML version).

Call it

Terminal
curl -s https://api.subagent.fr/v1/update_draft \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer sak_…' \
  -d '{"message_id": "…"}'

The full page in French, with the response fields and every refusal the tool can return: /mail/docs/reference/update_draft.

This page in Markdown: /en/mail/docs/reference/update_draft.md All the docs for an agent: /en/mail/docs/llms.txt Legal notice · Terms · Privacy · Service status