Update /etc/userdomains file

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

Authorizations:

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  updateuserdomains

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "updateuserdomains",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}