OriginChainDB
Database endpoints

Update a vector index

Change a vector index's tags or deletion protection.

PATCH /v1/tenants/{tenant}/vector-indexes/{index}

Update tags or deletion protectionTags merge; an empty-string value removes that tag.
  1. Select an existing indexUse its name or ID in this tenant.
  2. Supply editable settingsChange tags or the deletion-protection flag.
  3. Review the saved settingsDimensions and metric are unchanged.

Before you start

Use your database bearer token.

Connection setup

Use the existing index's name or ID. Only tags and deletion protection can change; dimension and metric stay fixed.

Path parameters

FieldTypeRequired
tenantstringRequired
indexstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • At least one field is required.
  • deletion_protection: enabled|disabled.
  • tags merge into the existing tags and an empty-string value removes a tag;
  • at most 20 after the merge.
  • Naming any other index field answers 400 immutable_field.
FieldTypeRequired
deletion_protectionstringOptional
tagsobjectOptional

Read the result

The response shows the updated index configuration. Tags are merged; an empty-string tag value removes that tag. Changing tags or deletion protection does not change the index's dimensions or metric.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
409Resolve the conflict before retrying.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
501Check deployment support for this operation.
503Honor Retry-After when present; check write outcomes.
ยฉ 2026 Silicoyn Technologies Pvt Ltd