Update minimum password strength

This function sets the minimum password strength for cPanel & WHM accounts.

Note

If you do not specify a value for a parameter, the system will retain the existing setting.

SecurityBasicAuth
Request
query Parameters
cpaddons
integer [ 1 .. 100 ]

The minimum password strength for cPAddons.

Example: cpaddons=50
createacct
integer [ 1 .. 100 ]

The minimum password strength for new cPanel accounts.

Example: createacct=50
default
integer [ 1 .. 100 ]

The minimum password strength for all services.

Example: default=50
list
integer [ 1 .. 100 ]

The minimum password strength for mailing lists.

Example: list=50
mysql
integer [ 1 .. 100 ]

The minimum password strength for MySQL® database users.

Example: mysql=50
passwd
integer [ 1 .. 100 ]

The minimum password strength for WHM user or system accounts.

Example: passwd=50
postgres
integer [ 1 .. 100 ]

The minimum password strength for PostgreSQL® database users.

Example: postgres=50
sshkey
integer [ 1 .. 100 ]

The minimum password strength for SSH keys.

Example: sshkey=50
virtual
integer [ 1 .. 100 ]

The minimum password strength for mail, FTP, Web Disk, and WebDAV accounts.

Example: virtual=50
Responses
200

HTTP Request was successful.

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