Something quick than whmapi1 modifyacct to update contact email

Operating System & Version
CloudLinux 7.9
cPanel & WHM Version
100.0.12

manoaratefy

Well-Known Member
Nov 17, 2018
58
5
8
Madagascar
cPanel Access Level
Root Administrator
Twitter
Good morning,

I'm looking something better than WHMAPI1 in the CLI to update an user's contact email. Currently, with the command "whmapi1 modifyacct user=XXXXXX contactemail=[email protected]", it takes more than 60s to update an account. Manually updating the contact email within the WHM web interface would be faster.

Is there some hacks to update user contact email faster using CLI? Thanks in advance.
 
Last edited by a moderator:

manoaratefy

Well-Known Member
Nov 17, 2018
58
5
8
Madagascar
cPanel Access Level
Root Administrator
Twitter
After some more research, I've found this article: https://support.cpanel.net/hc/en-us...hange-the-contact-email-for-a-cPanel-account-

It suggest using cpapi2 which currently perform a lot better. but as far as I know, cpapi2 is deprecated. Checked uapi documentation but didn't found any similar function within uapi. Is there any similar function on uapi?

Currently I made my CLI script as using cpapi2 if available, then fallback to whmapi1 if cpapi2 is not working.