Skip to main content
POST
Edit a timeline

Authorizations

Authorization
string
header
required

A VidJutsu API key (vj_live_...) from POST /auth/verify or POST /keys, or an OAuth access token (MCP clients).

Headers

VidJutsu-Version
string

The API version you wrote your integration against, a date. Without it you get the latest version. The current version is 2026-11-03. See https://docs.vidjutsu.ai/api-reference/introduction#versioning.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-11-03"

Idempotency-Key
string

Makes a write safe to retry: the same key returns the first result instead of doing the work twice. Up to 128 printable characters.

Maximum string length: 128

Path Parameters

project
string
required

Project name (letters, digits, '-', '_').

Body

application/json

Edit operations applied to a branch head as one atomic commit. The body is a list of operations, or an object with operations and optionally branch and, for safe retries, expected_head and idempotency_key. Times are seconds (12, "12.5") or fractions ("1001/30000").

operations
object[]
required

Edit operations, each named by op: add_media, add_track, insert_clip, delete_clip, move_clip, trim_clip, swap_media, set_gain, set_fade, cut_pauses, set_layout. Each operation sees the result of the ones before it. See https://docs.vidjutsu.ai/guides/editing.

author
string | null

Who is editing, as history and Activity name them. Default: you.

branch
string | null
expected_head
string | null

The head this edit was written against; a moved head is a conflict. Absent: the current head.

idempotency_key
string | null
summary
string | null

One line for Activity ("Cut 14 filler words"); default: made from the changes.

Response

Committed

branch
string
required
duration_seconds
number
required
parent
string
required
project
string
required
revision
string
required