cPanel WHM icon

cPanel WHM

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

Actions262

Account → Update multiple cPanel accounts

AI-generated

Summary

Modify attributes of multiple cPanel accounts identified by their usernames, updating various account settings in a single operation.

Inputs

  • User (required) — Current usernames of the cPanel accounts to be modified. Specify multiple users by duplicating or incrementing the parameter name (e.g., user-1, user-2).
  • Additional Fields — Optional settings to update for each account, including backup status, bandwidth limit, contact email, database owner, disk quota, shell access, mail settings, notification preferences, reseller status, and more. These fields correspond to individual cPanel account parameters and default to system values if unset.

Output shape

a list of responses from the WHM API for each modified account, indicating success or failure of the update operation.

Each user's update is performed by passing that user's username with the associated parameters as query string parameters. Multiple accounts can be updated by replicating the 'User' and relevant fields with suffixes. The operation requires appropriate WHM API access rights, particularly for parameters needing root privileges.

Examples

Example 1: Update multiple accounts to disable backups and set a disk quota.

Provide 'User' values for each account and set 'BACKUP' to 0, 'QUOTA' to desired amount in 'Additional Fields' for each respective user.

Links

Discussion