publishLayout
const url = 'https://example.com/api/v1/layouts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/publish';const options = { method: 'POST', headers: { cookie: 'tilecast_session=<tilecast_session>', 'Content-Type': 'application/json' }, body: '{"expectedDraftRevision":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/layouts/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/publish \ --header 'Content-Type: application/json' \ --cookie tilecast_session=<tilecast_session> \ --data '{ "expectedDraftRevision": 1 }'Publish layout. Requires an authenticated dashboard user. Publishes the draft the caller read first: the request carries the draft revision it saw, and a 409 means someone else published first. A layout under editorial review answers 202 with the submission instead of publishing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Cookie-backed browser requests only, and only on unsafe methods. Bearer grants never send it.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "expectedDraftRevision": 1}Responses
Section titled “ Responses ”Immutable published revision created
object
Exact submitted snapshot published and recorded in history. The published record carries untagged Go-cased keys from the editorial package.
object
object
object
Native published record with untagged Go-cased keys.
object
object
object
Only schema version 2 is accepted.
object
object
Legacy Widget placement override bag. The listed values are accepted for saved-document compatibility but are ignored by Studio and Player.
object
object
Only bundled fonts are accepted for text primitives
A family from the organization font library. fontFamily stays the bundled fallback
object
object
Example
{ "data": { "submission": { "contentType": "playlist", "status": "in_review" } }}Submitted for editorial review instead of publishing
object
object
object
Example
{ "data": { "contentType": "playlist", "status": "in_review" }}Draft revision conflict