...
Update an Outage by sending a pay-load JSON object, which will update the Outage on your system and receive an appropriate response.
Successful Response
HTTP Status | Body | Description |
---|---|---|
200 | JSON object with success and id properties | The success property is set to 1 and only if the request was successful. The id property is the new event's ID |
Unsuccessful Response
HTTP Status | Body | Description |
---|---|---|
400 Bad Request | JSON object with an error property | The error property contains an explanation of what went wrongwith your request, e.g. if your payload is of wrong format to edit an Outage. |
401 Unauthorized | JSON object with an error property | You are not authenticated. |
404 Not Found | JSON object with an error property | You are authenticated but not authorised to create an Outage. |
...
The following table lists theproperties of an Outage.
Property | Description | Example |
| A globally unique Outage ID | 0ea7644e-b6fa-4fa2-9b33-a86b79db21a4 |
change_id | Insert any reference number if required in the change ID field | ticket #12345 |
current | If the outage is current or scheduled/future outage. IS THIS 'current' for scheduled or null for future. | current |
description | Long description of an Outage. | This is a test outage |
frequency | Frequency may be once, daily, weekly or monthly. | once |
start | Date and time when the outage shall start. For Read, this is a Unix timestamp, the number of seconds since 1970-01-01 00:00:00 UTC. | 2023-10-31T17:00:00+0000 |
end | Date and time when the outage shall end. For Read, this is a Unix timestamp, the number of seconds since 1970-01-01 00:00:00 UTC. For Create and Update, see Supported Time Formats for a description of the values allowed. | 31 May 2023 03:30 pm |
nodes | List of nodes for which Outages are defined. At least one nodes or an elements must be specified. | [ 'Switch-1','Switch-2' ] |
elements | List of elements of nodes for which Outages are defined. The element must be defined to match the one which may occur in the events.
| [ { |
|
] | ||
options |
DOCUMENT THE KEYS AND VALUES | "Normal" |
Limitations
API Endpoint
All requests are made under the following base URL:
...