cPanel WHM icon

cPanel WHM

Full cPanel WHM API — all 622 operations across Accounts, DNS, Mail, SSL, Backups, Databases and more

Actions262

Account → Suspend cPanel account

AI-generated

Summary

Suspend a cPanel account by specifying the account username and optional suspension settings.

Inputs

  • User (required) — The cPanel account username to suspend.
  • Disallowun — Set to '1' to allow only the root user to unsuspend the account; '0' allows root or account owner to unsuspend.
  • Leave-Ftp-Accts-Enabled — Set to '1' to keep the account's FTP accounts enabled during suspension; '0' suspends them.
  • Reason — Specify a reason for suspending the account; recommended for record-keeping.

Output shape

a single object containing the suspension result fields returned by the WHM API, reflecting success or error information

The output includes the WHM API response data for the suspension operation. Errors are returned according to the WHM API format.

Links

Discussion