PUT   custom_events/{id}

Updates custom event.

URL Parameters

NameDescription
id

Custom event Id. Type: numeric.

Remarks

If you set all_checks property to false then you have to init checks property with not empty list of checks ids.

Severity property accepts one of these values: "I", "W", "E" or "F". "I" means Information, "W" means Warning, "E" means Error and "F" means Fatal.

Request example and description

curl --request PUT "https://api-asm1.apica.io/v3/custom_events/553?auth_ticket=C471ADC4-19B4-4219-BBF4-671A97EC653E" --header "Content-Type: application/json" --data-raw "{
  "name": "Event name.",
  "description": "Test event.",
  "from_utc": "2015-09-12T11:44:02.546",
  "to_utc": "2015-09-12T11:44:02.546",
  "severity": "E",
  "all_checks": false,
  "checks": [
    12345,
    678,
    234234
  ]
}"
NameType Required Description
nameStringNo

The event's name.

descriptionStringNo

The event's description.

from_utcDateTimeNo

The event's start timestamp.

to_utcDateTimeNo

The event's end timestamp.

severityStringNo

The event's severity.

all_checksBooleanNo

The event for all checks.

checksArrayNo

The event's checks list.