Skip to main content
PATCH
Update campaign status

Authorizations

x-api-key
string
header
required

Path Parameters

campaignId
string
required

The campaign ID to update

Body

application/json
status
enum<string>
required

Target campaign status. To stop a campaign sending, use PENDING; GET /v1/campaign/{campaignId} and GET /v1/campaigns keep reporting PENDING, while GET /v1/campaign/{campaignId}/analytics reports the user-facing status PAUSED with isPaused: true. DRAFT is accepted only for campaigns that have never launched: a launched campaign cannot return to DRAFT, because DRAFT does not stop conversations that are already running. To stop one contact instead, use pause_a_contact_in_a_campaign. COMPLETED and DELETED are terminal (a COMPLETED campaign can only move to DELETED).

Available options:
DRAFT,
PENDING,
ACTIVE,
COMPLETED,
DELETED

Response

Campaign status updated successfully

status
enum<string>
required
Available options:
success
message
string
required
data
object
required