Suspend account

This endpoint suspends the vPanel user account associated with the provided information.

HTTP Endpoint




curl -X POST -u username:password -d "user=example&reason=My beautiful reason." ""


import requests
from requests.auth import HTTPBasicAuth
from xml.etree.ElementTree import fromstring, ElementTree # Do this if you only want to get the status code.
url = ""
data = {'user': 'username', 'reason': 'My beautiful reason.'} # For the username, use the same username you set when creating the account.
response =, params=data, auth=HTTPBasicAuth('username', 'password'))
# Do this if you only want to get the status code.
tree = ElementTree(fromstring(response.content))
root = tree.getroot()
for child in root:
print(child[0].text) # The status code (can either be 0 or 1)



The above request returns XML structured like this:

<script>if (self['clear_ui_status']) { clear_ui_status(); }</script>
Changing Shell to /bin/false...Changing shell for username.
Shell changed.
Locking Password...Locking password for user username.
marking user vhosts / databases for suspension.
Completed, this account will be fully suspended in 2 minutes.