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.
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 |