Skip to main content
PATCH
Update a Vault

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

Vault ID.

Body

application/json

Vault fields to update, such as its display name or metadata.

Request body for changing a Vault. Omitted fields remain unchanged.

display_name
string

New human-readable Vault name.

Required string length: 1 - 256
Example:

"Updated credentials"

metadata
object

Metadata that replaces the whole map. Sending an empty object clears it.

Example:

Response

The Vault with the applied changes.

A Vault that groups credentials for binding to Sessions.

id
string
required

Vault ID.

Example:

"vlt_01h455vb4pex5vsknk084sn02q"

display_name
string
required

Human-readable Vault name. Not required to be unique.

Example:

"Production credentials"

created_at
string<date-time>
required

Time when the Vault was created.

Example:

"2026-01-01T00:00:00Z"

updated_at
string<date-time>
required

Time when the Vault was last updated.

Example:

"2026-01-01T00:00:00Z"

metadata
object

Caller-defined string metadata, up to 16 entries.

Example:
archived_at
string<date-time>

Time when the Vault was archived. This field is omitted for active Vaults.

Example:

"2026-01-03T00:00:00Z"