Hi,
Here is the documentation found for the update method:
curl -i -X POST https://YOUR_INDEX-YOUR_PROJECT.svc.YOUR_ENVIRONMENT.pinecone.io/vectors/update \
-H 'Api-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"vectors": [
{
"id": "id-3",
"set_metadata": {"type": "web", "new": "true"}
}
]
}'
but it doesn’t work, it returns “ID must not be empty”.
Now, when I check with the online tool/dashboard, I have this cURL code - which work:
curl -X POST \
https://openai-942c1e8.svc.us-west1-gcp.pinecone.io/vectors/update \
-H 'Content-Type: application/json' \
-H 'Api-Key: 74d6dbae-148b-4fc1-a4ae-7acac193bc4d' \
-d'{
"id": "id",
"setMetadata": {},
"namespace": ""
}'
Not a big thing, just that it can be confusing.