Save a page
POST
/cms/print/v2/subpages/{id}/commit
const url = 'https://api.example.com/cms/print/v2/subpages/1/commit';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"baseRevision":1,"layout":"example","pdfPrint":"example","pdfDisplay":"example","previews":["example"],"release":true,"attachments":[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://api.example.com/cms/print/v2/subpages/1/commit \ --header 'API-Key: <API-Key>' \ --header 'Content-Type: application/json' \ --header 'Token-User: <Token-User>' \ --data '{ "baseRevision": 1, "layout": "example", "pdfPrint": "example", "pdfDisplay": "example", "previews": [ "example" ], "release": true, "attachments": [ 1 ] }'Stores a new layout revision from finished uploads (POST /cms/print/v2/subpages/{id}/uploads), with optional print and display PDFs and page previews (one per page, in order), all at once. The page must be checked out by this client, and baseRevision must be the revision the layout was opened at; otherwise 409 NOT_LOCKED or REVISION_CONFLICT with the current state. release: true also checks the page in.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
baseRevision
required
integer
layout
required
Upload id of the INDD file
string
pdfPrint
Upload id
string
pdfDisplay
Upload id
string
previews
Upload ids of JPEG previews, one per page
Array<string>
release
boolean
attachments
Ids of the CMS images placed on the page
Array<integer>
Example generated
{ "baseRevision": 1, "layout": "example", "pdfPrint": "example", "pdfDisplay": "example", "previews": [ "example" ], "release": true, "attachments": [ 1 ]}Responses
Section titled “Responses”Saved
NOT_LOCKED or REVISION_CONFLICT