Skip to main content
POST
Apply a layout preset

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"

Path Parameters

project
string
required

The project name.

Body

application/json

Leave out from and to for the whole video.

preset
string
required

A preset id or name from GET /layouts.

from

Seconds (12, "12.5"), a fraction ("1001/30000") or {ticks, rate}.

to

Seconds (12, "12.5"), a fraction ("1001/30000") or {ticks, rate}.

screen_track
string

The screen's video track. Default: found from the files' kinds, else the lowest video track.

camera_track
string

The camera's video track. Default: found from the files' kinds, else the next video track.

expected_head
string

The head you decided against; a moved head is a conflict.

Response

The edit

The edit (like POST /projects/{project}/edits answers) plus the preset, which track got which part, and a warning when the camera would be hidden.

layout
object

The preset applied.

applied
object[]
warning
string

Present when the camera's track is under the screen's. Tracks draw bottom to top, so the screen hides the camera wherever it covers it: keep the camera on a higher track.