Skip to main content
POST

Authorizations

Authorization
string
header
required

JWT authentication token

Headers

x-company-id
string

Target company identifier. Required only for global API keys (type=global). Ignored for company API keys and human users.

Path Parameters

campaignId
string
required

Campaign ID

Body

application/json
enrollment_id
string

ID of the enrollment to cancel. Don't send it together with contact_id.

Pattern: ^[a-f0-9]{24}$
contact_id
string

ID of the contact whose enrollment in this campaign will be cancelled. Don't send it together with enrollment_id.

Pattern: ^[a-f0-9]{24}$

Response

{ cancelled: true, enrollment_id, previous_status } or { cancelled: false, reason: "already_completed" }