Update your own cluster centroids for it to be used in approximate search settings and cluster aggregations. Will merge rather than replace centroids.

Log in to see full request history
Path Params
string
required
length ≤ 240

ID of dataset

Body Params
vector_fields
array of strings

The vector fields that these centroids are associated with.

vector_fields
centroid_vector_fields
array of strings
centroid_vector_fields
string

Alias is used to name a cluster.

string
cluster_centers
array of objects
required

Insert cluster centers.
Cluster center documents needs to be the following:
[
{
"id": "cluster_0",
"centroid_vector
": [0.1, 0.2, 0.1]
}
]

cluster_centers*
Response

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json