Start a bulk campaign render
render_campaignStart a durable asynchronous bulk render of a Pitchlane campaign (returns a RenderJob; poll get_render_job for dispatch or get_render_job_progress for actual rendering). Can spend credits for eligible videos, including videos already stored without a render; call preview_campaign_render first to confirm cost and eligibility. An import or recovery job can be waiting. Only one bulk render of a campaign queues at a time: while one is, this is refused with render_request_already_queuing (its job is activeRenderJob in get_rendering_progress). Selection is deterministic: oldest created first, or video_ids order for scope: "videos". It decides which videos limit or on_insufficient_credits: "partial" keeps, not the order the renderer finishes them in.
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": "render_campaign"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional maximum number of eligible videos to queue. Selection is deterministic: oldest created first, or `video_ids` order for `scope: "videos"`. It decides which videos `limit` or `on_insufficient_credits: "partial"` keeps, not the order the renderer finishes them in. | |
| scope | No | Which videos to select: `unrendered` (default), `retry_failed`, `unrendered_and_retry_failed`, `videos` (explicit `video_ids` list), or `import` (one `import_id`). | unrendered |
| import_id | No | Required when `scope` is `import`. | |
| video_ids | No | Required when `scope` is `videos` (1–1,000 video ids, evaluated in this order). | |
| campaign_id | Yes | The campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`. | |
| on_insufficient_credits | No | `fail` (default): refuse if credits cannot cover all selected videos. `partial`: queue as many selected videos as remaining credits allow, in selection order, and defer the rest. | fail |