How to use RESTFul API modify a record based on an autoid primary key #33791
Unanswered
jygmysoul
asked this question in
Q&A and General discussion
Replies: 1 comment
-
https://milvus.io/docs/insert-update-delete.md#Upsert-entities |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to use RESTFul API modify a record based on an auto-incremented primary key
RequestBody:
{
"collectionName": "Collection01",
"data": [
{
"RecordID": 450406626139262654, //this is Primary Key Auto-Increment
"SudentName": "JJJJJJJJ",
"SudentScore": "12345678",
"SudentVector": [
1,
2,
3,
4,
5
]
}
],
"dbName": "default",
"partitionName": "Partition01"
}
ResponseBody:
{
"code": 1804,
"message": "fail to deal the insert data, error: invalid parameter[expected=][actual=set primary key but autoID == true]"
}
Beta Was this translation helpful? Give feedback.
All reactions