collections
Update a collection
Update a collection's schema to modify the fields and their types.
patch/collections/{collectionName}
Path parameters
collectionNamestring required
The name of the collection to update
Request body
Example request
{
"fields": [
{
"name": "company_name",
"type": "string",
"facet": false
},
{
"name": "num_employees",
"type": "int32",
"facet": false
},
{
"name": "country",
"type": "string",
"facet": true
}
],
"synonym_sets": [
"synonym_set_1"
]
}Response
The updated partial collection schema
Example response
{
"fields": [
{
"name": "company_name",
"type": "string",
"facet": false
},
{
"name": "num_employees",
"type": "int32",
"facet": false
},
{
"name": "country",
"type": "string",
"facet": true
}
],
"synonym_sets": [
"synonym_set_1"
]
}