Check out a page
POST
/cms/print/v2/subpages/{id}/lock
const url = 'https://api.example.com/cms/print/v2/subpages/1/lock';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"takeover":true}'};
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/lock \ --header 'API-Key: <API-Key>' \ --header 'Content-Type: application/json' \ --header 'Token-User: <Token-User>' \ --data '{ "takeover": true }'Takes the page for this user and client (Print-Client header). Calling it again refreshes the check-out. 409 LOCKED with the holder when someone else has it; the same user on another client only gets it with takeover: true.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
Request Body
Section titled “Request Body”Media typeapplication/json
object
takeover
boolean
Example generated
{ "takeover": true}Responses
Section titled “Responses”Checked out; the current layout revision
LOCKED