{
  "opencollection": "1.0.0",
  "info": {
    "name": "Spike.sh Alert Rules API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "x-api-key",
      "value": "{{x-api-key}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Alert Rules",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Fetch all alert rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spike.sh/automation/rules",
            "headers": [
              {
                "name": "x-team-id",
                "value": ""
              }
            ]
          },
          "docs": "Get all alert rules (automation rules) for the team."
        },
        {
          "info": {
            "name": "Create alert rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spike.sh/automation/rules/create",
            "headers": [
              {
                "name": "x-team-id",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new alert rule."
        },
        {
          "info": {
            "name": "Get alert rule details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spike.sh/automation/rules/:ruleId",
            "headers": [
              {
                "name": "x-team-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get details for a specific alert rule."
        },
        {
          "info": {
            "name": "Update alert rule",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.spike.sh/automation/rules/:ruleId/update",
            "headers": [
              {
                "name": "x-team-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing alert rule."
        },
        {
          "info": {
            "name": "Archive alert rule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.spike.sh/automation/rules/:ruleId/archive",
            "headers": [
              {
                "name": "x-team-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "ruleId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Archive (deactivate) an alert rule."
        }
      ]
    }
  ],
  "bundled": true
}