Skip to main content

Modify Subaccount ApiKey

Rate limit: 10 req/sec/UID

Description

Only applicable for ND broker main-account to modify ApiKey for the specified sub-account

HTTP Request

  • POST /api/v2/broker/manage/modify-subaccount-apikey
Request Example
curl -X POST "https://api.bitget.com/api/v2/broker/manage/modify-subaccount-apikey" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{"subUid": "1","passphrase": "12345678","apiKey": "xx_xxx","label": "old remark","ipList":["127.0.0.1"],"permType": "readonly","permList":["spot_trade"]}'

Request Parameters

ParameterTypeRequiredDescription
subUidStringYesSub account UID
apikeyStringYesSub account API Key
labelStringNoremark, length < 20
passphraseStringYesPassphrase, please recreate if forgot
ipListList<String>NoIP whitelist, override, max 30 IP entries. Empty means no change
permTypeStringNoPermission type, override. Empty means no change
read_and_write: read and write
readonly: read only
permListList<String>YesPermission list, override. Empty means not change
contract_order: contract orders
contract_position: contract positions
spot_trade: spot trade
margin_trade: spot margin trade
copytrading_trade: copy trading trade
wallet_transfer: wallet transfer(available when permType is read_and_write)
Response Example
{
"code": "00000",
"msg": "success",
"requestTime": 1695785738672,
"data": {
"subUid": "*********",
"apiKey": "bg_**********************",
"label": "old remark",
"ipList":["127.0.0.1"],
"permType": "readonly",
"permList":["spot_trade"]
}
}

Response Parameters

ParameterTypeDescription
subUidStringSub account UID
labelStringapikey remark
apikeyStringapikey
permTypeStringPermission type
read_and_write
readonly
permListList<String>Permission list
contract_order
contract_position
spot_trade
margin_trade: spot margin trade
copytrading_trade
wallet_transfer: permType should be 'read_and_write'
ipListList<String>IP whitelist

How was your Reading Experience with us?