Use this function to set the logged in cPanel or Webmail account's notification preferences.
Note:
To set a cPanel account's notification email address, call set_email_addresses
. To return the list of account notification
preferences you can set with set_notification_preferences
, call get_notification_preferences
.
object |
{- "preferences": {
- "notify_account_authn_link": "0",
- "notify_account_login": "1"
}
}
{- "apiversion": 3,
- "func": "set_notification_preferences",
- "module": "ContactInformation",
- "result": {
- "data": [
- {
- "additionalProperties": "string",
- "descp": "Someone logs in to my account.",
- "enabled": 1,
- "name": "notify_account_login"
}
], - "errors": null,
- "messages": null,
- "status": 1,
- "warnings": null
}
}