Add a page to an issue
POST
/cms/print/v2/issues/{id}/subpages
const url = 'https://api.example.com/cms/print/v2/issues/1/subpages';const options = { method: 'POST', headers: { 'API-Key': '<API-Key>', 'Token-User': '<Token-User>', 'Content-Type': 'application/json' }, body: '{"number":"example","name":"example","templateId":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/issues/1/subpages \ --header 'API-Key: <API-Key>' \ --header 'Content-Type: application/json' \ --header 'Token-User: <Token-User>' \ --data '{ "number": "example", "name": "example", "templateId": 1 }'A new draft page laid out with one of the publication’s templates: the template’s file is the page’s first layout revision. number is free text as in the CMS (“4”, or “4-5” for two pages in one file); pages are ordered by it.
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
number
required
string
name
string
templateId
required
integer
Example generated
{ "number": "example", "name": "example", "templateId": 1}Responses
Section titled “Responses”The new page, as in the issue snapshot