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
Example response
{
"time": 0.000588548,
"status": "ok",
"result": true
}