import Gmt from 'gmt-typescript-sdk';const client = new Gmt({ apiKey: process.env['GMT_API_KEY'], // This is the default and can be omitted});const response = await client.profile.changeLogin({ new_login: 'username' });console.log(response.success);
{ "success": true}
Profile
Change user login
Change the current user login to a new one.
PATCH
/
v1
/
profile
/
change-login
JavaScript
import Gmt from 'gmt-typescript-sdk';const client = new Gmt({ apiKey: process.env['GMT_API_KEY'], // This is the default and can be omitted});const response = await client.profile.changeLogin({ new_login: 'username' });console.log(response.success);