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\": \"F\",
  \"all_checks\": false,
  \"checks\": [
    12345,
    678,
    234234
  ]
}"
NameType Required Description
name String No

The event's name.

description String No

The event's description.

from_utc DateTime No

The event's start timestamp.

to_utc DateTime No

The event's end timestamp.

severity String No

The event's severity.

all_checks Boolean No

The event for all checks.

checks Array No

The event's checks list.