Updates the name or metadata of a Vault using patch semantics. At least one of display_name or metadata must be provided.
Prerequisites
Endpoint and authentication configured. For details, see Overview and authentication.
Endpoint
POST /vaults/{vault_id}
Path parameters
vault_id string (必选)
Vault ID, format vlt_xxx
Request bodyAt least one ofdisplay_name or metadata must be provided.display_name string (可选)New human-readable name, 1–255 charactersmetadata object (可选)Patch semantics: setting a key to a string adds or overwrites it; setting a key to null deletes that key | Request example |
Response fieldsidstringVault ID, format vlt_xxxtype stringAlways vaultdisplay_name stringHuman-readable name of the Vaultmetadata objectCustom key-value pairsarchived_at string | nullArchive timestamp; null if not archivedcreated_at stringCreation time, ISO 8601updated_at stringLast update time, ISO 8601 | Response |
Error codes
| HTTP status | Error code | Description |
|---|---|---|
| 400 | InvalidParameter | Required parameter missing or invalid |
| 401 | InvalidApiKey | Invalid API key provided |