Change a Pitchlane campaign
update_campaignChange a Pitchlane campaign: its name, title template, folder, language, pages or outro, or attach a pitch video to a campaign that has none (a draft, whose recording_url also lets the user record one in the browser). A set pitch video cannot be changed: use create_campaign with from_campaign_id. Send only what changes. pages REPLACES the whole list: call get_campaign first and send every page that should remain, with its id, plus the new ones. Pass the revision from get_campaign so a change made meanwhile is refused instead of overwritten. To check a change to these first (what would change, and any problems) without applying it, call preview_campaign_update with the same arguments: it is read-only. A change to pages reprocesses the campaign (status processing). An archived campaign cannot be changed.
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>"
},
"name": "update_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A new name. | |
| pages | No | The pages shown behind the pitch video, in order, at least one. Replaces every page: include the pages to keep, each with its `id` from get_campaign, and their fields as get_campaign shows them (`scroll: "custom"` and `null` values included) or left out. Example: [{"type":"lead_url","template":"website","duration_seconds":20,"scroll":"auto"},{"type":"url","url":"https://acme.com/pricing"}]. | |
| revision | No | The campaign's `revision` from get_campaign. The change is refused (409) when the pages changed since. Recommended whenever `pages` is sent. | |
| folder_id | No | Move to this folder (an id from list_folders). `null` takes it out of its folder. To move several campaigns, or an archived one, use move_campaigns. | |
| campaign_id | Yes | The campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`. | |
| remove_outro | No | `true`: remove the outro. Not with `outro_media_id` or `outro_enabled`. | |
| outro_enabled | No | Switch the outro in place on or off. | |
| validate_only | No | `true`: apply nothing and answer what would change and the problems. Prefer preview_campaign_update for a dry run: it answers the same and is annotated read-only, so clients that ask before every write need not ask for it. | |
| outro_media_id | No | Attach this outro (media type `outro_video`), replacing any outro in place. | |
| title_template | No | A template for the videos' titles, e.g. `Video for {{first_name}}`. `null` clears it. | |
| language_preference | No | The language of the video pages, as a code, e.g. `de`. `null` clears it. | |
| pitch_video_media_id | No | Only for a campaign without a pitch video (a `draft`): the media id of the pitch (type `pitch_video`). Send `pages` with their `duration_seconds` in the same call. |