---
title: "Create Metadata Value"
method: POST
path: "/account-service/api/vectordb/metadata/value"
tags: ["Vector DB Metadata values"]
---

# Create Metadata Value

`POST /account-service/api/vectordb/metadata/value`

## Request

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

Create a new Metadata Values.

## Request body

- MetadataValueViewInput: A model representing a Metadata attribute. Inherits from: BaseView: The base model containing common fields. Attributes: metadata_id (int): The id of the Metadata. metadata_name (Optional[str]): The name of the Metadata. metadata_value (str): The type of the Metadata.
  - `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
  - `metadataId` integer: The id of the Metadata
  - `metadataName` string, nullable: The name of the Metadata Key
  - `metadataValue` string: The value of the Metadata

## Response `201`

Successful Response

- MetadataValueViewOutput: A model representing a Metadata attribute. Inherits from: BaseView: The base model containing common fields. Attributes: metadata_id (int): The id of the Metadata. metadata_name (Optional[str]): The name of the Metadata. metadata_value (str): The type of the Metadata.
  - `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
  - `metadataId` integer: The id of the Metadata
  - `metadataName` string, nullable: The name of the Metadata Key
  - `metadataValue` string: The value of the Metadata

## 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)
