Points

Batch update points

POST
Batch updates points, including their respective vectors and payloads.

Path parameters

collection_namestringRequired
Name of the collection to apply operations on

Query parameters

waitbooleanOptional
If true, wait for changes to actually happen
orderingenumOptional
define ordering guarantees for the operation
Allowed values: weakmediumstrong

Request

This endpoint expects an object.
operations
list of unionsRequired

Response

This endpoint returns an object
time
doubleOptional
Time spent to process this request
status
stringOptional
result
list of objectsOptional
POST
1curl -X POST http://localhost:6333/collections/collection_name/points/batch \
2 -H "api-key: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "operations": [
6 {
7 "upsert": {
8 "batch": {
9 "ids": [
10 1
11 ],
12 "vectors": [
13 [
14 1.1
15 ]
16 ]
17 }
18 }
19 }
20 ]
21}'
200Successful
1{
2 "time": 1.1,
3 "status": "status",
4 "result": [
5 {
6 "status": "acknowledged",
7 "operation_id": 1
8 }
9 ]
10}