{
  "opencollection": "1.0.0",
  "info": {
    "name": "Factset Analytics Datastore About Instance API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Instance",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets a Report Instance Based on the Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/v1/:tenant/report-instances/:reportInstanceId",
            "params": [
              {
                "name": "reportInstanceId",
                "value": "",
                "type": "path",
                "description": "The ID of the report instance"
              },
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              }
            ]
          },
          "docs": "Gets a report instance object based on the ID passed"
        },
        {
          "info": {
            "name": "Factset Cancels a Report Generation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.factset.com/v1/:tenant/report-instances/:reportInstanceId",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "reportInstanceId",
                "value": "",
                "type": "path",
                "description": "The id of the report instance"
              }
            ]
          },
          "docs": "Sends a request to cancel a report generation based on the report instance id passed"
        },
        {
          "info": {
            "name": "Factset Gets the Generated File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/v1/:tenant/report-instances/:reportInstanceId/results/:reportFileName",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "reportInstanceId",
                "value": "",
                "type": "path",
                "description": "Used to validate that report file name belongs to the report instance passed"
              },
              {
                "name": "reportFileName",
                "value": "",
                "type": "path",
                "description": "The report file name that has to be retrieved. report file name. E.g: xyz.pdf"
              }
            ]
          },
          "docs": "Get the generated file for a report instance. Users can fetch the generated report once the genration is finished. The report instance id and the report file name are passed in as path paramters"
        },
        {
          "info": {
            "name": "Factset Gets a List of Logs for the Report Instance Generation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/v1/:tenant/report-instances/:reportInstanceId/logs",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "reportInstanceId",
                "value": "",
                "type": "path",
                "description": "Used to validate that report file name belongs to the report instance passed"
              },
              {
                "name": "errorsOnly",
                "value": "",
                "type": "query",
                "description": "If the parameter is set to true the endpoint should return just errors and warnings E.g: errorsOnly=true"
              },
              {
                "name": "_sort",
                "value": "",
                "type": "query",
                "description": "The column to sort on. Can add - to sort"
              },
              {
                "name": "_paginationLimit",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return"
              },
              {
                "name": "_paginationOffset",
                "value": "",
                "type": "query",
                "description": "Non-negative number of entries to skip"
              }
            ]
          },
          "docs": "Gets a list of logs for the generated report instance. Allows the user to sort on log message, type and date. Also allows for retrieving of just the errors & warnings'"
        }
      ]
    }
  ],
  "bundled": true
}