Update WHM contact email address

This function updates the contact email address in the wwwacct.conf file. For more information, read our Installation Guide - Customize Your Installation documentation.

Authorizations:
query Parameters
contact_email
required
string

The contact email address to add as the wwwacct.conf file's CONTACTEMAIL setting.

Example: contact_email=user@example.com

Responses

Response Schema: application/json
object

Request samples

whmapi1 --output=jsonpretty \
  update_contact_email \
  contact_email='user@example.com'

Response samples

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