Named edit ops applied in order, all or nothing (or tried: dry_run)
const url = 'http://localhost:8300/v1/studio/timelines/example/edits';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"base_revision":1,"ops":[{"op":"move","clip":"example","index":1,"at":1,"track":"example"}],"dry_run":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8300/v1/studio/timelines/example/edits \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "base_revision": 1, "ops": [ { "op": "move", "clip": "example", "index": 1, "at": 1, "track": "example" } ], "dry_run": false }'Applies ops (at most 200) in order with the timeline rules (t_apply: edit, then normalize) to the current document, which must be base_revision, and stores the result as one revision (one undo undoes the call). dry_run: true answers the same and stores nothing (revision = base_revision). An op that makes clips and leaves out their ids gets ids from studio (answered in diff.added). X-Helm-Client (web, helm, mcp, assistant) labels the revision’s via. 409 timeline changed since you opened it (now revision <n>) when base_revision is not the current one. 422 TimelineEditError when an op cannot apply (op_index, code: an edit error such as split_edge, unknown_clip, take_not_found, or the first problem’s code with every problem of the document after that op) or {detail} for a body that does not fit (fill is studio’s; too_many_ops past 200). Nothing is stored on any error.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sequence UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
The revision the ops were planned on (409 when it is not the current one)
V1: to index (V1 ripples); an audio clip: a new start at, optionally on another audio track
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Move one edge by delta seconds (snapped to frames), clamped to the take and the dissolves
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Cut the clip of track under the playhead at; the right part gets id (absent: studio makes one)
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
V1: ids for the right parts of its linked sound clips cut with it, in track order (absent ones: studio makes them)
Remove the clip
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
An audio-track clip: the later clips of its track move left by its length (V1 always ripples)
V1 only: an empty slot of the clip’s length, same id
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
The clip’s take becomes take_id, one of its alternatives
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Set the clip’s fields; null removes one
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Append takes in order to track (default V1); ids for the new clips, in order (absent ones: studio makes them)
object
An empty slot of hold seconds at the V1 cut nearest at
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
An empty slot of hold seconds at exactly at on V1 (Make shot’s edit); gap_id for a gap it needs
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
A new audio track at the end
object
Remove an audio track and its clips
object
A track’s gain or mute
object
V1: the cut before the clip moves by delta (the clip before ends later, this one starts later; the length is kept, the dissolve on the cut moves with it)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped to frames
The clip shows other frames of its take, in and out moved by delta (place and length kept)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped to frames
V1: the clip moves along V1 by delta, its content and length kept; the clip before and the one after give and take the frames
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped to frames
The clip goes in at at over what is there, no ripple (V1: it leaves an empty slot where it was; audio: onto track, default its own)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Ids for the clips it makes, in track order, then left to right (absent ones: studio makes them; too few in a web replay: ids_short)
Blade on every track at at (a clip with a shot or a cut there is skipped)
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Ids for the clips it makes, in track order, then left to right (absent ones: studio makes them; too few in a web replay: ids_short)
Every track cut at from and to, what is between removed; V1 and the audio tracks ripple
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Ids for the clips it makes, in track order, then left to right (absent ones: studio makes them; too few in a web replay: ids_short)
Every track cut at from and to, what is between lifted (V1: one empty slot; audio: a gap); nothing moves
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
Ids for the clips it makes, in track order, then left to right (absent ones: studio makes them; too few in a web replay: ids_short)
Put a marker (a new id adds one, a known one is replaced whole; absent: studio makes one)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
A marker’s colour, drawn with the theme’s own shade
Remove a marker
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Try it: the same answer, nothing stored
Responses
Section titled “Responses”The result
object
The stored revision; a dry run: base_revision
As GET …/{timeline_id} answers it (a dry run: what it would be)
object
The session its shots run in (follow it with GET …/sessions/{session_id}/events); null after that session was deleted (the next shot makes a new one)
1 on create, +1 on every stored change of the document
object
Look ids, in order; a repeated id counts once (its first place)
Every take the document names that is not offline
object
A take the document names (a clip’s or an alternative), signed for the editor and the preview
object
Create: an output of a Create run; upload: a file the user uploaded; pipeline: an output of a batch run; import: an item of the old helmstudio gallery, brought in by helm import (legacy); export: a sequence’s export (export); frame: a video take’s first or last frame (frame_of); tool: made by a plugin tool from takes of yours
Signed, time-limited link; opaque
The take’s thumbnail (Take.thumb_url)
url / thumb_url of the take stay the MP4 and the poster’s thumbnail; poster_url is the full-size poster.
object
Frames / fps
The MP4 has an audio track (LTX: AAC 48 kHz stereo)
Signed, time-limited link; opaque
Kind audio only: its length, rate and a dialogue’s cues (ticks on the clip)
object
An upload: as the client declared it
Absent for an upload (studio does not decode it)
A dialogue’s take only: one per line, in order; the stage draws them as line markers, the Timeline as ticks on the clip (sequence time = clip at + cue − clip in)
One dialogue line in its take (defs cue): line from 1, [start_s, end_s) in the take’s own seconds, the speaker’s voice id (a deleted voice’s id stays), the text as spoken
object
made_with.seed; null without one
made_with.workflow_id; null for an upload, import, frame or export (no “from this clip”, no re-render)
made_with.render_s (the clip inspector’s “⏱ 3:12”; the sequence’s total sums its clips’ takes that have one); absent without one
Who wrote name, as a session’s title
The model that wrote the name while title_source is model; null otherwise
frames in seconds
The sequence’s length: V1’s end (no V1 clip: the last sound’s)
The sequence’s geometry and rates; the codec is the export’s (H.264 + AAC in MP4)
object
One of the rate table (exact rates 24000/1001, 30000/1001, 60000/1001 for the NTSC ones)
object
Answers only (ignored in a write): V1, then A2…A9 by position (A1 is V1’s own sound, drawn under it)
A slot: a take, or an empty slot (take_id null, hold): black and silence; on an audio track only a New line’s placeholder
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
A video take: the source time it starts at (default 0)
A video take: the source time it ends at (default its length)
An image take or an empty slot: its length in seconds
An audio track: where it starts on the sequence (required there); V1: computed, ignored in a write
V1: the clip’s own sound is off
object
Centred on the cut: half before it, half after
The takes made for this slot, oldest first; the current take_id is among them (studio adds it). Replace picks one
A generation filling this slot (made by studio only; a write keeps it or drops it): a New shot’s run, or a Re-render batch’s step. In answers it adds status and, failed, error
object
The re-render pipeline’s step for this clip
Answers only: the run’s, or the batch step’s (a cancelled or succeeded one is gone from the document)
Answers only, failed: the run’s error
A generation filling this slot (made by studio only; a write keeps it or drops it): a New shot’s run, or a Re-render batch’s step. In answers it adds status and, failed, error
object
The re-render pipeline’s step for this clip
Answers only: the run’s, or the batch step’s (a cancelled or succeeded one is gone from the document)
Answers only, failed: the run’s error
V1 only: the shot number (“Shot 4”), given by studio when the clip is added (the highest so far + 1) and kept when it moves; a write cannot change a stored clip’s.
Answers only, true when the take is deleted or gone: the clip keeps its place and length, plays as offline and blocks an export
An audio-track clip only: the V1 clip it is linked to
At most 200 (too_many_markers); absent = none; answers sort them by time, then id, and leave the list out when empty
A named point on the sequence (snapped to frames; drawn on the ruler, a snap target)
object
Unique among the markers
Sequence seconds; with V1 clips never past the end (marker_past_end)
A marker’s colour, drawn with the theme’s own shade
What changed between two normalized documents, by clip id; a field absent on one side is null
object
New clip ids, in track order (studio-made ones included)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Field → [before, after], among take_id, in, out, hold, at, gain_db, mute, transition_in, alternatives, shot, offline, track and link (a V1 ripple shows as at changes)
object
object
object
object
[before, after] duration_s
Markers by id
object
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
Among at, name, color
object
What studio changed beyond the ops (a time snapped to the frame grid); never a refusal
Example
{ "timeline": { "target": { "fps": 23.976, "sample_rate": 44100 }, "tracks": [ { "kind": "video", "gain_db": 0, "mute": false, "clips": [ { "gain_db": 0, "mute": false, "transition_in": { "type": "dissolve" }, "shot": { "status": "queued" } } ] } ], "markers": [ { "color": "red" } ] }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}The body does not fit the schema ({detail} only), or an op cannot apply (op_index, code, problems)
TimelineError plus the failing op: ops[3]: split_edge, or ops[3]: timeline has 2 problems: …; {detail} only when the body does not fit
object
The edit’s error code or the first problem’s code
Example
{ "problems": [ { "code": "dissolve_handles", "track": "V1" } ]}Retryable
object
Example generated
{ "detail": "example"}