Skip to main content
POST
/
api
/
v4
/
sub-account
/
api-key
/
edit
Edit Sub-Account API Key
curl --request POST \
  --url https://whitebit.com/api/v4/sub-account/api-key/edit \
  --header 'Content-Type: application/json' \
  --header 'X-TXC-APIKEY: <api-key>' \
  --data '
{
  "apiKeyId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "title": "Trading Bot Key",
  "urls": [
    {
      "url": "/api/v4/main-account/withdraw",
      "enable": false
    },
    {
      "url": "/api/v4/main-account/balance",
      "enable": true
    }
  ]
}
'
{}

Authorizations

X-TXC-APIKEY
string
header
required

API key authentication using signed requests

Body

application/json
apiKeyId
string
required

ID of the API key to update

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

title
string
required

New title for the API key

Example:

"Trading Bot Key"

urls
object[]
required

Array of URL objects for API key restrictions

Response

API key updated successfully

The response is of type object.