{
  "opencollection": "1.0.0",
  "info": {
    "name": "Rockwell FactoryTalk Optix REST Alarms API",
    "version": "1.5.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://optix.example.com/auth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Alarms",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Active Alarms",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/api/v1/alarms",
            "params": [
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by alarm status"
              },
              {
                "name": "severity",
                "value": "",
                "type": "query",
                "description": "Minimum severity to return"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns currently active and unacknowledged alarms."
        },
        {
          "info": {
            "name": "Acknowledge an Alarm",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{host}/api/v1/alarms/:alarmId/acknowledge",
            "params": [
              {
                "name": "alarmId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Acknowledges an active alarm, optionally with a comment."
        },
        {
          "info": {
            "name": "Get Alarm History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{host}/api/v1/alarms/history",
            "params": [
              {
                "name": "startTime",
                "value": "",
                "type": "query"
              },
              {
                "name": "endTime",
                "value": "",
                "type": "query"
              },
              {
                "name": "tagName",
                "value": "",
                "type": "query",
                "description": "Filter to specific tag"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns historical alarm events within a time range."
        }
      ]
    }
  ],
  "bundled": true
}