v3

latestOpenAPI 3.0.3raw.githubusercontent.com2026-04-276139.8 KB
Collections

Update collection

Update parameters of an existing collection, such as optimizer configuration and HNSW search settings. Vector dimension and distance metric cannot be changed after creation.

patch/collections/{collection_name}

Path parameters

collection_namestring required
Example:my_collection

The name of the collection to update.

Query parameters

timeoutinteger
Example:30

The maximum time to wait for the operation to complete, in seconds.

Request body

Example request

{
  "optimizers_config": {
    "indexing_threshold": 20000
  },
  "hnsw_config": {
    "ef_search": 100
  }
}

Response

Collection updated

timenumber double

Time spent to process this request, in seconds.

statusstring

Operation status.

resultboolean

Whether the operation completed successfully.

Example response

{
  "time": 0.000588548,
  "status": "ok",
  "result": true
}