Suspend account
This endpoint suspends the vPanel user account associated with the provided information.
HTTP Endpoint
POST https://panel.myownfreehost.net/xml-api/suspendacct.php
Usage
curl -X POST -u username:password -d "user=example&reason=My beautiful reason." "https://panel.myownfreehost.net/xml-api/suspendacct.php"
Response
💡
The above request returns XML structured like the following:
<suspendacct>
<result>
<status>1</status>
<statusmsg>
<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.
</statusmsg>
</result>
</suspendacct>