v1
latestOpenAPI 3.0.12026-07-226992320.0 KBCampaigns
Update Campaign
Partially updates an existing campaign by campaignId. Only fields provided in the request body are updated — omitted fields remain unchanged. Returns the updated campaign record.
patch/v1/campaigns/{campaignId}
Path parameters
campaignIdstring required
Unique identifier of the campaign to update.
Request body
Example request
{
"campaignName": "Q4 Outreach Campaign",
"sipPhoneNumber": "+14155552671",
"agentId": "D5D0p7TUs66TTAEAx",
"isScheduled": true,
"scheduledDate": "2025-09-25T00:00:00.000Z",
"scheduledTime": "12:00:00",
"scheduledTimezone": "America/Los_Angeles",
"concurrentCalls": 5,
"dynamicVariables": {
"customer_name": "Michael"
}
}Response
OK
Example response
{
"campaignId": "camp_XiQEBcj9cc5TFRB4",
"campaignName": "Q4 Outreach Campaign",
"campaignStatus": "live",
"scheduledDate": "2025-09-25T19:00:00.000Z",
"concurrentCalls": 5,
"agent": {
"name": "New AI Agent",
"agentId": "agent_D5D0p7TUs66TTAEAx",
"status": "Live"
},
"phoneNumber": {
"sipPhoneNumber": "+14155552671",
"provider": "twilio",
"inboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundAgentId": "agent_D5D0p7TUs66TTAEAx",
"outboundPhoneNumber": "+14155552671",
"active": true,
"terminationSipURI": "sip.telnyx.com",
"friendlyName": "Support Line - US"
},
"errors": [
"Row 3: missing required variable 'customer_name'",
"Row 7: invalid phone number '+1234'"
]
}