Enterprise Insert Or Update Enterprise Alert Configurations

Enterprise Insert Or Update Enterprise Alert Configurations

Creates, updates, or deletes alert configurations for the specified enterprise. Returns the array of alert configurations submitted, with ids added for the entries that have been successfully created. If an entry is not successfully created or updated, an error property is included in the response.

Privileges required:

CREATE ENTERPRISE_ALERT

Request
URI
POST
https://{api_host}/portal/rest/enterprise/insertOrUpdateEnterpriseAlertConfigurations
COPY
Request Body

Show optional properties

{
    "enterpriseAlertConfigurations": [
        {}
    ]
}
{
    "enterpriseId": 0,
    "enterpriseAlertConfigurations": [
        {
            "id": 0,
            "created": "string",
            "alertDefinitionId": 0,
            "enterpriseId": 0,
            "enterpriseLogicalId": "string",
            "enabled": false,
            "name": "string",
            "description": "string",
            "type": "string",
            "definition": {
                "isSystemOnly": false,
                "isOperatorOnly": false
            },
            "firstNotificationSeconds": 0,
            "maxNotifications": 0,
            "notificationIntervalSeconds": 0,
            "resetIntervalSeconds": 0,
            "modified": "string"
        }
    ]
}
integer
enterpriseId
Optional

enterpriseId

enterpriseAlertConfigurations
Required

enterpriseAlertConfigurations

Responses
200

Request was successfully processed

"enterprise_insert_or_update_enterprise_alert_configurations_result Object"
array of object
enterpriseAlertConfigurations
Optional

enterpriseAlertConfigurations


400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"enterpriseAlertConfigurations:"array"}' https://{api_host}/portal/rest/enterprise/insertOrUpdateEnterpriseAlertConfigurations