Link Audience to Campaign
link_audience_to_campaignLink an existing audience to a campaign. Each audience can belong to at most one campaign. This is idempotent — calling it again for an already-linked pair is safe. Fails with AUDIENCE_ALREADY_LINKED (naming current_campaign_id) if the audience is already in a different campaign — unlink it there first. Requires 'creator' scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"campaign_id": "<campaign_id>",
"audience_id": "<audience_id>"
},
"name": "link_audience_to_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audience_id | Yes | The audience ID to link | |
| campaign_id | Yes | The campaign ID to link the audience to |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the requested action succeeded | |
| guidance | No | Interpretation or recovery guidance for this result | |
| count_unit | No | ||
| page_count | No | Number of objects on this page, not the organization total | |
| audience_id | Yes | ||
| campaign_id | Yes | ||
| count_state | No | Unknown means no count; available does not guarantee freshness. Recount for a current value. | |
| next_actions | No | Suggested next calls using returned IDs and available scopes. Not executed and not user consent. | |
| population_input | No | Population input used for the preview; IDs refer to their current saved definitions |