Page create request
name | data type | constraints | description |
---|---|---|---|
folderId | string | The ID of the folder, where the page shall be created. This may either be the local or the global folder id. | |
templateId | number | Id of the template the created page shall use | |
variantId | number | Id of the page, this page shall be a variant of | |
language | string | Language of the created page | |
nodeId | number | Id of the node we want to create page in. | |
pageName | string | Name of the page | |
fileName | string | Filename of the page | |
niceUrl | string | Nice URL of the page | |
alternateUrls | array of string | Alternate URLs (in alphabetical order) | |
forceExtension | boolean | required boolean | Flag for forcing creating of page with the given filename, even if the extension does not match the template's extension. If this flag is false, and the proposed filename does not have the correct extension, the extension will be appended. If the flag is true, no extension will be appended. |
description | string | Description of the page | |
priority | number | Priority of the page | |
contentSetId | number | Contentset ID of the page | |
failOnDuplicate | boolean | True if creating the page with a duplicate name will fail. If false (default) the name will be made unique before saving. | |
variantChannelId | number | The channel of the source page of the variant. If a variant is created, the source page and its translation are taken from this channel. If not specified, the channel in which the page specified by variantId was created is used instead. |
Example
{ "folderId" : "...", "templateId" : 12345, "variantId" : 12345, "language" : "...", "nodeId" : 12345, "pageName" : "...", "fileName" : "...", "niceUrl" : "...", "alternateUrls" : [ "...", "..." ], "forceExtension" : true, "description" : "...", "priority" : 12345, "contentSetId" : 12345, "failOnDuplicate" : true, "variantChannelId" : 12345 }