Skip to main content
PUT /indexes/{index_id} Updates an index’s metadata and delete protection status.
Important: The dimension of an index must match the output dimension of the embedding model you intend to use. Mismatches will lead to errors or poor performance.
  • 768: nomic-ai/nomic-embed-text:v1.5
  • 1024: baai/bge-large-en-v1.5, microsoft/multilingual-e5-large
Always consult the embedding model’s documentation to confirm its required vector dimension.

Request Body

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

Example Requests

  • cURL
  • Python SDK
  • JavaScript SDK
curl --location --request PUT 'https://api.gravixlayer.com/v1/vectors/indexes/11c6ec39-5c0e-411e-b3e4-faf8113d1396' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <YOUR_API_KEY>' \
  --data '{
    "metadata": {
      "Test": "Testing"
    }
  }'

Response

Returns the updated index object, same as the Get Index response.
I