/v1/knowledge/collections/{collection_id}Create a new collection (creates directory structure). The DB record is created separately; this endpoint only sets up the filesystem layout. Tenant ownership cannot be asserted here (the collection row does not exist yet), so we enforce: (a) a real authenticated session via get_principal_context, and (b) a valid UUID format so the collection_id cannot be used for path injection.
| Name | Type | Required | Description |
|---|---|---|---|
collection_id | string | Required |
| Name | Type | Required | Description |
|---|---|---|---|
X-API-Key | string | Optional |
curl -X POST '/api-proxy/v1/knowledge/collections/{collection_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN>'No response body documented
curl -X POST '/api-proxy/v1/knowledge/collections/{collection_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN>'No response body documented