Upsert a record

I am using the Pinecone API (HTTP POST) to upsert a record.
Once the call is done, I receive a 200 Status Code from the server but nothing is added to the Index.

An example of an entry below

{
  "vectors": [
    {
      "id": "26",
      "values": [-0.0024521805,-0.014944036,0.009801929,-0.017538864,...]
    }
  ]
}

Maybe I am not using the correct API url?

Is this fine: https://vescvs-dmm60gl.svc.aped-4627-b74a.pinecone.io

Or this is the one I should make the HTTP POST request?
https://vescvs-dmm60gl.svc.aped-4627-b74a.pinecone.io/vectors/upsert

Hi @gbastianelli,

Welcome to the Pinecone Forum! Thanks for posting.

For upsert, target https://$INDEX_HOST/vectors/upsert. So I think the second URL you posted should work. You can find more info on our API reference docs: Upsert vectors - Pinecone Docs

Let me know if that helps.

Best,
Lauren

1 Like