Zum Inhalt springen
DeutschlandGPT

Dokumentenordner erstellen

Erstellt einen neuen Dokumentenordner im Enterprise-Workspace.

POSThttps://api.deutschlandgpt.de/v2/document-folders

Beispielaufruf

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

Anfrage-Body

namestringerforderlich

Ordnername

descriptionstringoptional

Ordnerbeschreibung

Antwort

201application/json
{
  "id": "00000000-0000-0000-0000-000000000000",
  "name": "string",
  "description": "string",
  "visibility": "string",
  "createdAt": "2025-01-01T00:00:00Z",
  "fileCount": 0
}

Ordner erstellt

idstring<uuid>
namestring
descriptionstring
visibilitystring
createdAtstring<date-time>
fileCountinteger

Statuscodes

201

Ordner erstellt

DocumentFolder
401

Nicht autorisiert

402

Nicht genügend Guthaben oder Ausgabenlimit überschritten

Error
403

Erfordert einen Enterprise-Workspace

War diese Seite hilfreich?