curl --request POST \
--url https://whitebit.com/api/v4/sub-account/edit \
--header 'Content-Type: application/json' \
--header 'X-TXC-APIKEY: <api-key>' \
--data '
{
"id": "8e667b4a-0b71-4988-8af5-9474dbfaeb51",
"alias": "training",
"permissions": {
"spotEnabled": true,
"collateralEnabled": false
}
}
'