> ## 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.

# Cancel enrollment

Exclude an enrolled lead and cancel its unsent messages.

**Tool:** `campaign_write` · **Method:** `cancel_enrollment`

Hosted OAuth MCP, local MCP, and REST API.

Cancels unsent messages for the selected enrollment. It does not undo a message already sending or delivered. Inspect the current campaign after an uncertain outcome before trying again.

## 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": "cancel_enrollment",
>     "enrollmentId": "11111111-1111-4111-8111-111111111111"
>   }
> }
> ```

> [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": "cancel",
>   "enrollmentId": "11111111-1111-4111-8111-111111111111"
> }'
> ```

## Inputs

| Field | Type | Requirement | Details |
| - | - | - | - |
| `organizationId` | string | Optional | Workspace ID. Omit to use your current workspace. Format: uuid. |
| `enrollmentId` | string | Required | Format: uuid. |

For MCP, add `method: cancel_enrollment` alongside these fields. For REST, use `action: cancel` 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": {
>     "success": {
>       "type": [
>         "boolean",
>         "null"
>       ]
>     }
>   },
>   "additionalProperties": false
> }
> ```

[Download input schema](https://docs.vsyble.com/schemas/cancel_enrollment.input.json) · [Download MCP response schema](https://docs.vsyble.com/schemas/cancel_enrollment.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.