OriginChainDB
Database endpoints

Create a vector namespace

Create a namespace inside a vector index and optionally declare its record capacity.

POST /v1/tenants/{tenant}/vector-indexes/{index}/namespaces/create

Separate records within a vector indexA new namespace initially contains no records.
  1. Choose the indexSelect the parent vector index.
  2. Name the namespaceOptionally declare its record capacity.
  3. Keep its identifierUse the namespace name in record requests.

Before you start

Use your database bearer token.

Connection setup

Create the vector index first. The example adds demo to demo-search; __default__ is reserved.

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
  • __default__ cannot be created (400 namespace_reserved).
  • declared_capacity is 1-9007199254740991.
FieldTypeRequired
declared_capacityintegerOptional
namestringRequired

Read the result

Save namespace_id and use the namespace name in record requests. Its initial record_count is zero. A declared capacity is a limit declaration, not inserted data.

Response statuses

HTTP status reference
StatusWhat to do
201Created
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