Skip to main content
POST
apply layout

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

Idempotency-Key
string

Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.

x-workspace-id
string

The workspace this one call acts in, when it is not the key's own.

Body

application/json
timeline_id
string
required

The timeline id.

layout
enum<string>
required
Available options:
split-h,
split-v,
pip-bottom-right,
pip-bottom-left,
pip-top-right,
pip-top-left,
main-sidebar,
row3,
stack3,
grid-2x2,
grid-3x3,
grid-4x4
slots
object[]
required
Minimum array length: 1
fit
enum<string>
Available options:
fill,
fit
range
object

Placing items only: the span of the timeline the layout occupies, in seconds. Required with item, ignored with clip_id.

if_revision

The revision get_timeline returned. A stale one fails with revision_conflict instead of applying; so does no revision once a user edited the timeline in the app since this connection last read it.

context
string

Optional: one sentence shown to the user beside this action.

Maximum string length: 600

Response

Done, or a job started for work that runs longer (follow it with get_jobs).

ok
any
required
data
object
required
meta
object
required
media
object[]