Documentation

/pages/:id PUT

Description

Update a page

Parameters

Name Type Description
title string title of the page
url string url of the page
content hash/string content of the page
schema hash/string schema of the editable content
position integer position of the page within the Boxcab editor sidebar

Response

Name Type Description
id integer id of the page
title string title of the page
position integer position of the page within the Boxcab editor sidebar
url string url of your page
path string path of your page (url without the protocol, domain and port)
hashed_path string hash version of the path. Can be used as an id
content hash content of the page
schema hash the description of the editable "regions"
updated_at string last time the content of the page was edited

Example

curl -X PUT \
  -H "x-boxcab-site-handle: <your site handle>" \
  -H "x-boxcab-api-key: <your API key>" \
  -F "page[title]=My new page" \
  https://editor.boxcab.io/api/v1/pages/<id or hashed_path of your page>