Content

To authorise an API request, you must get an API token, like this:

POST { username: myusername, password: mypassword } /api/user/login?persist=true|false

Endpoints

createExampleContent

POST /api/:project/:environment/content/example

Parameters

Return value

String OK

getAllContents

GET /api/:project/:environment/content

Parameters

Return value

Array Content nodes

getContent

GET /api/:project/:environment/content/:id

Parameters

Return value

Content Content

previewContent

POST /api/:project/:environment/content/preview

Parameters

Return value

String Preview URL

postContent

POST /api/:project/:environment/content/:id

Parameters

Return value

Content The created Content node

pullContent

POST /api/:project/:environment/content/pull/:id

Parameters

Return value

Content The pulled Content node

pushContent

POST /api/:project/:environment/content/push/:id

Parameters

Return value

String The pushed Content id

publishContent

POST /api/:project/:environment/content/publish

Parameters

Return value

String The published Content

unpublishContent

POST /api/:project/:environment/content/unpublish

Parameters

Return value

String The unpublished Content

deleteContent

DELETE /api/:project/:environment/content/:id

Parameters

Return value

String The deleted Content id