Update collection
const url = 'https://firma.company-gpt.com/companygpt/rag/api/api/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"displayName":"example","description":"example","searchLanguage":"example","extractionInstructions":"example","imageDescriptionsEnabled":true,"imageDescriptionMode":"all"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://firma.company-gpt.com/companygpt/rag/api/api/collections/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "displayName": "example", "description": "example", "searchLanguage": "example", "extractionInstructions": "example", "imageDescriptionsEnabled": true, "imageDescriptionMode": "all" }'Update collection metadata. Only the owner or a collection admin may update.
Authorizations
Abschnitt betitelt „Authorizations“Parameters
Abschnitt betitelt „Parameters“Path Parameters
Abschnitt betitelt „Path Parameters“Collection UUID
Request Bodyrequired
Abschnitt betitelt „Request Bodyrequired“object
Changing this queues a rebuild_fts job
Updates the structured-extraction prompt; ignored unless the collection has extraction enabled
Responses
Abschnitt betitelt „Responses“Collection updated
Collection record as returned by POST /api/collections, GET /api/collections/{id} and PUT /api/collections/{id} (database.Collection, encoded as-is — this is a different, lower-level shape than the enriched CollectionResponse used by the list endpoint).
object
PostgreSQL text search dictionary, e.g. “english”
Empty for “rag” collections; “imported” or “live” for “dataset” collections
Live-dataset / structured-extraction schema (see LiveSchema)
object
Omitted from the JSON body when empty
Omitted from the JSON body when empty
Example
{ "visibility": "private", "type": "rag", "chunkingStrategy": "recursive", "datasetMode": "", "imageDescriptionMode": ""}Invalid request
Unauthorized
Collection not found (also returned instead of 403 when access is denied)