For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CloudGitHub
  • API Reference
      • GETGet collection details
      • PUTCreate a collection
      • DELDelete a collection
      • PATCHUpdate collection parameters
      • GETList all collections
      • GETCheck collection existence
LogoLogo
CloudGitHub
API ReferenceCollections

Update collection parameters

PATCH
/collections/:collection_name
PATCH
/collections/:collection_name
$curl -X PATCH \
> 'http://localhost:6333/collections/collection_name' \
> --header 'api-key: <api-key-value>' \
> --header 'Content-Type: application/json' \
> --data-raw '{
> "optimizers_config": {
> "indexing_threshold": 10000
> }
>}'
200Updated
1{
2 "usage": {
3 "cpu": 1,
4 "io_read": 1,
5 "io_write": 1
6 },
7 "time": 0.002,
8 "status": "ok",
9 "result": true
10}
Updates the parameters of the specified collection.
Was this page helpful?
Previous

List all collections

Next
Built with

Authentication

api-keystring
API Key authentication via header

Path parameters

collection_namestringRequired
Name of the collection to update

Query parameters

timeoutintegerOptional

Wait for operation commit timeout in seconds. If timeout is reached - request will return with service error.

Request

New parameters
vectorsmap from strings to objects or anyOptional
Map of vector data parameters to update for each named vector. To update parameters in a collection having a single unnamed vector, use an empty string as name.
optimizers_configobject or anyOptional

Custom params for Optimizers. If none - it is left unchanged. This operation is blocking, it will only proceed once all current optimizations are complete

paramsobject or anyOptional

Collection base params. If none - it is left unchanged.

hnsw_configobject or anyOptional

HNSW parameters to update for the collection index. If none - it is left unchanged.

quantization_configobject or enum or anyOptional

Quantization parameters to update. If none - it is left unchanged.

sparse_vectorsmap from strings to objects or anyOptional
Map of sparse vector data parameters to update for each sparse vector.
strict_mode_configobject or anyOptional

Response

successful operation
usageobject or any
timedouble
Time spent to process this request
statusstring
resultboolean