Skip to navigation

Create Page

View as Markdown

Creates a page. Needs a key with Website Content: Read and Write (website-content:write).

FieldTypeRules
namestringRequired, max 255.
slugstringRequired, max 255. Path segments of letters, digits and ._~- joined by single /, with no leading or trailing slash (about/board-of-directors). The homepage is homepage.
parent_slugstring|nullAn existing page on this website. Send parent pages before their children.
sortinteger0–1,000,000. The menu order.
meta_titlestring|nullMax 255.
meta_descriptionstring|nullMax 1000.
no_indexboolean
show_in_menuboolean
contentsblock[]See the folder description.

The page and its blocks are written in one transaction.

If a page with the same slug already exists, this returns 422. Use Upsert Page when you do not know whether it exists.

Headers

GorillaDash-Api-KeystringOptional
Gorilla Dash API Key
GorillaDash-Api-SecretstringOptional
Gorilla Dash API Secret

Request

This endpoint expects an object.
namestringRequired
slugstringRequired
parent_slugstringRequired
sortintegerRequired
meta_titlestringRequired
meta_descriptionstringRequired
no_indexbooleanRequired
show_in_menubooleanRequired
contentslist of objectsRequired

Response

Created
successboolean
statusinteger
dataobject

Errors

403
Forbidden Error
422
Unprocessable Entity Error