Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel API Set Contact Email

Discussion in 'cPanel Developers' started by stapuff106, Aug 8, 2017.

  1. stapuff106

    stapuff106 Member

    Joined:
    Aug 4, 2017
    Messages:
    17
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Chicago
    cPanel Access Level:
    Root Administrator
    Is there a way to set up a domain contact email address / username / password through any of the 3 cPanel api's? I have looked several times, but didn't find what I was looking for.

    Thanks,

    Puff
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Here's the cPanel API 2 function you can use to update the account's contact information:

    cPanel API 2 Functions - CustInfo::savecontactinfo - Software Development Kit - cPanel Documentation

    Here's the function you can use to change the password:

    cPanel API 2 Functions - Passwd::change_password - Software Development Kit - cPanel Documentation

    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:

    WHM API 1 Functions - modifyacct - Software Development Kit - cPanel Documentation

    Thank you.
     
Loading...

Share This Page