Replace Vault values API Reference
PUT
/tenants/{tenant}/vault/{path}
const url = 'https://api.kupe.cloud/api/v1/tenants/example/vault/example';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"values":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” tenant
required
string
Tenant name
path
required
string
Path in the tenant’s vault
Header Parameters
Section titled “ Header Parameters ” If-Match
string
KV version from the entry’s ETag
If-None-Match
string
Use * to create only
Request Body
Section titled “ Request Body ”The complete set of string values
Media type application/json
object
values
object
key
additional properties
string
Example generated
{ "values": { "additionalProperty": "example" }}Responses
Section titled “ Responses ”OK
Media type application/json
object
path
string
refreshRequested
Array<string>
version
integer
Example generated
{ "path": "example", "refreshRequested": [ "example" ], "version": 1}Headers
Section titled “ Headers ” 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"}