Skip to main content
Update multiple alert scheduler rules
curl --request PUT \
  --url https://api.coralogix.com/mgmt/openapi/5/alerts/suppression-rules/v1/all/rules \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "updateAlertSchedulerRuleRequests": [
    {
      "alertSchedulerRule": {
        "createdAt": "<string>",
        "description": "<string>",
        "enabled": true,
        "filter": {
          "alertMetaLabels": {
            "value": [
              {
                "id": "<string>",
                "key": "<string>",
                "value": "<string>"
              }
            ]
          },
          "whatExpression": "<string>"
        },
        "id": "<string>",
        "metaLabels": [
          {
            "id": "<string>",
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "name": "<string>",
        "schedule": {
          "oneTime": {
            "timeframe": {
              "endTime": "<string>",
              "startTime": "<string>",
              "timezone": "<string>"
            }
          },
          "scheduleOperation": "SCHEDULE_OPERATION_UNSPECIFIED"
        },
        "uniqueIdentifier": "<string>",
        "updatedAt": "<string>"
      }
    }
  ]
}
'
{
  "updateSuppressionResponses": [
    {
      "alertSchedulerRule": {
        "createdAt": "<string>",
        "description": "<string>",
        "enabled": true,
        "filter": {
          "alertMetaLabels": {
            "value": [
              {
                "id": "<string>",
                "key": "<string>",
                "value": "<string>"
              }
            ]
          },
          "whatExpression": "<string>"
        },
        "id": "<string>",
        "metaLabels": [
          {
            "id": "<string>",
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "name": "<string>",
        "schedule": {
          "oneTime": {
            "timeframe": {
              "endTime": "<string>",
              "startTime": "<string>",
              "timezone": "<string>"
            }
          },
          "scheduleOperation": "SCHEDULE_OPERATION_UNSPECIFIED"
        },
        "uniqueIdentifier": "<string>",
        "updatedAt": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json

This is a request sent to update multiple alert scheduler rules

updateAlertSchedulerRuleRequests
Update alert scheduler rule request data structure · object[]
required

Response

This is a response sent after updating multiple alert scheduler rules

updateSuppressionResponses
Create alert scheduler rule response data structure · object[]
required