Media

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

getTree

GET /api/:project/:environment/media/tree

Parameters

Return value

Object Media tree

setTree

POST /api/:project/:environment/media/tree/:id

Parameters

Return value

Object Media tree item

getAll

GET /api/:project/:environment/media

Parameters

Return value

Array All Media nodes

get

GET /api/:project/:environment/media/:id

Parameters

Return value

Media Media

remove

DELETE /api/:project/:environment/media/:id

Parameters

rename

POST /api/:project/:environment/media/rename/:id

Parameters

set

POST /api/:project/:environment/media/:id { filename: 'file.png', base64: ... }

Parameters

new

GET /api/:project/:environment/media/new

Parameters

Return value

String Created Media id