{
  "opencollection": "1.0.0",
  "info": {
    "name": "FactSet Vermilion API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Data",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Lists All Datasources",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/data-sources",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "_sort",
                "value": "",
                "type": "query",
                "description": "The column to sort on. Append - to sort in descending order. If parameter is not given, no sorting will be done"
              },
              {
                "name": "_paginationLimit",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return. Default is 25"
              },
              {
                "name": "_paginationOffset",
                "value": "",
                "type": "query",
                "description": "Non-negative number of entries to skip. Default is 0"
              }
            ]
          },
          "docs": "List all datasources the user has permission to see"
        }
      ]
    },
    {
      "info": {
        "name": "Code",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets a Datasource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/data-sources/:dataSourceCode",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "dataSourceCode",
                "value": "",
                "type": "path",
                "description": "The code of the datasource"
              }
            ]
          },
          "docs": "Gets a datasource based on the code passed"
        },
        {
          "info": {
            "name": "Factset Gets the Data for the Datasource",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/data-sources/:dataSourceCode/data",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "dataSourceCode",
                "value": "",
                "type": "path",
                "description": "The code of the datasource"
              },
              {
                "name": "entityCodes",
                "value": "",
                "type": "query",
                "description": "A series of query parameter used to filter the data for a datasource. This represents the entities for the datasource. E.g.: entityCodes=ACCOUNT&entityCodes=FUNDS"
              },
              {
                "name": "entityKeys",
                "value": "",
                "type": "query",
                "description": "A series of query parameter used to filter the data for a datasource. This is the entity key value for an entity selection. E.g.: entityKeys=1&entityKeys=Test2"
              },
              {
                "name": "_paginationLimit",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return. Default is 25"
              },
              {
                "name": "_paginationOffset",
                "value": "",
                "type": "query",
                "description": "Non-negative number of entries to skip. Default is 0"
              }
            ]
          },
          "docs": "Gets the data for the datasource. There are optional query parameters to filter the data"
        },
        {
          "info": {
            "name": "Factset Gets the Entity Values",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/entities/:entityCode/values",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "entityCode",
                "value": "",
                "type": "path",
                "description": "The code of the entity"
              },
              {
                "name": "_sort",
                "value": "",
                "type": "query",
                "description": "The entity field to sort on. Can only be sorted on entity key, description or secondary key fields. Append \"-\" to sort in descending order. If no parameter given, it will be sorted by key field in ascending order by default"
              },
              {
                "name": "_paginationLimit",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return. Default is 25"
              },
              {
                "name": "_paginationOffset",
                "value": "",
                "type": "query",
                "description": "Non-negative number of entries to skip. Default is 0"
              },
              {
                "name": "showAll",
                "value": "",
                "type": "query",
                "description": "Whether to show all field values for each entity row. Value should either be 1 or 0. Default is 0 (false)"
              }
            ]
          },
          "docs": "Gets the entity values for the specified entity"
        },
        {
          "info": {
            "name": "Factset Gets a Report Definition",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/reports/:reportDefinitionCode",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "reportDefinitionCode",
                "value": "",
                "type": "path",
                "description": "The code of the report definition"
              }
            ]
          },
          "docs": "Gets a report defintion based on the code specified"
        }
      ]
    },
    {
      "info": {
        "name": "Reports",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets All Report Definitions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/reports",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "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 all report definitions the user has permissions for"
        }
      ]
    },
    {
      "info": {
        "name": "Generate",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Generates a Report",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/report-instances/generate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Generates a report using the specified ID and the JSON in the request body"
        }
      ]
    },
    {
      "info": {
        "name": "Instance",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets a Report Instance Based on the Id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/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": "{{baseUrl}}/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 a List of Logs for the Report Instance Generation",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/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'"
        }
      ]
    },
    {
      "info": {
        "name": "Instances",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets a List of Report Instances",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/:tenant/report-instances",
            "params": [
              {
                "name": "tenant",
                "value": "",
                "type": "path",
                "description": "The code of the tenancy"
              },
              {
                "name": "reportDefinitionCode",
                "value": "",
                "type": "query",
                "description": "Acts as a filter for the retrieval process. Filters the report instances that match the report definition code"
              },
              {
                "name": "entityCodes",
                "value": "",
                "type": "query",
                "description": "A series of query parameters used to filter the report instances by entity code. E.g: entityCode=DATE&entityCode=SYSTEM_LANG"
              },
              {
                "name": "entityKeys",
                "value": "",
                "type": "query",
                "description": "A series of query parameters used to filter the report instances by entity keys. E.g: entityKey=en-gb"
              },
              {
                "name": "sectionFilter",
                "value": "",
                "type": "query",
                "description": "Acts as a filter for the retrieval process. Filters the report instances that match the section filter"
              },
              {
                "name": "outputFormat",
                "value": "",
                "type": "query",
                "description": "Acts as a filter for the retrieval process. Filters the report instances that match the output format"
              },
              {
                "name": "_sort",
                "value": "",
                "type": "query",
                "description": "The column to sort on. Append - to sort in descending order. If parameter is not given, sorting will be based on the report instance id in descending order"
              },
              {
                "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 report instances. This can be filtered down further by including query parameters in the URL. For example, a report definition id can be added so the only report instances returned are the ones with a matching id"
        }
      ]
    },
    {
      "info": {
        "name": "File",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Gets the Generated File",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/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": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Retrieves a List of Vrs Users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/scim/v2/Users",
            "params": [
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return"
              },
              {
                "name": "startIndex",
                "value": "",
                "type": "query",
                "description": "The 1-based index of the first query result"
              }
            ]
          },
          "docs": "Retrieves a list of VRS users"
        },
        {
          "info": {
            "name": "Factset Creates a User",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/scim/v2/Users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a VRS user"
        }
      ]
    },
    {
      "info": {
        "name": "User",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Retrieves a Vrs User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/scim/v2/Users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The ID of the user"
              }
            ]
          },
          "docs": "Retrieves a VRS user based on their ID"
        },
        {
          "info": {
            "name": "Factset Updates a Vrs User",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/scim/v2/Users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The ID of the user"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates (replaces) a VRS user with the properties in the JSON"
        },
        {
          "info": {
            "name": "Factset Add or Remove Vrs User Attributes",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/scim/v2/Users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The ID of the user"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds or removes VRS user attributes based on the JSON properties"
        },
        {
          "info": {
            "name": "Factset Deletes a Vrs User",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/scim/v2/Users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The ID of the user"
              }
            ]
          },
          "docs": "Deletes a VRS user (this marks them as 'Deleted' in the database)"
        }
      ]
    },
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Factset Retrieves a List of Vrs Role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/scim/v2/Groups",
            "params": [
              {
                "name": "count",
                "value": "",
                "type": "query",
                "description": "Non-negative maximum number of entries to return"
              },
              {
                "name": "startIndex",
                "value": "",
                "type": "query",
                "description": "The 1-based index of the first query result"
              }
            ]
          },
          "docs": "Retrieves a VRS roles"
        },
        {
          "info": {
            "name": "Factset Creates a Role",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/scim/v2/Groups",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a VRS role"
        },
        {
          "info": {
            "name": "Factset Retrieves a Vrs Role",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/scim/v2/Groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path",
                "description": "The ID of the role"
              }
            ]
          },
          "docs": "Retrieves a VRS role based on the ID"
        },
        {
          "info": {
            "name": "Factset Updates a Vrs Group",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/scim/v2/Groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path",
                "description": "The ID of the group"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates (replaces) a VRS Group with the properties in the JSON"
        },
        {
          "info": {
            "name": "Factset Add or Remove a User To/from a Group",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "{{baseUrl}}/scim/v2/Groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path",
                "description": "The ID of the role"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds or removes a VRS user to/from a VRS role"
        },
        {
          "info": {
            "name": "Factset Deletes a Vrs Role",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/scim/v2/Groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path",
                "description": "The ID of the group"
              }
            ]
          },
          "docs": "Deletes a VRS role"
        }
      ]
    }
  ],
  "bundled": true
}