cURL
curl --request GET \ --url https://test.deribit.com/api/v2/private/change_api_key_name \ --header 'Content-Type: application/json' \ --data ' { "jsonrpc": "2.0", "id": 2453, "method": "private/change_api_key_name", "params": { "name": "KeyName3", "id": 3 } } '
{ "jsonrpc": "2.0", "id": 2453, "result": { "timestamp": 1560242482758, "max_scope": "account:read_write block_trade:read trade:read_write wallet:read_write", "id": 3, "enabled": true, "default": false, "client_secret": "B6RsF9rrLY5ezEGBQkyLlV-UC7whyPJ34BMA-kKYpes", "client_id": "1sXMQBhM", "name": "NewKeyName" } }
Changes name for key with given id.
Scope: account:read_write
account:read_write
Try in API console
API key ID
1
Name of key (only letters, numbers and underscores allowed; maximum length - 16 characters)
"TestName"
Success response
The JSON-RPC version (2.0)
2.0
Show child attributes
The id that was sent in the request
Was this page helpful?