Method
edit.apply
Applies one edit command and records one undo step.
Parameters
The edit. Boxed because a command is the largest thing a request carries; the JSON is the command as it is.
pathstringrequiredThe project folder.
ReplyEditorView
{
"method": "edit.apply",
"path": "/edits/Reel",
"command": {
"op": "addClip",
"mediaId": "m1",
"trackId": "T1",
"start": 2.5
}
}Reply: an EditorView of the project after the edit.
Good to know:
createdIdin the reply is the id of what the command made: a clipc…, trackt…, timelinetl…or mediam…. For abatchit is the last id minted inside.- A refusal is a
refusederror. Its message is the sentence the window would show. Nothing changed. - An edit that names something no longer there is, for most commands, a tolerated no-op: unchanged view, no undo step.
- Several commands as one undo step: wrap them in
{"op": "batch", "commands": [...]}.