configureNotificationsSettings
This method configures the notification settings for a given user account.
Parameters
Parameter | Type | Optional | Description |
---|---|---|---|
| String | Yes | The ID of the account for which the notification settings are configured. If no value is provided, the settings will be applied to the account which generated the API key. |
| Number | Yes | The number of days after which generated notifications will be automatically deleted. Valid values are between 1 and 365. The default value is 30 days. |
| Array | Yes | A list of additional email addresses to be used when sending notifications. |
| Boolean | Yes | This option specifies whether the device name will be included in the notification sent by email, when it is available, or not. The value should be |
| Boolean | Yes | This option specifies whether the FQDN will be included in the notification sent by email, when it is available, or not. The value should be |
| Array | Yes | A list of objects containing the notification settings to be configured. Only the specified notifications will be updated. Existing values are preserved for omitted settings. Each object should have the following structure:
|
| Boolean | Yes | This option specifies whether notification emails should be sent in plain text only. The value should be |
Return value
This method returns a Boolean which is True if the notifications settings have been successfully configured.
Example
Request
{ "params": { "accountId": "55896b87b7894d0f367b23c8", "deleteAfter": 17, "includeDeviceName": true, "includeDeviceFQDN": true, "emailAddresses": ["[email protected]"], "notificationsSettings":[ { "type" : 1, "enabled" : true, "visibilitySettings" : { "sendPerEmail" : true, "showInConsole" : true, "useCustomEmailDistribution": false, "emails" : ["[email protected]"], }, "configurationSettings" : { "threshold" : 15, "useThreshold" : true } } ], "sendOnlyPlainTextEmail": true }, "jsonrpc": "2.0", "method": "configureNotificationsSettings", "id": "5399c9b5-0b46-45e4-81aa-889952433d68" }
Response
{ "id":"5399c9b5-0b46-45e4-81aa-889952433d68", "jsonrpc":"2.0", "result": true }