Vault kv patch equivalent command for HTTP API KV V2 engine

I am looking for an equivalent HTTP API call the replicates the “vault kv patch” command (kv patch - Command | Vault by HashiCorp) that is used with the KV V2 engine. I have had a look in the documentation but cannot find the equivalent HTTP API request (KV - Secrets Engines - HTTP API | Vault by HashiCorp).

Is there an equivalent for this command available? I am using version 1.6.1.


There is no HTTP API equivalent I’m afraid. If you’d like to read about why we haven’t implemented it, there’s some discussion in PATCH API needed for updating multiple secrets stored at a single URI path · Issue #1468 · hashicorp/vault · GitHub and Vault write can overwrite and accidentally lose data · Issue #182 · hashicorp/vault · GitHub.