It's not possible to change the account username through any cPanel API functions, however you can use the following WHM API 1 function to change the account username if you have root access to the server: