Publish an older version again
Its document becomes the next version (the draft is untouched: publishing the draft later is refused with STALE_PUBLISH until you send overwritePublished, and discard makes the draft this version too). expectedVersion is required — the latest published version you saw (version in GET /scenes/), or send it as If-Match: "<n>" (sent both ways, they must be the same number, else 422 INVALID_INPUT); if someone published since — found up front or by a revert that lands first — nothing changes: STALE_PUBLISH (status 409 for expectedVersion, 412 for If-Match) with publishedVersion and what the revert would also take off air (reverted). On air, it is refused with CONFIRM_REQUIRED like a publish: send confirm: true to accept that.
Authorizations
A Streamloop API key (sl_…). It carries no workspace: send X-Workspace-Id too (400 WORKSPACE_REQUIRED otherwise).
Headers
Retry safely: the key (per caller, workspace, method and path) is taken before the request runs, and its first answer is replayed for 24 hours, with Idempotency-Replayed: true — a repeat sent while the first still runs waits for it. The same key with a different body is 422 IDEMPOTENCY_KEY_REUSED. A 5xx is not kept: the retry runs.
200The published version you saw, instead of expectedVersion
The workspace to act in. Required with an API key; otherwise the session's own.
Path Parameters
The scene's id (scn_…)
^scn_Body
A published version's number (0 or less: 422 INVALID_INPUT; one that doesn't exist: 404)
x >= 1The latest published version you saw (required, or If-Match)
x >= 0I accept what CONFIRM_REQUIRED named: viewers see this at once
Response
Published
The published version after this call. On a dry run it is unchanged (0: never published) and the draft would become the next one
What happened and what comes next, in a sentence
null on a dry run of a scene never published
The draft was what is published already: no new version
What changed since the previous version, as resource paths (change frame/main/title props.value, add source/data/hn)
Only checked: nothing was published
What to know about this publish: edits a pinned draftRevision left in the draft, a revert's draft
The draftRevision was an older one: the draft has changed since, and those changes are not published