Tweak one existing element (merge changed fields)
edit_elementChange fields on any element anywhere in your composition by merging a partial patch. Set keys to null to remove them; the result is validated before being accepted.
Instructions
Change fields on the element with the given id by merging in a partial element — only the keys you include change. The id may be any element ANYWHERE in the tree, including one nested inside a group (or its mask). Pass a whole nested value (e.g. a new keyframe_animations array) to replace that key; set a key to null to remove it. This is for TWEAKING an existing composition. To create a composition or change many elements at once, edit the JSON and call set_project instead. The result is re-validated before being accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the element to edit. | |
| patch | Yes | Partial element: the fields to change. Omitted keys are left as-is; a key set to null is removed. | |
| project_id | No | Which project to act on — the id returned by create_project / set_project / create_promo / load_project. Omit when working on a single local project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| changed_keys | Yes |