Question
Now that /usr/local/cpanel/scripts/modcpuser has been removed in version 88, how can I modify an account on the command line?
Answer
You can modify an account using the modifyacct and changeplan API calls.
Examples:
# whmapi1 modifyacct user=$username MAXADDON=unlimited
---
data:
cpuser:
BACKUP: 1
...
MAXADDON: unlimited
...
command: modifyacct
output:
messages: []
warnings: []
reason: Account Modified
result: 1
version: 1
# whmapi1 changepackage user=$username pkg=theplan
---
metadata:
command: changepackage
...
reason: OK
result: 1
version: 1