Unsuspend cPanel account

This function unsuspends an account.

Note:

Only the root account and root-enabled resellers can unsuspend a locked account.

SecurityBasicAuth
Request
query Parameters
user
required
string

The account to unsuspend.

Example: user=username
retain-service-proxies
integer
Default: 0

Whether to retain any service proxies on an account.

  • 1 — Retain service proxies.
  • 0 — Do not retain service proxies.
Enum: 0 1
Example: retain-service-proxies=0
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/unsuspendacct
Request samples
whmapi1 --output=jsonpretty \
  unsuspendacct \
  user='username'
Response samples
application/json
{
  • "metadata": {
    • "command": "unsuspendacct",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}