Build the film from a template
apply_templateBuild the whole film from a template. Checks the slots against the template's rules, adds the components it uses to the project and replaces main.film with the edit. slots is the slots object as JSON text, in the shape read_template shows, with this project's Asset IDs. A slot that breaks a rule fails with the slot named: fix that slot and call again. After it applies, check the film with preview_frame and adjust it with patch_film. branchId null means the current version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slots | Yes | The slots object as JSON text, in the shape read_template shows. | |
| branchId | Yes | Version id from list_branches to write to, without switching the editor to it. null, or leaving it out, means the current version. | |
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| templateId | Yes | Template id from search_templates. |