Read a resource
A resource with its revision (also the ETag) and children (the paths to read next); a type (frame, source/data, element/Text: what it takes, with an example); or a list (a path ending in /*). as=image on a frame/<id> or a layer answers a PNG of it as it goes on air, drawn by the channel’s renderer — or, with Accept: application/json, the picture as a data URL with what drew (drawn) and what is wrong (issues: outside title-safe, overlapping, too small, a bound table with no rows). version reads a published version instead of the draft. If-None-Match with the ETag you hold answers 304 when nothing changed.
Authorizations
A Streamloop API key (sl_…). It carries no workspace: send X-Workspace-Id too (400 WORKSPACE_REQUIRED otherwise).
Headers
The workspace to act in. Required with an API key; otherwise the session's own.
Path Parameters
The scene's id (scn_…)
^scn_A resource path, slashes and all: frame/intro, frame/intro/title, source/data/headlines/rows, component/LowerThird, script/show.ts, a type (element/Text) or a list (frame/*)
Query Parameters
image: a PNG of a frame/<id> (at most 1280 px wide) or a layer (full size); json: a frame/<id> as a node tree instead of JSX
image, json A published version's number (a positive integer), or published; anything else is 422 INVALID_INPUT
Rows per page (…/rows)
1 <= x <= 200First row (…/rows)
x >= 0Picture: ms since that frame/<id> went on air
Picture: a 10 % grid, or each layer's outline and id
grid, ids Picture: bindings read live values (the default: tables as last read) or each table's sample rows. A picture draws the frame as it would go on air — it is not a capture of a running stream: controls and state are at their starting values
live, sample Response
The answer, or a PNG for as=image (a picture lists, with Accept: application/json, what didn't draw in notDrawn and why in issues — an Image whose file the channel can't load among them)
What a draft operation answers. summary says what happened in a sentence; value is what a read found.
What was read: a resource (with revision and children), a type (what it takes), or a list
- Option 1 · object
- Option 2 · object
- Option 3 · object
- Option 4 · object
- Option 5 · object
- Option 6 · object
- Option 7 · object
- Option 8 · object[]
A write: where it is stored (a new id is made unique)
A write: the resource's new revision
A layer's write: the revision of the frame/<id> it is in (If-Match takes either)
A write: a unified diff of what changed
The whole draft as this answer saw it: publish takes it