Up - API Reference - Home
Requires JWT.
Create a new folder asset.
You create a new child for an existing parent. You can fill the fields later with an update.
The parent must be a folder.
If you want to create a file asset, you'll need the upload endpoint.
POST /api/p/<project gid>/assets/create
Authorization: Bearer <JWT>
{
"parent": "<parent asset gid>",
"name": "new folder"
}
parent is the parent for the new asset and must be a folder.
name the name of the folder
Authorization: <JWT>
{
"success": true,
"result": {
"parent": "<parent asset gid>",
"asset": "656d4c14-3c96-41b9-b035-debf51511c45"
},
"data": {
"assets": {
"656d4c14-3c96-41b9-b035-debf51511c45": {
"gid": "656d4c14-3c96-41b9-b035-debf51511c45",
…
},
"<parent asset gid>": {
"gid": "<parent asset gid>",
…
}
}
}
}
asset the newly created folder.
parent its parent with updated childcount.
assets Asset info with hierarchy, type, name. Unordered. Includes the parent asset with updated childcount and info.
400 Bad request - missing parameters or wrong type or value
401 Unauthorized - missing or expired JWT
403 Forbidden - not a member of this project
422 Unprocessable entity - parent asset doesn't exist or isn't a folder