{
  "swagger" : "2.0",
  "info" : {
    "description" : "Retrieve incident data or update an existing incident.\n\nThis API has reached End of Support. Consider migrating to the improved Incidents V2 API. Reach out to bigpanda support for assistance upgrading.",
    "version" : "v1.3.7",
    "title" : "Incidents V1"
  },
  "host" : "api.bigpanda.io",
  "tags" : [ {
    "name" : "Retrieve Incident",
    "description" : "Analyse BigPanda incidents"
  }, {
    "name" : "Resolve or Comment",
    "description" : "Resolve or Comment on an incident."
  } ],
  "schemes" : [ "https" ],
  "security" : [ {
    "Bearer" : [ ]
  } ],
  "paths" : {
    "/resources/v1.0/incidents/{id}" : {
      "get" : {
        "tags" : [ "Retrieve Incident" ],
        "summary" : "Retrieve an Incident",
        "description" : "Retrieves the requested BigPanda incident.",
        "operationId" : "incidents-get",
        "parameters" : [ {
          "name" : "expand",
          "in" : "query",
          "description" : "Option to return the full representation of an expandable object.",
          "required" : false,
          "type" : "string"
        }, {
          "name" : "id",
          "in" : "path",
          "description" : "System-generated unique identifier for the incident.",
          "required" : true,
          "type" : "string"
        } ],
        "responses" : {
          "200" : {
            "description" : "200",
            "schema" : {
              "$ref" : "#/definitions/inline_response_200"
            }
          }
        }
      },
      "post" : {
        "tags" : [ "Resolve or Comment" ],
        "summary" : "Resolve/Comment Incident",
        "description" : "Resolves or adds a comment to the requested BigPanda incident.",
        "operationId" : "resolve-incident",
        "parameters" : [ {
          "name" : "id",
          "in" : "path",
          "description" : "System-generated unique identifier for the incident.",
          "required" : true,
          "type" : "string"
        }, {
          "in" : "body",
          "name" : "body",
          "required" : false,
          "schema" : {
            "$ref" : "#/definitions/body"
          }
        } ],
        "responses" : {
          "204" : {
            "description" : "204",
            "schema" : {
              "type" : "object"
            }
          }
        }
      }
    }
  },
  "securityDefinitions" : {
    "Bearer" : {
      "description" : "Bearer [User API Key](https://docs.bigpanda.io/docs/api-key-management)\nBigPanda recommends adding Authentication headers only in the secure tool you use to make API calls.",
      "type" : "apiKey",
      "name" : "Authorization",
      "in" : "header"
    }
  },
  "definitions" : {
    "inline_response_200_No Query_links" : {
      "type" : "object",
      "properties" : {
        "rel" : {
          "type" : "string",
          "example" : "self"
        },
        "href" : {
          "type" : "string",
          "example" : "https://api.bigpanda.io/resources/v1.0/incidents/1234a53b6789c12d3efg45h"
        }
      }
    },
    "inline_response_200_No Query" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "type" : "string",
          "example" : "1234a53b6789c12d3efg45h"
        },
        "status" : {
          "type" : "string",
          "example" : "critical"
        },
        "active" : {
          "type" : "boolean",
          "example" : true,
          "default" : true
        },
        "flapping" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        },
        "resolved" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        },
        "snooze" : {
          "$ref" : "#/definitions/inline_response_200_No Query_snooze"
        },
        "startedOn" : {
          "type" : "string",
          "example" : "1466416853"
        },
        "changedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "updatedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "endedOn" : { },
        "alerts" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/inline_response_200_No Query_alerts"
          }
        },
        "links" : {
          "$ref" : "#/definitions/inline_response_200_No Query_links"
        },
        "expandable" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "example" : "alerts"
          }
        }
      }
    },
    "inline_response_200_With Query_tags" : {
      "type" : "object",
      "properties" : {
        "object" : {
          "type" : "string",
          "example" : "host"
        },
        "value" : {
          "type" : "string",
          "example" : "production-database-1"
        }
      }
    },
    "inline_response_200_With Query_alerts" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "type" : "string",
          "example" : "57da76d24cdb1f3a54ce25a0"
        },
        "status" : {
          "type" : "string",
          "example" : "critical"
        },
        "active" : {
          "type" : "boolean",
          "example" : true,
          "default" : true
        },
        "startedOn" : {
          "type" : "string",
          "example" : "1466416853"
        },
        "changedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "updatedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "endedOn" : { },
        "tags" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/inline_response_200_With Query_tags"
          }
        }
      }
    },
    "inline_response_200" : {
      "type" : "object",
      "properties" : {
        "No Query" : {
          "$ref" : "#/definitions/inline_response_200_No Query"
        },
        "With Query" : {
          "$ref" : "#/definitions/inline_response_200_With Query"
        }
      }
    },
    "inline_response_200_No Query_snooze" : {
      "type" : "object",
      "properties" : {
        "snoozed" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        },
        "wake" : { },
        "autoCancel" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        }
      }
    },
    "body" : {
      "type" : "object",
      "properties" : {
        "resolved" : {
          "type" : "boolean",
          "description" : "To resolve the incident, set the value to `true`.",
          "default" : true
        },
        "comments" : {
          "type" : "string",
          "description" : "Annotation providing additional information about the incident resolution; appears in the activity feed for the incident."
        }
      }
    },
    "inline_response_200_No Query_alerts" : {
      "type" : "object",
      "properties" : {
        "alertId" : {
          "type" : "string",
          "example" : "79fc79f46egh3h5c78rg78d2"
        }
      }
    },
    "inline_response_200_With Query" : {
      "type" : "object",
      "properties" : {
        "id" : {
          "type" : "string",
          "example" : "1234a53b6789c12d3efg45h"
        },
        "status" : {
          "type" : "string",
          "example" : "critical"
        },
        "active" : {
          "type" : "boolean",
          "example" : true,
          "default" : true
        },
        "flapping" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        },
        "resolved" : {
          "type" : "boolean",
          "example" : false,
          "default" : true
        },
        "snooze" : {
          "$ref" : "#/definitions/inline_response_200_No Query_snooze"
        },
        "startedOn" : {
          "type" : "string",
          "example" : "1466416853"
        },
        "changedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "updatedOn" : {
          "type" : "string",
          "example" : "1466417169"
        },
        "endedOn" : { },
        "alerts" : {
          "type" : "array",
          "items" : {
            "$ref" : "#/definitions/inline_response_200_With Query_alerts"
          }
        },
        "expandable" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "example" : "alerts"
          }
        },
        "links" : {
          "$ref" : "#/definitions/inline_response_200_No Query_links"
        }
      }
    }
  }
}