API to recreate an outage

API to recreate an outage

In cases where an outage is not reported or it has been accidentally deleted, you can recreate it using the following API:
    -X PUT \
    -H "Content-Type: application/json;charset=UTF-8" \
    -H "Accept: application/json; version=2.0" \
    -H "Authorization: Zoho-authtoken <authtoken>" \
    -d '{
          "start_time": "2017-10-04T14:48:36+0530",
          "end_time": "2017-03-24T14:55:47+0530",
          "reason": "Unable to connect to http://mpeproc.gov.in.%26quot%3B/
        }'
Note:
  • To generate the <authtoken>, log in to Site24x7 and go to Admin > Developer > API > access the URL given.
  • Copy the <monitor_ID> from the Site24x7 web client page URL. Eg: https://www.site24x7.com/app/demo#/server/SERVER/15698000078729003/Device
  • Ensure the time entered is in the ISO format.