Search the docs

Search guides, API endpoints and MCP tools.

Vault

update_vault_key

Write grantIdempotent

Replace a vault key's name and the products and production environments it may pull from; its token stays the same. Returns the key. Needs write access, and your person must be a workspace owner or admin.

Inputs

keystringRequired

The vault key's ID from list_vault_keys, such as Vk2pR7mXq4Ln.

namestringRequired

The key's name, 1 to 100 characters, such as Storefront runtime.

productIdsarray of stringsRequired

IDs of the products it may pull. At least one.

environmentIdsarray of stringsRequired

IDs of the production environments it may pull from. At least one.

tools/callJSON-RPC
{  "jsonrpc": "2.0",  "id": 1,  "method": "tools/call",  "params": {    "name": "update_vault_key",    "arguments": {      "key": "Vk2pR7mXq4Ln",      "name": "Storefront runtime",      "productIds": [        "Pr6tW3kLq8Mz"      ],      "environmentIds": [        "En1vB5nRx7Kp"      ]    }  }}
POST/clanker/v1/vault-keys:update
curl -X POST https://api.clankership.com/clanker/v1/vault-keys:update \  -H "Authorization: Bearer $CLANKER_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "key": "Vk2pR7mXq4Ln",    "name": "Storefront runtime",    "productIds": [      "Pr6tW3kLq8Mz"    ],    "environmentIds": [      "En1vB5nRx7Kp"    ]  }'
The same call over the clanker HTTP API. Set CLANKER_TOKEN to a clanker OAuth access token.