v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-261319281.7 MB

Update Vault

post/v1/vaults/{vault_id}?beta=true

Path parameters

vault_idstring required

Path parameter vault_id

Headers

anthropic-versionstring
anthropic-betastring

Request body

display_namestring nullable

Updated human-readable name for the vault. 1-255 characters.

metadataobject nullable

Metadata patch. Set a key to a string to upsert it, or to null to delete it. Omitted keys are preserved.

Example request

{
  "display_name": "Example vault",
  "metadata": {
    "environment": "production"
  }
}

Response

Successful response (OK)

type'vault' required
idstring required

Unique identifier for the vault.

display_namestring required

Human-readable name for the vault.

metadataobject required

Arbitrary key-value metadata attached to the vault.

created_atstring date-time required

A timestamp in RFC 3339 format

updated_atstring date-time required

A timestamp in RFC 3339 format

archived_atstring date-time required

A timestamp in RFC 3339 format

Example response

{
  "type": "vault",
  "id": "vlt_011CZkZDLs7fYzm1hXNPeRjv",
  "display_name": "Example vault",
  "metadata": {
    "environment": "production"
  },
  "created_at": "2026-03-15T10:00:00Z",
  "updated_at": "2026-03-15T10:00:00Z",
  "archived_at": null
}