Skip to content

Save a page

POST
/cms/print/v2/subpages/{id}/commit
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.

id
required
integer
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
]
}

Saved

NOT_LOCKED or REVISION_CONFLICT