Changes an alert's status: dismisses it, restores it to New, or links it to a ticket.
StatusId is required: 1 New, 2 Dismissed or 3 Ticketed. Ticketed needs a TicketId - an
open ticket of this account, of the alert’s client when it has one - and links the alert to it, as
creating a ticket from an alert does in the app; the alert’s TicketId then reads that ticket.
TicketId is refused with any other status.
As in the app, the change applies to the alert’s whole stack - the repeats grouped with it in the
alert list: dismissing or ticketing moves every New alert in the stack, and restoring to New moves
every Dismissed one back. A New alert can be dismissed or ticketed and a Dismissed alert restored;
any other change - a Ticketed alert to any status or another ticket, or a Dismissed alert to
Ticketed - is a 409. Sending the status (and ticket) the alert already has is a no-op rather than an
error. A dismissal is reported on the alert as DismissedOn and DismissedBy.
Autorisations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Paramètres de chemin
Alert to change.
Corps
The status to set, and the ticket for Ticketed.
Request body for changing one alert's status.
The status to set: 1 New, 2 Dismissed or 3 Ticketed. Required. Ticketed links the alert to the
ticket in TicketId. As in the app, the change applies to the alert's whole stack (its
repeats): Dismissed and Ticketed move every New alert in it, New moves every Dismissed one
back. A New alert can be dismissed or ticketed and a Dismissed one set back to New; any other
change, including moving a Ticketed alert, is a 409.
2
The ticket to link the alert to, an id from GET /v1/tickets. Required with
StatusId 3 and accepted with nothing else. The ticket must be an open ticket of this
account (not deleted), and of the alert's client when the alert has one.
Réponse
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 The identifier of the alert.
null