diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 040ed50..7f92c80 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -1379,10 +1379,10 @@ export class RestClientV5 extends BaseRestClient { * * DANGER: BE CAREFUL! The sub API key used to call this interface will be invalid immediately. */ - deleteSubApiKey(apikey?: string): Promise> { + deleteSubApiKey(params?: { apikey?: string; ): Promise> { return this.postPrivate( '/v5/user/delete-sub-api', - apikey ? { apikey } : undefined, + params, ); }