Skip to main content
PATCH
/
folders
/
{id}
Update a folder
curl --request PATCH \
  --url https://app.generalcounsel.ai/api/external/v1/folders/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "parent_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "is_access_controlled": true
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "path": "/My Files/Contracts",
  "parent_folder_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "folder_type": "<string>",
  "created_at": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gc.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for authentication. Format: gcai_xxxxxxxxx

Create API keys in the GC AI app under Settings → API.

Path Parameters

id
string<uuid>
required

The folder ID

Body

application/json
name
string

New folder name (minimum 2 characters)

Minimum string length: 2
description
string

New folder description

parent_folder_id
string<uuid>

Target parent folder ID. The destination must not be the folder itself or one of its descendants.

is_access_controlled
boolean

Whether the folder requires explicit access grants

Response

Folder updated successfully

id
string<uuid>
required

Unique folder identifier

name
string
required

Folder name

description
string | null
required

Folder description, or null if unset

path
string
required

Path through ancestors visible to the requester. Inaccessible ancestors are skipped, so this may not reflect absolute depth. Use parent_folder_id to traverse hierarchy.

Example:

"/My Files/Contracts"

parent_folder_id
string<uuid> | null
required

Parent folder ID, or null for root

folder_type
string
required

Folder type (custom, my-files, etc.)

created_at
string
required

ISO 8601 creation timestamp