Skip to main content
Close incidents
curl --request POST \
  --url https://api.coralogix.com/mgmt/openapi/latest/incidents/incidents/v1/close \
  --header 'Authorization: <api-key>'
{
  "incidents": [
    {
      "assignments": [
        {
          "assignedBy": {
            "userId": "<any>"
          },
          "assignedTo": {
            "userId": "<any>"
          }
        }
      ],
      "closedAt": "2024-01-01T00:00:00.000Z",
      "contextualLabels": {},
      "createdAt": "2024-01-01T00:00:00.000Z",
      "description": "incident_description",
      "displayLabels": {},
      "duration": "<string>",
      "events": [
        {
          "id": "incident_event_id",
          "incidentEventType": "INCIDENT_EVENT_TYPE_UNSPECIFIED",
          "operationalEvent": {
            "systemName": "<string>"
          },
          "originatorType": "ORIGINATOR_TYPE_UNSPECIFIED",
          "snoozeIndicator": {
            "durationMinutes": 123,
            "startTime": "2023-11-07T05:31:56Z",
            "userId": "<string>"
          }
        }
      ],
      "id": "incident_id",
      "isMuted": false,
      "lastStateUpdateKey": "last_state_update_key",
      "lastStateUpdateTime": "2024-01-01T00:00:00.000Z",
      "metaLabels": [
        {
          "key": "key",
          "value": "value"
        }
      ],
      "name": "incident_name",
      "severity": "INCIDENT_SEVERITY_UNSPECIFIED",
      "state": "INCIDENT_STATE_UNSPECIFIED",
      "status": "INCIDENT_STATUS_UNSPECIFIED"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Query Parameters

incident_ids
string[]

List of incident IDs to close

Response

Response containing the updated incidents after closing

incidents
Incident · object[]
required