diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 3634703..ad5814d 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -1345,10 +1345,11 @@ export class RestClientV5 extends BaseRestClient { /** * This endpoint modifies the settings of a sub API key. - * Use the API key pending to be modified to call the endpoint. - * Only the API key that calls this interface can be modified. + * Use the API key pending to be modified to call the endpoint or use master account api key to manage its sub account api key. + * The API key must have one of the below permissions in order to call this endpoint * - * The API key must own "Account Transfer" permission to be allowed to call this API endpoint. + * - sub API key: "Account Transfer", "Sub Member Transfer" + * - master API Key: "Account Transfer", "Sub Member Transfer", "Withdrawal" */ updateSubApiKey( params: UpdateApiKeyParamsV5, diff --git a/src/types/request/v5-user.ts b/src/types/request/v5-user.ts index 09e65c2..42a0c7e 100644 --- a/src/types/request/v5-user.ts +++ b/src/types/request/v5-user.ts @@ -25,6 +25,7 @@ export interface CreateSubApiKeyParamsV5 { } export interface UpdateApiKeyParamsV5 { + apikey?: string; readOnly?: 0 | 1; ips?: string[]; permissions: PermissionsV5;