Sends
A send is one message written for an audience — a group, one contact, or everyone linked to one subject — the same send a person writes on the compose screen. It takes two calls: a draft is only written down, and nothing goes until you publish it. Through the API a send is plain text, by SMS and by email: WhatsApp only carries wording Meta has approved outside its 24-hour reply window, so plain text never goes that way. Recording an event is the other way messages are made, by your rules.
PATCHEdit an unsent send
Requires sends:write. Send only what changes. A draft, or a queued send waiting for its time, can be edited; once it is going, what was sent cannot be rewritten. A key edits only the drafts it wrote itself. Naming a new audience clears the old one. "" on email_mode or email_subject goes back to the default. scheduled_at: null takes a draft's time away; a queued send keeps one, so give it a new time or call it off.
200 with the send. 400 when nothing changes, not_plain_sms for characters outside the SMS alphabet, or too_many_parts, with parts and limit, for new text longer than the instance sends; 409 once it is sending, done or called off.
One send: the same fields in every pack. Press Response on the sample to see one whole.
On failure the body is { error, code } instead.