Vault
update_secret
Write grantIdempotent
Rename a secret, or clear its value in some environments. Clearing writes an empty version you can restore from. Production is cleared only by admins and owners. Returns each environment's outcome without values. Needs write access.
Inputs
productstringRequiredThe product's slug, such as storefront.
namestringRequiredThe secret's name, such as DATABASE_URL.
newNamestringA new name, such as DATABASE_URL_PRIMARY.
cleararray of stringsSlugs of the environments whose value to clear, such as staging.
tools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "update_secret", "arguments": { "product": "storefront", "name": "LEGACY_TOKEN", "clear": [ "staging" ] } }}POST/clanker/v1/secrets:update
curl -X POST https://api.clankership.com/clanker/v1/secrets:update \ -H "Authorization: Bearer $CLANKER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "product": "storefront", "name": "LEGACY_TOKEN", "clear": [ "staging" ] }'