> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vsyble.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit message

Edit a draft at its current revision. Content changes invalidate existing approvals.

**Tool:** `campaign_write` · **Method:** `edit_message`

Hosted OAuth MCP, local MCP, and REST API.

Editing saved content invalidates prior approvals. Read the exact message again before submitting or approving it. Never resolve a revision conflict by guessing a new revision.

## Example

All IDs, addresses and revisions below are illustrative. Replace them with values read from your workspace.

> [tab] MCP
>
> ```json theme={null}
> {
>   "name": "campaign_write",
>   "arguments": {
>     "method": "edit_message",
>     "messageId": "11111111-1111-4111-8111-111111111111",
>     "draftRevision": 1,
>     "subject": "A question about your expansion",
>     "body": "Hi Jordan, would it help if I sent the specifications we discussed?"
>   }
> }
> ```

> [tab] REST
>
> ```bash theme={null}
> curl https://api.vsyble.com/v1/outreach \
>   --request POST \
>   --header "Content-Type: application/json" \
>   --header "X-Vsyble-Api-Key: $VSYBLE_API_KEY" \
>   --data '{
>   "action": "edit",
>   "messageId": "11111111-1111-4111-8111-111111111111",
>   "draftRevision": 1,
>   "subject": "A question about your expansion",
>   "body": "Hi Jordan, would it help if I sent the specifications we discussed?"
> }'
> ```

## Inputs

| Field | Type | Requirement | Details |
| - | - | - | - |
| `organizationId` | string | Optional | Workspace ID. Omit to use your current workspace. Format: uuid. |
| `messageId` | string | Required | Format: uuid. |
| `draftRevision` | integer | Required | Minimum: 1. Maximum: 2147483647. |
| `subject` | string | Required | Maximum length: 998. |
| `body` | string | Required | Maximum length: 100000. |
| `cc` | string | Optional | Default: "". Maximum length: 3000. |
| `bcc` | string | Optional | Default: "". Maximum length: 3000. |

For MCP, add `method: edit_message` alongside these fields. For REST, use `action: edit` instead of method.

Fields inside an optional object are required only when that object is provided. Do not send fields from a different method.

## Result

MCP returns the following projected schema as structured content and JSON text. The REST response may contain additional fields; do not rely on undocumented fields.

> [accordion] Response schema
>
> ```json theme={null}
> {
>   "$schema": "https://json-schema.org/draft/2020-12/schema",
>   "type": "object",
>   "properties": {
>     "message": {
>       "type": "object",
>       "properties": {
>         "id": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "draft_id": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "status": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "block_reason": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "due_at": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "sent_at": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "step": {
>           "type": [
>             "number",
>             "null"
>           ]
>         },
>         "draft_revision": {
>           "type": [
>             "number",
>             "null"
>           ]
>         },
>         "requires_admin_approval": {
>           "type": [
>             "boolean",
>             "null"
>           ]
>         },
>         "delivery_failure": {
>           "anyOf": [
>             {
>               "type": "object",
>               "properties": {
>                 "failedAt": {
>                   "type": [
>                     "string",
>                     "null"
>                   ]
>                 },
>                 "reason": {
>                   "type": [
>                     "string",
>                     "null"
>                   ]
>                 }
>               },
>               "additionalProperties": false
>             },
>             {
>               "type": "null"
>             }
>           ]
>         }
>       },
>       "additionalProperties": false
>     },
>     "draft": {
>       "type": "object",
>       "properties": {
>         "draft_id": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "id": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "subject": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "body": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "to": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "cc": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "bcc": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "recipient_email": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "enrollment_id": {
>           "type": [
>             "string",
>             "null"
>           ]
>         },
>         "revision": {
>           "type": [
>             "number",
>             "null"
>           ]
>         },
>         "step": {
>           "type": [
>             "number",
>             "null"
>           ]
>         },
>         "attachment_ids": {
>           "anyOf": [
>             {
>               "type": "array",
>               "items": {
>                 "type": "string"
>               }
>             },
>             {
>               "type": "null"
>             }
>           ]
>         }
>       },
>       "additionalProperties": false
>     },
>     "enrollmentId": {
>       "type": [
>         "string",
>         "null"
>       ]
>     },
>     "campaignId": {
>       "type": [
>         "string",
>         "null"
>       ]
>     },
>     "campaignRevision": {
>       "type": [
>         "number",
>         "null"
>       ]
>     },
>     "recipientVerification": {
>       "anyOf": [
>         {
>           "type": "object",
>           "properties": {
>             "verdict": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             },
>             "reason": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             },
>             "checkedAt": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             },
>             "expiresAt": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             },
>             "isFresh": {
>               "type": [
>                 "boolean",
>                 "null"
>               ]
>             },
>             "role": {
>               "type": [
>                 "boolean",
>                 "null"
>               ]
>             }
>           },
>           "additionalProperties": false
>         },
>         {
>           "type": "null"
>         }
>       ]
>     },
>     "deliveryHold": {
>       "anyOf": [
>         {
>           "type": "object",
>           "properties": {
>             "id": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             },
>             "receivedAt": {
>               "type": [
>                 "string",
>                 "null"
>               ]
>             }
>           },
>           "additionalProperties": false
>         },
>         {
>           "type": "null"
>         }
>       ]
>     },
>     "events": {
>       "anyOf": [
>         {
>           "type": "array",
>           "items": {
>             "type": "object",
>             "properties": {
>               "kind": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               },
>               "occurred_at": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               },
>               "delivery_status": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               },
>               "delivery_category": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               },
>               "reply_intent": {
>                 "type": [
>                   "string",
>                   "null"
>                 ]
>               }
>             },
>             "additionalProperties": false
>           }
>         },
>         {
>           "type": "null"
>         }
>       ]
>     }
>   },
>   "additionalProperties": false
> }
> ```

[Download input schema](https://docs.vsyble.com/schemas/edit_message.input.json) · [Download MCP response schema](https://docs.vsyble.com/schemas/edit_message.output.json)

See [permissions](https://docs.vsyble.com/security/permissions.md), [errors and recovery](https://docs.vsyble.com/api/errors.md), and [sending approval](https://docs.vsyble.com/security/sending.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.