Create Folder
Enterprise Search
Create Folder
1️⃣ Overview
Purpose:
Creates a new folder inside a workspace.
Supports nested folder creation by passing a parentId.
2️⃣ Endpoint
POST /noCo/api/v2/workspaces/{workspaceId}/folder
3️⃣ Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | ✅ Yes | The ID of the workspace where the folder will be created |
4️⃣ Authentication
Requires authentication using:
Authorization: Bearer <token>
5️⃣ Request Headers
| Header | Required |
|---|---|
| Authorization | ✅ Yes |
6️⃣ Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | ✅ Yes | Name of the folder to create |
| parentId | string | ❌ No | ID of the parent folder for nested creation. Pass null for a root-level folder |
7️⃣ Example Request
curl --location 'https://be.datagol.ai/noCo/api/v2/workspaces/{workspaceId}/folder' \
--header 'Authorization: Bearer <token>' \
--data-raw '{"name":"test folder","parentId":null}'
8️⃣ Behavior Summary
Creates a new folder in the specified workspace.
Returns the created folder object including its generated id.
To create a nested folder, set parentId to the id of an existing folder.
Pass parentId as null to create a root-level folder.
POST
Create Folder
Authorizations
This API uses OAuth 2.0 with the authorization code grant flow.
Path Parameters
Body
application/json
Response
200 - application/json
Create Folder
Unique identifier of the created folder
Example:
"d287afa7-2006-4a91-ae24-03a548d0b58f"
Display name of the folder
Example:
"test folder"
Always true for folder objects
Example:
true
ID of the workspace this folder belongs to
Example:
"a00140c3-a621-4bd4-a300-00b9ddb1ed26"
ID of the company that owns this folder
Example:
1
List of child folders or files nested under this folder
Example:
[]Additional UI-level metadata associated with the folder
Example:
{}