Search the docs

Search guides, API endpoints and MCP tools.

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

keystringRequired

The key's ID from its list, such as Ak3mT8qWz1Lp.

namestring

A new name, up to 100 characters, such as CI.

rolestring

The role the key acts with: owner, admin, member or viewer.

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