Keys
update_account_key
Write grantIdempotent
Rename an account API key or change its role. Only the fields given change; only an owner grants the owner role. Returns the key. Needs write access, and your person must be a workspace owner or admin.
Inputs
keystringRequiredThe key's ID from its list, such as Ak3mT8qWz1Lp.
namestringA new name, up to 100 characters, such as CI.
rolestringThe role the key acts with: owner, admin, member or viewer.
One of
owneradminmemberviewertools/callJSON-RPC
{ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "update_account_key", "arguments": { "key": "Ak3mT8qWz1Lp", "role": "member" } }}POST/clanker/v1/account-keys:update
curl -X POST https://api.clankership.com/clanker/v1/account-keys:update \ -H "Authorization: Bearer $CLANKER_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "key": "Ak3mT8qWz1Lp", "role": "member" }'