---
title: "Configure backend level settings that are applied to every key in the key-value store."
method: POST
path: "/secret/config"
tags: ["secrets"]
---

# Configure backend level settings that are applied to every key in the key-value store.

`POST /secret/config`

## Request body

- KvConfigRequest
  - `cas_required` boolean — If true, the backend will require the cas parameter to be set for each write
  - `delete_version_after` integer — If set, the length of time before a version is deleted. A negative duration disables the use of delete_version_after on all keys. A zero duration clears the current setting. Accepts a Go duration format string.
  - `max_versions` integer — The number of versions to keep for each key. Defaults to 10

## Response `200`

OK

---

[API](https://skmtc.net/lensesio/apis/hashicorp-vault-api.md) · [All operations](https://skmtc.net/lensesio/apis/hashicorp-vault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lensesio/hashicorp-vault-api/revisions/bd8194de0697/schema)
