dots.v2.vectorDatabases.byId().put()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.vectorDatabases.byId(id).put(body: VectordbUpdateVectorDBRequest, requestConfiguration?: RequestConfiguration<object>): Promise<undefined | VectordbUpdateVectorDBResponse>

Description

To update an existing vector database, send a PUT request to /v2/vector-databases/{id}. The response body contains a JSON object with a vector_db key holding the updated vector database.

Parameters

Path Parameters

id string required

Example: "example string"

ID of the vector database.

Request Body

config object optional

VectorDBConfig holds optional, advanced cluster settings.

Show child properties
defaultQuantization string optional

Example: example string

Default vector compression for new collections: rq, pq, bq, or sq. Empty means platform default (rq).

enableAutoSchema boolean optional

Example: true

weaviateVersion string optional

Example: example string

The Vector Database version running on the cluster.

id string optional

Example: example string

ID of the vector database.

projectId string optional

Example: 123e4567-e89b-12d3-a456-426614174000

Optional. New project UUID to assign the database to.

Request Sample

Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.vectorDatabases
    .byId("\"example string\"").put({
    config: {
        defaultQuantization: "example string",
        enableAutoSchema: true,
        weaviateVersion: "example string",
    },
    id: "example string",
    projectId: "123e4567-e89b-12d3-a456-426614174000",
});

Response Example

Show Response Example
{
  "vector_db": {
    "config": {
      "default_quantization": "example string",
      "enable_auto_schema": true,
      "weaviate_version": "example string"
    },
    "created_at": "2023-01-01T00:00:00Z",
    "endpoints": {
      "grpc": "my-db-tor1-a1b2c3d4-grpc.weaviate.ondigitalocean.com:443",
      "http": "https://my-db-tor1-a1b2c3d4.weaviate.ondigitalocean.com"
    },
    "forked_from_id": "123e4567-e89b-12d3-a456-426614174000",
    "id": "example string",
    "last_restore_id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "example name",
    "owner_uuid": "123e4567-e89b-12d3-a456-426614174000",
    "project_id": "123e4567-e89b-12d3-a456-426614174000",
    "region": "tor1",
    "size": "example string",
    "status": "example string",
    "tags": [
      "example string"
    ],
    "updated_at": "2023-01-01T00:00:00Z"
  }
}

More Information

See /v2/vector-databases/{id} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.