Skip to main content
PATCH
/
local-folders
/
{local_folder_id}
/
rename
Rename local folder
curl --request PATCH \
  --url https://apigcp.trynia.ai/v2/local-folders/{local_folder_id}/rename \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "new_name": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "display_name": "<string>",
  "status": "processing",
  "folder_path": "<string>",
  "file_count": 0,
  "chunk_count": 0,
  "created_at": "<string>",
  "updated_at": "<string>",
  "error": "<string>",
  "classification": {
    "categories": [
      "<string>"
    ],
    "distribution": {},
    "total_classified": 123,
    "status": "pending",
    "progress": 123,
    "classified_at": "<string>"
  },
  "source_subtype": "database",
  "db_type": "<string>",
  "continuous_sync": {
    "enabled": true,
    "last_sync": "<string>",
    "sync_cursor": {}
  },
  "category_id": "<string>"
}

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Path Parameters

local_folder_id
string
required

Local folder ID

Body

application/json
new_name
string
required

New display name

Required string length: 1 - 200

Response

Local folder renamed

id
string<uuid>
required

Local folder UUID

display_name
string
required

Display name

status
enum<string>
required

Indexing status

Available options:
processing,
completed,
indexed,
failed
folder_path
string | null

Original folder path (metadata)

file_count
integer
default:0

Number of files indexed

chunk_count
integer
default:0

Number of chunks created

created_at
string | null

Creation timestamp (ISO)

updated_at
string | null

Last update timestamp (ISO)

error
string | null

Error message if status is 'failed'

classification
object
source_subtype
enum<string> | null

Source subtype

Available options:
database,
folder
db_type
string | null

Database type (imessage, whatsapp, generic)

continuous_sync
object
category_id
string | null

Category ID if assigned