Examples

PUT /api/users/988725685/mail_notifications
{
  "subscription": "subscribe to all hosts",
  "mail_notification": {}
}
200
{}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

user_id
required

Validations:

  • Must be a String

mail_notification_id
required

Validations:

  • Must be a Integer

interval
optional

Mail notification interval option, e.g. Daily, Weekly or Monthly. Required for summary notification

Validations:

  • Must be a String

subscription
optional

Mail notification subscription option, e.g. Subscribe, Subscribe to my hosts or Subscribe to all hosts. Required for host built and config error state

Validations:

  • Must be a String

mail_query
optional

Relevant only for audit summary notification

Validations:

  • Must be a String