PATCH
/
projects
/
{projectName}
/
collections
/
{collectionName}
curl --request PATCH \
  --url https://{baseUrl}/projects/{projectName}/collections/{collectionName} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "indexConfigs": {
    "example-field1": {
      "type": "text",
      "analyzers": [
        "english"
      ]
    },
    "example-field2": {
      "type": "vector",
      "dimensions": 128,
      "similarity": "cosine"
    },
    "example-field3": {
      "type": "keyword"
    }
  }
}'
{
  "projectName": "example-project-name",
  "collectionName": "example-collection-name",
  "indexConfigs": {
    "example-field1": {
      "type": "text",
      "analyzers": [
        "english"
      ]
    },
    "example-field2": {
      "type": "vector",
      "dimensions": 128,
      "similarity": "cosine"
    },
    "example-field3": {
      "type": "keyword"
    }
  },
  "numDocs": 1000,
  "collectionStatus": "ACTIVE"
}

Authorizations

x-api-key
string
header
required

Project API Key.

Path Parameters

projectName
string
required

Project name.

collectionName
string
required

Collection name.

Body

application/json

Response

200
application/json

Updated collection

The response is of type object.