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
keystringRequiredThe vault key's ID from list_vault_keys, such as Vk2pR7mXq4Ln.
namestringRequiredThe key's name, 1 to 100 characters, such as Storefront runtime.
productIdsarray of stringsRequiredIDs of the products it may pull. At least one.
environmentIdsarray of stringsRequiredIDs 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" ] }'