Skip to main content
Vertex
Docs/PUT /v2/namespaces/{id}/records — Upsert Batch Records
v2.4
PUT/v2/namespaces/{id}/records

Ingest or update up to 1,000 vector embedding records with structured metadata in a single atomic transaction.

Quota: 2,500 req/minAuth: Bearer Token

Request Example

curl -X PUT https://api.example.com/v2/namespaces/ns_prod/records \
  -H "Authorization: Bearer vtx_live_79f82d1c" \
  -H "Content-Type: application/json" \
  -d '{
    "records": [
      {
        "id": "doc_99182",
        "values": [0.021, -0.048, 0.129],
        "metadata": { "author": "devon", "tier": "enterprise" }
      }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
idstringrequiredThe targeted vector namespace identifier (path parameter).
recordsarrayrequiredArray of record objects containing 'id', 'values' (float array), and optional 'metadata'.
syncbooleanoptionalBlock until embeddings are replicated to all secondary regional nodes (default: false).
Response Example (200 OK)application/json
{
  "object": "upsert_result",
  "upsertedCount": 1,
  "namespace": "ns_prod",
  "p99LatencyMs": 18.2,
  "checksum": "sha256_88a91b"
}

Upsert Batch Records

Performs high-throughput atomic ingestion of high-dimensional vector embeddings with associated arbitrary JSON metadata filters.

Was this documentation page helpful?

Help us improve the Vertex developer experience.