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.

terminatereseller doesn't work?

Discussion in 'cPanel Developers' started by sparek-3, Jul 7, 2015.

  1. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,470
    Likes Received:
    35
    Trophy Points:
    178
    cPanel Access Level:
    Root Administrator
    The terminatereseller API call doesn't appear to work:

    Code:
    /json-api/terminatereseller?api.version=1&reseller=reselleruser&terminatereseller=1
    returns

    Code:
    [reason] => _unsetupreseller requires a user to unsetup
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,515
    Likes Received:
    33
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Your call is incorrect. You need to specify 'user' not 'reseller'. Hence:

    Code:
    /json-api/terminatereseller?api.version=1&user=reselleruser&terminatereseller=1
    
    The documentation on this is incorrect. I'll file a case to get it fixed.
     
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,470
    Likes Received:
    35
    Trophy Points:
    178
    cPanel Access Level:
    Root Administrator
    Indeed, when using user instead of reseller this works. I was just going by what was in the documentation.

    Thanks
     
Loading...

Share This Page