v1
latestOpenAPI 3.0.02026-07-2417611.8 MBCreate a page.
Use this endpoint to create a page in a specified site. The body of the request should contain the metadata for the new page. This metadata should include the page 'name', optional 'position' relative to its peers and the 'contentId' or 'contentTypeId'. Specify 'contentId' to associate an existing content item with the page or specify 'contentTypeId' to create an empty content item using the specified content type. The 'position' field is optional, value is an integer value starting at 0. If not set position is set to the last sibling position. The 'layoutId' field is also optional. If not set the selected layout for the new content item will be the default layout mapped to the specified content type. If the 'layoutId' field is specified it must be the ID of an existing layout. If the specified layout is not mapped to the content type then the default layout mapped to the content type will be used instead. <br />User roles: admin, manager
Path parameters
The ID of the site.
Query parameters
Clone the provided content item and to use the clone for this new page. If 'contentId' is set on the body, it is ignored and replaced with the id of the newly cloned content Item A non zero length value for 'contentTypeId' in the body must be specified to satisify the API requirements.
If ‘copySourcePageId’ is specified when creating a page then a new page is created by making a deep copy of the source page and its content.
Request body
Response
succcess.