Preview a Pitchlane campaign change
preview_campaign_updateDry-run a change to a Pitchlane campaign's content or ordinary settings without applying it: name, title template, folder, language, pages, outro, or a pitch video for a draft, with the same argument names as update_campaign. It answers what would change (the settings set, the variables added and removed, what would be processed again) and the problems that would refuse it. No campaign change is saved or queued, and nothing is recorded from the web; the API's usual request bookkeeping (rate limits, logs) still applies. It does NOT check landing page settings or hosting (landing_page_hosting, landing_page_public_fields): a call with those, or with any argument not listed here, is refused and nothing is checked. Use it to check a change, e.g. attaching an uploaded pitch video and pages to a draft, before update_campaign applies it. A clean preview is not a guarantee: setup checks that run when the change is applied (measuring the media, a folder deleted meanwhile) can still refuse it. pages is checked as the whole new list, as update_campaign would replace it. revision (from get_campaign) guards the pages and outline only: refused with 409 if they changed since; a change to name, folder or other settings made meanwhile does not move it. An archived campaign is refused, except a change of folder_id alone.
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": "preview_campaign_update"
}
}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. | |
| 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. |