Campaigns

Update a scheduled campaign

PATCH
/api/campaigns/{id}

Updates name, message, scheduleDate, autopilot flag, status, or per-segment overrides on a scheduled campaign. Cannot modify campaigns that have already been sent.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/api/campaigns/string" \  -H "Content-Type: application/json" \  -d '{    "name": "Q2 Lead Gen (revised)",    "message": "Hi {{firstName}}, quick follow-up - let me know if a 10-min call works.",    "scheduleDate": "2026-05-22T16:00:00.000Z",    "isAutopilot": false  }'
{  "success": true,  "message": "Campaign created",  "data": {    "_id": "665f1a0c0e0a4b001a2c9f10",    "name": "Q2 Lead Gen",    "status": "scheduled",    "scheduleDate": "2026-05-20T15:00:00.000Z"  }}