{
  "opencollection": "1.0.0",
  "info": {
    "name": "FactSet SPAR Engine API",
    "version": "3.13.4"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Account",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Get Spar Account Returns Type Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/accounts/:accountPath/returns-type",
            "params": [
              {
                "name": "accountPath",
                "value": "",
                "type": "path",
                "description": "URL encoded account path"
              }
            ]
          },
          "docs": "This endpoint returns the returns type of account associated with SPAR"
        }
      ]
    },
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Get Accounts and Sub-directories in a Directory",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/lookups/v3/accounts/:path",
            "params": [
              {
                "name": "path",
                "value": "",
                "type": "path",
                "description": "The directory to get the accounts and sub-directories."
              }
            ]
          },
          "docs": "This endpoint looks up all ACCT and ACTM files and sub-directories in a given directory."
        }
      ]
    },
    {
      "info": {
        "name": "Analytics",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Get Spar Benchmark Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/benchmarks",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "query",
                "description": "Benchmark Identifier"
              }
            ]
          },
          "docs": "This endpoint returns the details of a given SPAR benchmark identifier."
        },
        {
          "info": {
            "name": "Factset Get Spar Components",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/components",
            "params": [
              {
                "name": "document",
                "value": "",
                "type": "query",
                "description": "Document Name"
              }
            ]
          },
          "docs": "This endpoint returns the list of SPAR components in a given SPAR document."
        },
        {
          "info": {
            "name": "Factset Get Spar Component by Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/components/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Unique identifier for a SPAR component"
              }
            ]
          },
          "docs": "This endpoint returns the default settings of a SPAR component."
        },
        {
          "info": {
            "name": "Factset Get Currencies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/lookups/v3/currencies"
          },
          "docs": "This endpoint lists all the currencies that can be applied to any calculation."
        },
        {
          "info": {
            "name": "Factset Gets Spar3 Documents and Sub-directories in a Directory",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/documents/:path",
            "params": [
              {
                "name": "path",
                "value": "",
                "type": "path",
                "description": "The directory to get the documents in"
              }
            ]
          },
          "docs": "This endpoint looks up all SPAR3 documents and sub-directories in a given directory."
        },
        {
          "info": {
            "name": "Factset Get Spar Frequencies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/frequencies"
          },
          "docs": "This endpoint lists all the frequencies that can be applied to a SPAR calculation."
        },
        {
          "info": {
            "name": "Factset Get All Calculations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations",
            "params": [
              {
                "name": "pageNumber",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "This endpoints returns all calculation requests."
        },
        {
          "info": {
            "name": "Factset Create and Run Spar Calculation",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations",
            "headers": [
              {
                "name": "X-FactSet-Api-Long-Running-Deadline",
                "value": ""
              },
              {
                "name": "Cache-Control",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint runs the SPAR calculation specified in the POST body parameters.\r\nIt can take one or more units as input.\r\n\r\nRemarks:\r\n\r\n*\tAny settings in POST body will act as a one-time override over the settings saved in the SPAR template."
        },
        {
          "info": {
            "name": "Factset Get Spar Calculation Parameters by Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Create and Run SPAR calculation endpoint"
              }
            ]
          },
          "docs": "This is the endpoint that returns the calculation parameters passed for a calculation."
        },
        {
          "info": {
            "name": "Factset Create or Update Spar Calculation and Run It.",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations/:id",
            "headers": [
              {
                "name": "X-FactSet-Api-Long-Running-Deadline",
                "value": ""
              },
              {
                "name": "Cache-Control",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Create and Run SPAR calculation endpoint"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "This endpoint updates and run the SPAR calculation specified in the PUT body parameters. This also allows creating new SPAR calculations with custom ids.\r\nIt can take one or more units as input.\r\n\r\nRemarks:\r\n\r\n*\tAny settings in PUT body will act as a one-time override over the settings saved in the SPAR template."
        },
        {
          "info": {
            "name": "Factset Cancel Spar Calculation",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Create and Run SPAR calculation endpoint"
              }
            ]
          },
          "docs": "This is the endpoint to cancel a previously submitted calculation."
        },
        {
          "info": {
            "name": "Factset Get Spar Calculation Status by Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations/:id/status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Create and Run SPAR calculation endpoint"
              }
            ]
          },
          "docs": "This is the endpoint to check on the progress of a previously requested calculation.\r\nIf the calculation has finished computing, the location header will point to the result url."
        },
        {
          "info": {
            "name": "Factset Get Spar Calculation Result by Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.factset.com/analytics/engines/spar/v3/calculations/:id/units/:unitId/result",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Get SPAR calculation status by id endpoint"
              },
              {
                "name": "unitId",
                "value": "",
                "type": "path",
                "description": "from url, provided from the location header in the Get SPAR calculation status by id endpoint"
              }
            ]
          },
          "docs": "This is the endpoint to get the result of a previously requested calculation.\r\nIf the calculation has finished computing, the body of the response will contain the requested document in JSON."
        }
      ]
    }
  ],
  "bundled": true
}