Search the docs

Search guides, API endpoints and MCP tools.

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

productstringRequired

The product's slug, such as storefront.

namestringRequired

The secret's name, such as DATABASE_URL.

newNamestring

A new name, such as DATABASE_URL_PRIMARY.

cleararray of strings

Slugs 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"    ]  }'
The same call over the clanker HTTP API. Set CLANKER_TOKEN to a clanker OAuth access token.