---
title: "Create Vector Db"
method: POST
path: "/governance-service/api/ai/vectordb"
tags: ["AI Vector DB Management"]
---

# Create Vector Db

`POST /governance-service/api/ai/vectordb`

## Request

- The document declares no server URL.
- Auth: none declared
- TypeScript: <https://skmtc.dev/privacera/apis/paig-server/docs/governance-service/api/ai/vectordb/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new Vector DB.

## Request body

- VectorDBViewInput: A model representing an VectorDB. Inherits from: BaseView: The base model containing common fields. Attributes: name (str): The name of the Vector DB. description (str): The description of the Vector DB. type (VectorDBType): The type of the Vector DB. user_enforcement (int): The user enforcement of the Vector DB. group_enforcement (int): The group enforcement of the Vector DB. ai_applications (Optional[str]): The AI applications associated with the Vector DB.
  - `id` integer, nullable: The unique identifier of the resource
  - `status` integer, nullable: The status of the resource
  - `createTime` string, date-time, nullable: The creation time of the resource
  - `updateTime` string, date-time, nullable: The last update time of the resource
  - `name` string: The name of the Vector DB
  - `description` string: The description of the Vector DB
  - `type` 'OPENSEARCH' | 'MILVUS', required
  - `userEnforcement` integer: The user enforcement of the Vector DB
  - `groupEnforcement` integer: The group enforcement of the Vector DB
  - `aiApplications` string[], nullable: The AI applications associated with the Vector DB

## Response `201`

Successful Response

- VectorDBViewOutput: A model representing an VectorDB. Inherits from: BaseView: The base model containing common fields. Attributes: name (str): The name of the Vector DB. description (str): The description of the Vector DB. type (VectorDBType): The type of the Vector DB. user_enforcement (int): The user enforcement of the Vector DB. group_enforcement (int): The group enforcement of the Vector DB. ai_applications (Optional[str]): The AI applications associated with the Vector DB.
  - `id` integer, nullable: The unique identifier of the resource
  - `status` integer, nullable: The status of the resource
  - `createTime` string: The creation time of the resource
  - `updateTime` string: The last update time of the resource
  - `name` string: The name of the Vector DB
  - `description` string: The description of the Vector DB
  - `type` 'OPENSEARCH' | 'MILVUS', required
  - `userEnforcement` integer: The user enforcement of the Vector DB
  - `groupEnforcement` integer: The group enforcement of the Vector DB
  - `aiApplications` string[], nullable: The AI applications associated with the Vector DB

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/privacera/apis/paig-server.md) - [All operations](https://skmtc.dev/privacera/apis/paig-server/llms.txt) - [OpenAPI document](https://skmtc.dev/privacera/apis/paig-server/revisions/e3d2c30ceace?raw)
