Create Folder
curl --request POST \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "test folder",
"parentId": null
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder"
payload = {
"name": "test folder",
"parentId": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'test folder', parentId: null})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'test folder',
'parentId' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder"
payload := strings.NewReader("{\n \"name\": \"test folder\",\n \"parentId\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"test folder\",\n \"parentId\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"test folder\",\n \"parentId\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "d287afa7-2006-4a91-ae24-03a548d0b58f",
"name": "test folder",
"isFolder": true,
"workspaceId": "a00140c3-a621-4bd4-a300-00b9ddb1ed26",
"companyId": 1,
"children": [],
"uiMetadata": {}
}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
/
noCo
/
api
/
v2
/
workspaces
/
{workspace_id}
/
folder
Create Folder
curl --request POST \
--url https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "test folder",
"parentId": null
}
'import requests
url = "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder"
payload = {
"name": "test folder",
"parentId": None
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'test folder', parentId: null})
};
fetch('https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'test folder',
'parentId' => null
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder"
payload := strings.NewReader("{\n \"name\": \"test folder\",\n \"parentId\": null\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"test folder\",\n \"parentId\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/noCo/api/v2/workspaces/{workspace_id}/folder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"test folder\",\n \"parentId\": null\n}"
response = http.request(request)
puts response.read_body{
"id": "d287afa7-2006-4a91-ae24-03a548d0b58f",
"name": "test folder",
"isFolder": true,
"workspaceId": "a00140c3-a621-4bd4-a300-00b9ddb1ed26",
"companyId": 1,
"children": [],
"uiMetadata": {}
}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:
{}