API Reference
Collections
Configuring a collection
Configure an collection.
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
Project API Key.
Body
application/json
Response
200
application/json
Updated collection
The response is of type object
.
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"
}
Assistant
Responses are generated using AI and may contain mistakes.