Skip to Content
Docs
ReferenceOrganise

Create a folder

POST
/create_folder

Creates a folder in a project the user can edit. Pass parent_id "root" for the project root, or a folder's entry_id from list_folder or create_folder to create it inside that folder.

Needs a key with awen:write. Costs 2 units of the key's rate limit.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from Settings → Connected apps → API keys, sent as Authorization: Bearer awen_sk_…. Keep it on a server: a request from a web page is refused.

Request Body

application/json
  1. body
project_id*string

The project's project_id.

Match^[A-Za-z0-9_-]+$
Length1 <= length <= 128
name*string

The folder's name.

Match^[^\x00]*$
Length1 <= length <= 2083
parent_id*|

"root", or the entry_id of the folder to create it in.

Response Body

The operation's answer.

application/json
  1. response
id*string
entry_id*string
name*string
parent_id*string
url*string
Example Request
curl -X POST 'https://app.awen.ai/api/v1/create_folder' \  -H 'Content-Type: application/json' \  -d '{  "project_id": "string",  "name": "string",  "parent_id": "root"}'
Example Response
{  "id": "string",  "entry_id": "string",  "name": "string",  "parent_id": "string",  "url": "string"}