---
title: "Update Metadata"
method: PUT
path: "/account-service/api/vectordb/metadata/key/{id}"
tags: ["Vector DB Metadata keys"]
---

# Update Metadata

`PUT /account-service/api/vectordb/metadata/key/{id}`

## Request

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

Update an existing MetaData by ID.

## Path parameters

- `id` integer, required

## Request body

- MetadataKeyViewInput: A model representing a Metadata. Inherits from: BaseView: The base model containing common fields. Attributes: name (str): The name of the Metadata. type (str): The type of the Metadata. description (Optional[str]): The description of the Metadata. data_type (str): The datatype of 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
  - `name` string: The name of the Metadata
  - `type` string: The type of the Metadata
  - `description` string, nullable: The Description of Metadata
  - `valueDataType` string: The datatype of Metadata

## Response `200`

Successful Response

- MetadataKeyViewOutput: A model representing a Metadata. Inherits from: BaseView: The base model containing common fields. Attributes: name (str): The name of the Metadata. type (str): The type of the Metadata. description (Optional[str]): The description of the Metadata. data_type (str): The datatype of 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
  - `name` string: The name of the Metadata
  - `type` string: The type of the Metadata
  - `description` string, nullable: The Description of Metadata
  - `valueDataType` string: The datatype of 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)
