Skip to main content
POST
/
v1
/
document-folders
Create a document folder
curl --request POST \
  --url https://api.devic.ai/v1/document-folders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "projectId": "<string>",
  "parentFolderId": "<string>",
  "color": "<string>"
}
'
{
  "_id": "<string>",
  "clientUID": "<string>",
  "projectId": "<string>",
  "name": "<string>",
  "parentFolderId": "<string>",
  "color": "<string>"
}

Authorizations

Authorization
string
header
required

Use JWT token for authentication

Body

application/json
name
string
required

Folder name

projectId
string

Optional project ID

parentFolderId
string

Optional parent folder ID

color
string

Optional color tag

Response

Folder created successfully

_id
string

Folder ID

clientUID
string

Client UID

projectId
string

Project ID the folder is scoped to

name
string

Folder name

parentFolderId
string | null

Parent folder ID

color
string

Optional color tag