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

example

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

Parameters

Return value

String OK

getAll

GET /api/:project/:environment/content

Parameters

Return value

Array Content

get

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

Parameters

Return value

Content Content

preview

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

Parameters

Return value

String Preview URL

set

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

Parameters

Return value

Content The created Content node

insert

POST /api/:project/:environment/content/insert

Parameters

Return value

Content The created Content node

pull

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

Parameters

Return value

Content The pulled Content node

push

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

Parameters

Return value

String The pushed Content id

publish

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

Parameters

Return value

String The published Content

unpublish

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

Parameters

Return value

String The unpublished Content

remove

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

Parameters

Return value

String The deleted Content id