Skip to main content
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
}
'
{
  "id": "d287afa7-2006-4a91-ae24-03a548d0b58f",
  "name": "test folder",
  "isFolder": true,
  "workspaceId": "a00140c3-a621-4bd4-a300-00b9ddb1ed26",
  "companyId": 1,
  "children": [],
  "uiMetadata": {}
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2.0 with the authorization code grant flow.

Path Parameters

Body

application/json
name
string
required

Display name of the folder to create

Example:

"test folder"

parentId
string | null

ID of the parent folder for nested creation. Pass null to create a root-level folder

Example:

"xxxx-xxxx-xxxx"

Response

200 - application/json

Create Folder

id
string

Unique identifier of the created folder

Example:

"d287afa7-2006-4a91-ae24-03a548d0b58f"

name
string

Display name of the folder

Example:

"test folder"

isFolder
boolean

Always true for folder objects

Example:

true

workspaceId
string

ID of the workspace this folder belongs to

Example:

"a00140c3-a621-4bd4-a300-00b9ddb1ed26"

companyId
integer

ID of the company that owns this folder

Example:

1

children
any[]

List of child folders or files nested under this folder

Example:
[]
uiMetadata
object

Additional UI-level metadata associated with the folder

Example:
{}