Campaigns
Set a subsequence’s trigger
Changes when leads move into the subsequence. `campaignId` is the subsequence. **Required scope:** `campaigns:write` **Plan feature:** Subsequences
PUT
Changes when leads move into the subsequence. campaignId is the subsequence.
Required scope: campaigns:write
Plan feature: Subsequences
apiKeyheader
AuthorizationBearer <token>A workspace API key (mf_live_…), created under Settings → API keys. Send it as Authorization: Bearer <key>.
campaignId*stringMatch
^[a-f0-9]{24}$application/json- body
trigger*||||Default Response
application/json- response
data*curl -X PUT 'https://api.coldvenue.in/api/v1/campaigns/string/trigger' \ -H 'Content-Type: application/json' \ -d '{ "trigger": { "type": "status_changed", "statuses": [ "NEW" ] }}'Example Response200
{ "data": { "id": "string", "name": "string", "kind": "campaign", "parentCampaignId": "string", "trigger": { "type": "status_changed", "statuses": [ "NEW" ] }, "status": "DRAFT", "schedule": { "timezone": "string", "days": [ 1 ], "startTime": "string", "endTime": "string", "startDate": "string", "endDate": "string" }, "limits": { "dailyLimit": 1, "newLeadsPerDay": 0 }, "options": { "stopOnReply": true, "stopOnAutoReply": true, "trackOpens": true, "trackClicks": true, "unsubscribeHeader": true, "textOnly": true }, "accountIds": [ "string" ], "leadCount": 0, "lastError": { "code": "string", "message": "string", "at": "string" }, "startedAt": "string", "pausedAt": "string", "completedAt": "string", "createdAt": "string", "updatedAt": "string" }}