Zum Inhalt springen
DeutschlandGPT

Update document folder

Updates a document folder's name and/or description.

PUThttps://api.deutschlandgpt.de/v2/document-folders/{id}

Example request

curl https://api.deutschlandgpt.de/v2/document-folders/{id} \
  -X PUT \
  -H "Authorization: Bearer $DGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "string",
  "description": "string"
}'

Parameters

idstring<uuid>required

Document folder ID

Request body

namestringoptional
descriptionstringoptional

Response

200application/json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "description": "string",
  "visibility": "string",
  "createdAt": "2025-01-01T00:00:00Z",
  "files": [
    {
      "id": "string",
      "name": "string",
      "type": "string",
      "createdAt": "2025-01-01T00:00:00Z"
    }
  ]
}

Updated folder

idstring<uuid>
namestring
descriptionstring
visibilitystring
createdAtstring<date-time>
filesobject[]
idstring
namestring
typestring
createdAtstring<date-time>

Response codes

200

Updated folder

DocumentFolderDetail
401

Unauthorized

402

Insufficient credits or spending limit exceeded

Error
403

Requires enterprise workspace

404

Folder not found or access denied

Was this page helpful?