Create template
create_templateConvert a complete project JSON into a reusable template with safe defaults for placeholders and explicit durations for video scenes, validated against your account plan.
Instructions
Create a reusable template from complete project JSON. Read get_project_schema first; every placeholder must have a safe default and video-template scenes need explicit durations. The backend validates the template against this account's plan before saving it. This is also the render path for adapted library examples that use variables/condition/iterate: create_template -> preview_template -> create_render { template, variables }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| payload | Yes | Full Zvid project JSON (scenes, elements, output settings). Call get_project_schema for the JSON Schema, list_supported_elements / get_element_docs for element docs, and validate_project_json BEFORE rendering. | |
| description | No |