Skip to main content

Set configuration variable


Sets a dynamic configuration variable by name.


This API is unavailable in the hosted version of Vault.

The variables that can be set are:

  • log_level which can take the values of debug, info, warn, and error.
  • trace_sql Indicates whether sql logs are enabled. values are true or false.

The role that performs this operation must have the CapConfvarWriter capability. See Access control for more information about how capabilities are used to control access to operations.


Path parameters

  • name - string required*

    The name of the configuration variable.

Request body

Value of the configuration.

object required*
  • value - string required*

    The value of the configuration variable.

"value": "string"

Possible responses

The request is successful.

Try the API


Path parameters

Request body

Navigate to the docs of your local Vault installation to try the API directly from there.

Code examples