Update /etc/userdomains file

This function updates the /etc/userdomains file based on the entries in /var/cpanel/users directory.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

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