set_campaign_state
Change a campaign's state to Published or Disabled in Interaction Studio. Preview changes with dry-run, then confirm to write.
Instructions
Publish or disable an Interaction Studio campaign by updating its state (Published or Disabled). Requires IS_WRITES_ENABLED=true and confirm=true. Defaults to dry_run preview.
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>",
"state": "<state>"
},
"name": "set_campaign_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Target campaign state | |
| confirm | No | Required to execute when dry_run=false (default: false) | |
| dataset | No | Dataset name. Optional if IS_DEFAULT_DATASET is configured. | |
| dry_run | No | Preview only, no write (default: true) | |
| campaign_id | Yes | Campaign id from list_campaigns |