---
title: "Update a Vault"
method: PATCH
path: "/vaults/{VaultIdOrPrefix}"
tags: ["Vaults"]
---

# Update a Vault

`PATCH /vaults/{VaultIdOrPrefix}`

Update a Vault

## Request body

- Vault
  - `config` object — The configuration properties for the Vault which can be found on the vaults' documentation page.
  - `created_at` integer — Unix epoch when the resource was created.
  - `description` string — The description of the Vault entity.
  - `id` string
  - `name` string — The name of the Vault that's going to be added. Currently, the Vault implementation must be installed in every Kong instance.
  - `prefix` string — The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.
  - `tags` string[] — An optional set of strings associated with the Vault for grouping and filtering.
  - `updated_at` integer — Unix epoch when the resource was last updated.

## Response `200`

Successfully updated Vault

- Vault
  - `config` object — The configuration properties for the Vault which can be found on the vaults' documentation page.
  - `created_at` integer — Unix epoch when the resource was created.
  - `description` string — The description of the Vault entity.
  - `id` string
  - `name` string — The name of the Vault that's going to be added. Currently, the Vault implementation must be installed in every Kong instance.
  - `prefix` string — The unique prefix (or identifier) for this Vault configuration. The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities.
  - `tags` string[] — An optional set of strings associated with the Vault for grouping and filtering.
  - `updated_at` integer — Unix epoch when the resource was last updated.

## Other responses

- `401` — Unauthorized
- `404` — Resource does not exist

## Changes

> 3 revisions in range; 1 not diffed.

- **2024-09-11** `5bd52189d290` — 1 warning
  - deleted the `path` request parameter `VaultIdOrPrefix`

[Change history](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/changes/vaults/:VaultIdOrPrefix/patch.md)

---

[API](https://skmtc.dev/kong/apis/kong-enterprise-admin-api.md) · [All operations](https://skmtc.dev/kong/apis/kong-enterprise-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/kong/kong-enterprise-admin-api/revisions/5bd52189d290/schema)
