Skip to main content
PUT /{index_id}/{vector_id} Updates a vector’s metadata and delete protection status.

Request Body

FieldTypeRequiredDescription
metadataobjectNoUpdated key-value metadata.
delete_protectionbooleanNoEnable or disable delete protection.

Example Requests

  • cURL
  • Python SDK
  • JavaScript SDK
curl -X PUT "https://api.gravixlayer.com/v1/vectors/indexes/{index_id}/vectors/vector-001" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "metadata": { "Test": "Testing1" },
    "delete_protection": true
  }'

Response

Returns the updated vector object, similar to the Get Vector response.
{
  "created_at": "2025-09-18T19:02:42.727975Z",
  "delete_protection": true,
  "embedding": [
    0.402108,
    0.263004,
    "... (truncated for brevity)",
    0.071183,
    0.989167
  ],
  "id": "vector-001",
  "metadata": {
    "Test": "Testing1"
  },
  "updated_at": "2025-09-18T19:32:17.010426Z"
}
I