messages

Update message draft

Edit a draft in place before it goes out: subject, body_text, scheduled_at. Only a pending_approval row accepts it (any other state answers 409 conflict / message_not_editable, and a message already sent is immutable); an empty change set is 422 nothing_to_update. The edit is stored on the row, so approve_messages afterwards can be a bare confirmation. To have the agent rewrite the draft instead, use regenerate_message.

Contract:

  • MCP tool update_message, registry package mcp.unibox/messages, mount unibox.inbox.
  • Operation update, response envelope update.
  • Flags: none.
patch/api/messages/{sid}

Request

  • Base URL
    https://beta.getsales.io/unibox/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

The draft to edit. Any state but pending_approval answers 409 message_not_editable.

Request body

subjectstring nullable

Email subject line, max 998; null clears it. Ignored on LinkedIn rows.

body_textstring

Full replacement of the draft text, min 1 char, plain text. NOTE the key: the write side is body_text here, while send_message takes body.

scheduled_atstring nullable

ISO 8601 UTC hold time for the send; null = dispatch as soon as approved. Applied when the draft is approved.

Response

update success envelope.

successtrue required
operation'update' required
updated_fieldsstring[] required
previous_valuesobject required
kept_fieldsstring[]

The fields this write did not change because the person's own value stands on them (stamped person); read the item for what landed.

Changes

No recorded changes to this operation across all 1 revision of this API.