cPanel WHM icon

cPanel WHM

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

Actions262

DNS → Update /etc/userdomains file

AI-generated

Summary

Trigger the update of the /etc/userdomains file on the cPanel WHM server to ensure domain-user mappings are current.

Inputs

None.

Output shape

a JSON object representing the success or failure response from the WHM API for updating the /etc/userdomains file.

This operation does not accept any parameters or additional fields. The output depends on the WHM API's response and includes error information if the update fails.

Examples

Example 1: Update the /etc/userdomains file to refresh domain ownership information.

Use the 'DNS' resource with the 'Update /etc/userdomains file' operation without any parameters and execute the node.

Links

Discussion