Attach Audience To Campaign
PUT /campaigns/{campaign_id}/audience
PUT
/campaigns/{campaign_id}/audience
Attach (or detach) a saved list to a campaign as its audience.
This is the missing link in Daniel’s MCP flow: find list → create campaign → attach audience → launch was previously a dead-end because
no REST/MCP path could set cb_campaigns.audience_list_id (the FE
“Attach Audience” dialog only went through an internal route).
Idempotent — setting the same list twice is a 200, no error. Pass
list_id=null to detach. The launch endpoint reads
cb_campaigns.audience_list_id when enrolling contacts; without it,
launch creates a sequence with zero enrollment.
Authorizations
Parameters
Path Parameters
campaign_id
required
Campaign ID
string
Campaign ID
Header Parameters
Request Body required
Responses
200
Successful Response
object
data
required
object
key
additional properties
any
pagination
Any of:
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string