Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
search optional |
filter results Validations:
|
order optional |
Sort and order by a searchable field, e.g. ‘id DESC’ Validations:
|
page optional |
Page number, starting at 1 Validations:
|
per_page optional |
Number of results per page to return, ‘all’ to return all results Validations:
|
Field name | Type | Possible values |
---|---|---|
description | text | |
name | string | |
user | string |
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Numerical ID or email notification name Validations:
|
POST /api/users/988725677/mail_notifications { "subscription": "subscribe to my hosts", "mail_notification_id": 518870487, "mail_notification": {} } 200 {}
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
user_id required |
Validations:
|
mail_notification_id required |
Validations:
|
interval optional |
Mail notification interval option, e.g. Daily, Weekly or Monthly. Required for summary notification Validations:
|
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:
|
mail_query optional |
Relevant only for audit summary notification Validations:
|
PUT /api/users/988725679/mail_notifications { "subscription": "subscribe to all hosts", "mail_notification": {} } 200 {}
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
user_id required |
Validations:
|
mail_notification_id required |
Validations:
|
interval optional |
Mail notification interval option, e.g. Daily, Weekly or Monthly. Required for summary notification Validations:
|
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:
|
mail_query optional |
Relevant only for audit summary notification Validations:
|
DELETE /api/users/988725677/mail_notifications { "mail_notification": {} } 204
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
user_id required |
Validations:
|
mail_notification_id required |
Validations:
|
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
user_id required |
Validations:
|