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!

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,649
    Likes Received:
    73
    Trophy Points:
    328
    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,561
    Likes Received:
    42
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sparek-3

    sparek-3 Well-Known Member

    Joined:
    Aug 10, 2002
    Messages:
    1,649
    Likes Received:
    73
    Trophy Points:
    328
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice