Propose a gallery template
propose_templateSubmit a recreated video as an official HyperCodeMotion Studio gallery template, with the moderator code: the source link, its three compositions (cuadrado 1080×1080, vertical 1080×1920, horizontal 1920×1080) and the gallery card. It checks the source, the compositions and the card; if anything fails it returns accepted: false with the errors to fix and keeps it as a draft with a code, to be fixed with patch (estimated text overflows are only warnings). Do not call validate_json first: this runs the same checks. When accepted, the composition in the original's format is rendered with the Studio engine and compared with the original frame by frame; get_proposal_status returns that comparison. To send fixes after a comparison, call it again with the same code (up to 3 comparisons): send only patch (the changes, applied to the stored compositions; card may be left out) instead of the three full compositions, unless you are redesigning. Nothing is published until publish_template. A video that is already a template is not stored twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Link of the source video's page, the same one given to get_recreation_brief. | |
| card | No | Gallery card, in Spanish. Required on a first proposal; a revision keeps the previous one when left out. | |
| code | No | Only to send a revision after a comparison: the tracking code of the first proposal. | |
| patch | No | Only with code, instead of compositions: the changes to the stored compositions. Each item {op: replace|add|remove|edit, path: JSON pointer such as /layers/3/props/fontSize or /docs/s1, value (replace, add), find and replace (edit: changes one exact piece of a text such as a doc's HTML or CSS; find must appear once), variants: which of cuadrado, vertical, horizontal (default all three)}. | |
| adminCode | Yes | The moderator code the user gave with the link. Required: only moderators can make gallery templates. Never repeat it back. | |
| compositions | No | The three compositions, as objects or JSON-encoded strings. Required on a first proposal; a revision may send patch instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| round | No | ||
| errors | Yes | ||
| status | No | ||
| message | No | ||
| accepted | Yes | ||
| template | No | ||
| duplicate | No |