Database endpoints
Set namespace capacity
Set or remove the record-capacity declaration for a vector namespace.
POST /v1/tenants/{tenant}/vector-indexes/{index}/namespaces/configure
- Select the namespaceLocate it inside its vector index.
- Set or remove capacitySend a positive declaration, or null to remove it.
- Read the saved declarationA value below current usage is rejected.
Before you start
Use your database bearer token.
Use an existing namespace. A declared capacity cannot be smaller than its current usage.
Path parameters
| Field | Type | Required |
|---|---|---|
tenant | string | Required |
index | string | Required |
Headers
| Field | Type | Required | Description |
|---|---|---|---|
x-oc-db-user | string | Optional | Acting database user (role, grant and row-policy checks). Send with x-oc-db-key. |
x-oc-db-key | string | Optional | API key of the x-oc-db-user user. |
Request body
application/json
Limits and accepted values
- declared_capacity must be sent: an integer 1-9007199254740991 sets it, null removes it, absent answers 400.
- A value below current usage answers 409.
- dry_run: true is refused with 400.
- Naming another namespace field answers 400 immutable_field.
| Field | Type | Required |
|---|---|---|
declared_capacity | integer | Optional |
dry_run | boolean | Optional |
name | string | Required |
Read the result
Check declared_capacity in the returned namespace. A number sets the declaration and null removes it. This value is not a statement that the database has unlimited capacity.
Response statuses
HTTP status reference
| Status | What to do |
|---|---|
| 200 | OK |
| 400 | Correct the request before retrying. |
| 401 | Check the credential and Authorization header. |
| 402 | Check feature access or available credits. |
| 403 | Check tenant access, roles and permissions. |
| 404 | Check the resource ID and API route. |
| 409 | Resolve the conflict before retrying. |
| 413 | Split or reduce the request body. |
| 415 | Send the required Content-Type. |
| 422 | Correct the values or unsupported combination. |
| 429 | Honor Retry-After when present; back off. |
| 500 | Check the outcome before retrying a write. |
| 501 | Check deployment support for this operation. |
| 503 | Honor Retry-After when present; check write outcomes. |