Skip to content

Replace Vault values API Reference

PUT
/tenants/{tenant}/vault/{path}
curl --request PUT \
--url https://api.kupe.cloud/api/v1/tenants/example/vault/example \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "values": { "additionalProperty": "example" } }'

Replace all values. Send If-Match: "<version>" to update, or If-None-Match: * to create.

tenant
required
string

Tenant name

path
required
string

Path in the tenant’s vault

If-Match
string

KV version from the entry’s ETag

If-None-Match
string

Use * to create only

The complete set of string values

Media type application/json
object
values
object
key
additional properties
string
Example generated
{
"values": {
"additionalProperty": "example"
}
}

OK

Media type application/json
object
path
string
refreshRequested
Array<string>
version
integer
Example generated
{
"path": "example",
"refreshRequested": [
"example"
],
"version": 1
}
ETag
string

New KV version

Bad Request

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Unauthorized

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Forbidden

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Not Found

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Precondition Failed

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Request Entity Too Large

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Precondition Required

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Too Many Requests

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Service Unavailable

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}