---
title: "Update Vector Database"
method: POST
path: "/v1/vector_databases/update"
tags: ["vector_databases"]
---

# Update Vector Database

`POST /v1/vector_databases/update`

## Query parameters

- `id` string, uuid, required

## Request body

- PineconeVectorDatabaseUpdateParams
  - `type` 'vector_database_pinecone', required
  - `index` union
    - string
    - Undefined
  - `api_key` union
    - string
    - Undefined
  - `api_environment` union
    - string
    - Undefined

## Response `200`

Successful Response

- PineconeVectorDatabase
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `type` 'vector_database_pinecone', required
  - `index` string, required
  - `api_key` string, required
  - `api_environment` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2024-08-14** `63991d99e2e1` — 1 breaking, 1 info
  - the `type` request property const value `vector_database_pinecone` was added
  - the `type` response property const value `vector_database_pinecone` was added for the status `200`
- **2023-08-26** `bcabbf21f339` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/vocodedev/apis/vocode-hosted-api/changes/v1/vector_databases/update/post.md)

---

[API](https://skmtc.dev/vocodedev/apis/vocode-hosted-api.md) · [All operations](https://skmtc.dev/vocodedev/apis/vocode-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vocodedev/vocode-hosted-api/revisions/ffca17c004e2/schema)
