{
  "openapi": "3.0.4",
  "info": {
    "title": "DocuShare GO",
    "version": "v1"
  },
  "paths": {
    "/account/device-auth-approval": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Approving or denying auth request from device",
        "requestBody": {
          "description": "",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceAuthApprovalRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceAuthApprovalRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceAuthApprovalRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeviceAuthApprovalRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/audit-trail": {
      "get": {
        "tags": [
          "AuditTrail"
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateTimeOffset",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0
            }
          },
          {
            "name": "organizationScope",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/cabinet/get": {
      "post": {
        "tags": [
          "Cabinet"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCabietRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCabietRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCabietRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCabietRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cabinet"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cabinet"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cabinet"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/cabinet/update-cabinet": {
      "post": {
        "tags": [
          "Cabinet"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCabinetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCabinetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCabinetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCabinetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/cabinet/add": {
      "post": {
        "tags": [
          "Cabinet"
        ],
        "summary": "Add a Cabinet instance.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCabinetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCabinetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCabinetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCabinetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCabinetResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/cabinet/batch-update-index-status": {
      "post": {
        "tags": [
          "Cabinet"
        ],
        "summary": "Update Cabinet search index",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/add": {
      "post": {
        "tags": [
          "Collections"
        ],
        "summary": "Add a collection instance.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCollectionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCollectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCollectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCollectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddCollectionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCollectionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCollectionResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/update": {
      "post": {
        "tags": [
          "Collections"
        ],
        "summary": "Update a collection instance.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCollectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCollectionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCollectionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCollectionResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/delete": {
      "post": {
        "tags": [
          "Collections"
        ],
        "summary": "Delete a collection and all it's related resources.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCollectionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCollectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCollectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteCollectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteCollectionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteCollectionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteCollectionResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/search": {
      "post": {
        "tags": [
          "Collections"
        ],
        "summary": "Returns list of collection based on filter applied.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCollectionsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCollectionsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCollectionsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SearchCollectionsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SearchCollectionsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchCollectionsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchCollectionsResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist\n<response code=\"429\">Subscription has reached/exceeded concurrent user limit</response>",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/dashboard": {
      "post": {
        "tags": [
          "Collections"
        ],
        "summary": "Returns the layout and configuration for a collection \ndashboard",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCollectionDashboardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCollectionDashboardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCollectionDashboardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCollectionDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetCollectionDashboardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCollectionDashboardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCollectionDashboardResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/collections/expiry": {
      "post": {
        "tags": [
          "Collections"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SetExpirationDateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetExpirationDateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetExpirationDateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetExpirationDateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SetExpirationDateResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetExpirationDateResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetExpirationDateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/collections/batch-update-index-status": {
      "post": {
        "tags": [
          "Collections"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateIndexStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/dashboard/layout/configure": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Updates a dashboard layout",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureDashboardLayoutRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureDashboardLayoutRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureDashboardLayoutRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureDashboardLayoutRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Dashboard does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/widgets/available": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Returns the list of widgets available for the requested\ndashboard type",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAvailableWidgetsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAvailableWidgetsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAvailableWidgetsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAvailableWidgetsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Dashboard type does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/widget/configure": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Updates base (non-customized) configuration for a widget instance",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureWidgetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureWidgetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureWidgetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigureWidgetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureWidgetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureWidgetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureWidgetResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Widget does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/widget/display/customize": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Customizes a widget instance's display settings for the logged in user",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetDisplayRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetDisplayRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetDisplayRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetDisplayRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetDisplayResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetDisplayResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetDisplayResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Widget does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/widget/customize": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Customizes a widget instance's configuration for the logged in user",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomizeWidgetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomizeWidgetResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Widget does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/reset": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Resets a dashboard layout to the default",
        "description": "The old dashboard will be completely removed and replaced with a new one.\nThe id of the new dashboard will be in the response",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetDashboardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetDashboardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetDashboardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResetDashboardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetDashboardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetDashboardResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Dashboard does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/calendars": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "summary": "Returns the list of calendar widgets available for the current user",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllCalendarInfoRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllCalendarInfoRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllCalendarInfoRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllCalendarInfoRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAvailableWidgetsResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/dashboard/reset-all-dashboards": {
      "post": {
        "tags": [
          "Dashboard"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetAllDashboardsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetAllDashboardsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetAllDashboardsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetAllDashboardsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigureDashboardLayoutResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/digital-mail/metrics": {
      "post": {
        "tags": [
          "DigitalMail"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDigitalMailMetricsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDigitalMailMetricsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDigitalMailMetricsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDigitalMailMetricsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDigitalMailMetricsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDigitalMailMetricsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDigitalMailMetricsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/document": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns detailed information about a document. Does not return\nthe document contents.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/path": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns information about the document's location in the\nfolder hierarchy. Note that if this is a shared document,\nany folders above it that have not been shared will not\nbe in the results.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentPathRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentPathRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentPathRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentPathRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentPathResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentPathResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentPathResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/signature": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns a presigned URL that can be used to download a document's content.\nBy default the URL is valid for 4 hours",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSignatureRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSignatureRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSignatureRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSignatureRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Signature does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/download-url": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns a presigned URL that can be used to download a document's content.\nBy default the URL is valid for 4 hours",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentUrlRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentUrlRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentUrlRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentUrlRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentUrlResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/upload/initiate": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "This method is the first step in uploading a document. This\nallocates a document id and version id, and returns the \npresigned url that the document should be uploaded to.\nIf another document with the same name exists, a new\nversion will be appended to it.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateDocumentVersionUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateDocumentVersionUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateDocumentVersionUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateDocumentVersionUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InitiateDocumentVersionUploadResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiateDocumentVersionUploadResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitiateDocumentVersionUploadResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "You cannot upload new versions to the trash folder",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "507": {
            "description": "Storage quota exceeded"
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/upload/complete": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "This method should be called after a document has been uploaded\nto activate it for use within the system",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentVersionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentVersionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentVersionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentVersionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentVersionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentVersionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentVersionResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "\nDocument does not exist or you do not have permissions to it or\n\nVersion does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Version has already been uploaded",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/upload/abort": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Call this method to cancel a document upload without completing\nit",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AbortDocumentVersionUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortDocumentVersionUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortDocumentVersionUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AbortDocumentVersionUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AbortDocumentVersionUploadResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbortDocumentVersionUploadResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AbortDocumentVersionUploadResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "\nDocument does not exist or you do not have permissions to it or\n\nVersion does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Version has already been uploaded",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/upload/multipart/initiate": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateMultiPartUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateMultiPartUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateMultiPartUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitiateMultiPartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/upload/part/initiate": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/InitializePartUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitializePartUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitializePartUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitializePartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/upload/part/complete": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePartUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePartUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePartUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/upload/multipart/complete": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMultiPartUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMultiPartUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMultiPartUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMultiPartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/upload/multipart/abort": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AbortMultiPartUploadRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortMultiPartUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AbortMultiPartUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AbortMultiPartUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/recycle": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Sends a document to the trash folder",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/recycle-all": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Sends all documents and folder in a parent folder to the trash",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/recycle-resources": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Sends selected documents and folder in a parent folder to the trash",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleResourcesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleResourcesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleResourcesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleResourcesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/restore": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Restores a document from the trash folder to its original location",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreDocumentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreDocumentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreDocumentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreDocumentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreDocumentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreDocumentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreDocumentResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/get-recursive-resource-counts": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns the total count of folders and files for the selected resources.\nThis API internally calls a stored procedure to efficiently calculate \nfile and folder counts in a single call, including nested folders.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCountRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCountRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCountRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCountRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCountResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCountResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResourceCountResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid\n\nNo user id found in authentication token\n\nNo roles found in authentication token\n\nNo organization id found in authentication token\n\nOrganization does not exist\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/folder": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns detailed information about a folder",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/path": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns information about the folder's location in the\nfolder hierarchy. Note that if this is a shared folder,\nany folders above it that have not been shared will not\nbe in the results.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderPathRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderPathRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderPathRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFolderPathRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderPathResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderPathResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFolderPathResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/contents": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns the list of folders and documents within a folder",
        "description": "Supply an empty request or resourceId to return the contents of the current user's root folder",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/FolderContentsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderContentsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FolderContentsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FolderContentsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/FolderContentsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderContentsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/FolderContentsResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/create": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Creates a new folder. Will not return an error if a folder \nwith the same name already exists",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFolderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFolderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFolderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateFolderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateFolderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateFolderResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "A document with that name already exists",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/recycle": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Send a folder to the user's trash folder",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleFolderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleFolderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleFolderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RecycleFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleFolderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleFolderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RecycleFolderResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "System folders may not be recycled",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/restore": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Moves a folder from the trash folder to it's original location",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreFolderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreFolderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreFolderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreFolderResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreFolderResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RestoreFolderResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "System folders may not be restored",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/delete": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Permanently deletes a list of folders and/or documents from the trash.\nAt the end of this operation the resources are gone forever.\nThe items must be in the trash folder before they can be deleted.\nAttempting to delete a resource that doesn't exist does not\nreturn an error due to the nature of deletes being done in\nparallel",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourcesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourcesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourcesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourcesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourcesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourcesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourcesResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "System folders may not be deleted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/delete-all-recycled": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Permanently deletes all folders and/or documents from the trash.\nAt the end of this operation the resources are gone forever.\nThe items must be in the trash folder before they can be deleted.\nAttempting to delete a resource that doesn't exist does not\nreturn an error due to the nature of deletes being done in\nparallel",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAllRecycledResourcesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAllRecycledResourcesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAllRecycledResourcesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAllRecycledResourcesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAllRecycledResourcesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAllRecycledResourcesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteAllRecycledResourcesResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "System folders may not be deleted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/shared-with-me": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns the list of folders that are shared with the current user",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetSharedWithMeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSharedWithMeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetSharedWithMeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetSharedWithMeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetSharedWithMeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSharedWithMeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetSharedWithMeResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "You must specify 'Folder' for the resource type",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/requested-from-me": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Returns the list of document sets that are requested from the current user",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetRequestedFromMeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRequestedFromMeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRequestedFromMeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetRequestedFromMeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetRequestedFromMeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRequestedFromMeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetRequestedFromMeResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "You must specify 'Folder' for the resource type",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/list-original-copy-requested": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOriginalCopyRequestedListRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOriginalCopyRequestedListRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOriginalCopyRequestedListRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOriginalCopyRequestedListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/list-rescan-requested": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetRescanRequestedListRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRescanRequestedListRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetRescanRequestedListRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetRescanRequestedListRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/documents/batch-update-index-status": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateDocumentLevelIndexStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateDocumentLevelIndexStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateDocumentLevelIndexStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BatchUpdateDocumentLevelIndexStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateIndexStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/folders/register": {
      "post": {
        "tags": [
          "Documents"
        ],
        "summary": "Registers a callback REST endpoint which is called when\na new file is uploaded to the folder.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterResourceWatchRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterResourceWatchRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterResourceWatchRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterResourceWatchRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterFolderWatchResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterFolderWatchResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RegisterFolderWatchResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Folder does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/queue-resource-operations": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/QueueResourceOperationsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QueueResourceOperationsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QueueResourceOperationsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QueueResourceOperationsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QueueResourceOperationsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueResourceOperationsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QueueResourceOperationsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/get-operations-status": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperationsStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperationsStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperationsStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOperationsStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetOperationsStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOperationsStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOperationsStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/cancel-resource-operation": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelResourceOperationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelResourceOperationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CancelResourceOperationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CancelResourceOperationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CancelResourceOperationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelResourceOperationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelResourceOperationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/get-first-n-resources": {
      "post": {
        "tags": [
          "Documents"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFirstNResourcesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFirstNResourcesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetFirstNResourcesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetFirstNResourcesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetFirstNResourcesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFirstNResourcesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetFirstNResourcesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/configurations": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Returns the list of document set configurations for the organization.",
        "description": "Provide an empty request to return the list of current organizations document set configurations",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/add-configuration": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Add a new document set configuration",
        "description": "Provide a request with the name and settings of the new document set configuration to be added",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetConfigurationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetConfigurationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document set configuration provided",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Provided document set configuration name already exists in the organization",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/update-configuration": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Update an existing document set configuration",
        "description": "Provide request with the id and full set of settings of the document set configuration to be updated",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentSetConfigurationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentSetConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentSetConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentSetConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentSetConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentSetConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentSetConfigurationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document set configuration id to be updated was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/remove-configuration": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Remove an existing document set configuration",
        "description": "Provide request with the id of the document set configuration to be removed",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentSetConfigurationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentSetConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentSetConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentSetConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentSetConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentSetConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentSetConfigurationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document set configuration id to be removed was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/get-configuration-version": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Get document set configuration version details",
        "description": "Provide request with the document set configuration version Id to be found",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationVersionResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document set configuration was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/get-configuration": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Get document set configuration details",
        "description": "Provide request with the document set configuration Id to be found",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentSetConfigurationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentSetConfigurationResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document set configuration was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/add-request": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Add a new document set request",
        "description": "Provide a request of the new document set request to be added",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentSetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document set configuration provided",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-set/approve-or-reject": {
      "post": {
        "tags": [
          "DocumentSet"
        ],
        "summary": "Approve or Reject a document set request",
        "description": "Provide a request of the approve or reject a document set request",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveRejectDocumentSetRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveRejectDocumentSetRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveRejectDocumentSetRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveRejectDocumentSetRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveRejectDocumentSetResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveRejectDocumentSetResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApproveRejectDocumentSetResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document set configuration provided",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type/all": {
      "post": {
        "tags": [
          "DocumentType"
        ],
        "summary": "Returns the list of document types for the organization.",
        "description": "Provide an empty request to return the list of current organizations document types",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypesRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypesRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypesRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypesResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypesResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypesResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type/details": {
      "post": {
        "tags": [
          "DocumentType"
        ],
        "summary": "Returns the document type for the organization.",
        "description": "Provide a request with documentTypeId to return the organization's document type",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type/add": {
      "post": {
        "tags": [
          "DocumentType"
        ],
        "summary": "Add a new document type",
        "description": "Provide a request with the name of the new document type to be added",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document type name",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Provided document type name already exists in the organization",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type/update": {
      "post": {
        "tags": [
          "DocumentType"
        ],
        "summary": "Update the name of existing document type",
        "description": "Provide request with the id of the document type to be updated and the new value of the document type's name",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateDocumentTypeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document type name",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document type id to be updated was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Another Document type with the same name exists in the organization",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type/remove": {
      "post": {
        "tags": [
          "DocumentType"
        ],
        "summary": "Remove an existing document type",
        "description": "Provide request with the id of the document type to be removed",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Document type id to be removed was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Cannot remove document type that is in use currently"
          }
        }
      }
    },
    "/admin/subscription-owner": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionOwnerRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionOwnerRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionOwnerRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionOwnerRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/update-subscription": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubscriptionRequestByAdmin"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubscriptionRequestByAdmin"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubscriptionRequestByAdmin"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSubscriptionRequestByAdmin"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/subscription-details": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionDetailsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionDetailsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionDetailsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubscriptionDetailsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/update-textract-type": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationTextractTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationTextractTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationTextractTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateOrganizationTextractTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/data-extraction-stats": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataExtractionStatisticsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataExtractionStatisticsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataExtractionStatisticsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDataExtractionStatisticsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/admin/notify-trial-request": {
      "post": {
        "tags": [
          "DocushareAdmin"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/TrailNotificationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrailNotificationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrailNotificationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrailNotificationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/download": {
      "get": {
        "tags": [
          "Download"
        ],
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "dateTimeOffset",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/register": {
      "post": {
        "tags": [
          "DynamicClientRegistration"
        ],
        "summary": "Register a new OAuth client dynamically per RFC 7591",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ClientRegistrationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientRegistrationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ClientRegistrationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ClientRegistrationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/metadata-field/all": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Returns the list of metadata fields for the organization.",
        "description": "Provide an empty request to return the list of current organization's metadata fields",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/metadata-field/details": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Returns the metadata field for the organization.",
        "description": "Provide a request with metaDataFieldId to return the organization's metadata field",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetaDataFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetaDataFieldResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/metadata-field/add": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Add a new metadata field",
        "description": "Provide a request with the name of the new metadata field to be added",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddMetaDataFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMetaDataFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddMetaDataFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddMetaDataFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddMetaDataFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddMetaDataFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddMetaDataFieldResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid metadata field name",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Provided metadata field already exists in the organization",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/metadata-field/update": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Update the name of existing metadata field",
        "description": "Provide request with the id of the metadata field to be updated and the new value of the metadata field's name,description and type",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMetaDataFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMetaDataFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMetaDataFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMetaDataFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateMetaDataFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateMetaDataFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateMetaDataFieldResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid metadata field name",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Metadata field id to be updated was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Meta Data Field with same name already exists for this organization",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/metadata-field/remove": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Remove an existing metadata field",
        "description": "Provide request with the id of the metadata field to be removed",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveMetaDataFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveMetaDataFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveMetaDataFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveMetaDataFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveMetaDataFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveMetaDataFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveMetaDataFieldResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Cannot remove or update actively used MetaData field"
          }
        }
      }
    },
    "/document-type-field/all": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Returns the list of metadata fields associated with document type.",
        "description": "Provide request with the document type id",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetDocumentTypeFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetDocumentTypeFieldsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type-field/add": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Associate a meta data field with document type",
        "description": "Provide a request with MetaDataFieldIds and DocumentTypeId to associate",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddDocumentTypeFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddDocumentTypeFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid document type field association",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/document-type-field/remove": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Disassociate of meta data field from document type.",
        "description": "Provide a request with MetaDataFieldId and DocumentTypeId to disassociate",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RemoveDocumentTypeFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemoveDocumentTypeFieldResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Metadata field id to be removed was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Cannot disassociate actively used MetaData field"
          }
        }
      }
    },
    "/document-type-field/selected-metadata": {
      "post": {
        "tags": [
          "MetaDataField"
        ],
        "summary": "Returns the list of metadata fields associated with list document types.",
        "description": "Provide request with the document type id",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllDocumentTypeFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllDocumentTypeFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllDocumentTypeFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetAllDocumentTypeFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllDocumentTypeFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllDocumentTypeFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetAllDocumentTypeFieldsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/authorize": {
      "get": {
        "tags": [
          "OAuthAuthorization"
        ],
        "summary": "Generates an authorization URL with PKCE parameters for MCP client authentication.\nReturns the authorization URL, code_challenge, and state. The PKCE code_verifier is a\nserver-side secret and is deliberately NOT returned (see Bug 83004 / Wiz 59ae72ba).",
        "description": "Per RFC 7636 the client SHOULD generate its own code_verifier and pass the derived\ncode_challenge here; the server then embeds that challenge in the URL and the client uses\nits own verifier at token exchange. If no challenge is supplied, the server generates the\nPKCE pair but still never returns the verifier (legacy/degenerate path).",
        "parameters": [
          {
            "name": "code_challenge",
            "in": "query",
            "description": "Client-generated PKCE code_challenge (recommended).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "description": "PKCE method for the supplied challenge (defaults to S256).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scopes",
            "in": "query",
            "description": "Optional array of scopes to request (defaults to configured scopes)",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/token": {
      "post": {
        "tags": [
          "OAuthAuthorization"
        ],
        "summary": "OAuth 2.1 Token endpoint supporting both form-urlencoded (per spec) and JSON requests.\nExchanges authorization codes (from our sign-in proxy) for access tokens.\nSupports grant_type=authorization_code with PKCE and grant_type=refresh_token.",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "grant_type": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  },
                  "redirect_uri": {
                    "type": "string"
                  },
                  "code_verifier": {
                    "type": "string"
                  },
                  "client_id": {
                    "type": "string"
                  },
                  "refresh_token": {
                    "type": "string"
                  }
                }
              },
              "encoding": {
                "grant_type": {
                  "style": "form"
                },
                "code": {
                  "style": "form"
                },
                "redirect_uri": {
                  "style": "form"
                },
                "code_verifier": {
                  "style": "form"
                },
                "client_id": {
                  "style": "form"
                },
                "refresh_token": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/refresh": {
      "post": {
        "tags": [
          "OAuthAuthorization"
        ],
        "summary": "Refreshes access token using refresh token.\nAllows MCP clients to maintain authentication without re-prompting user.",
        "requestBody": {
          "description": "Refresh token request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/revoke": {
      "post": {
        "tags": [
          "OAuthAuthorization"
        ],
        "summary": "Revokes access or refresh token for logout.\nInvalidates the token at the authorization server and clears the local token cache.",
        "requestBody": {
          "description": "Token revocation request",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenRevocationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/register/{clientId}": {
      "get": {
        "tags": [
          "OAuthAuthorization"
        ],
        "summary": "Retrieve configuration for a registered client (RFC 7591 Section 4)",
        "parameters": [
          {
            "name": "clientId",
            "in": "path",
            "description": "The client identifier",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientRegistrationResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/oauth-protected-resource": {
      "get": {
        "tags": [
          "OAuthProtectedResourceMetadata"
        ],
        "summary": "Returns Protected Resource Metadata per RFC 9728 for root path.\nPer RFC 9728, resource field must match the URL from which metadata was retrieved.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/mcp/.well-known/oauth-protected-resource": {
      "get": {
        "tags": [
          "OAuthProtectedResourceMetadata"
        ],
        "summary": "Returns Protected Resource Metadata per RFC 9728 for /mcp path.\nPer RFC 9728, resource field must match the URL from which metadata was retrieved.",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/.well-known/oauth-authorization-server": {
      "get": {
        "tags": [
          "OAuthProtectedResourceMetadata"
        ],
        "summary": "Returns Authorization Server Metadata per RFC 8414.\nThis allows clients (like VS Code) to discover DCR endpoint and other capabilities.\nAccessible at both /.well-known/oauth-authorization-server and /mcp/.well-known/oauth-authorization-server",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/mcp/.well-known/oauth-authorization-server": {
      "get": {
        "tags": [
          "OAuthProtectedResourceMetadata"
        ],
        "summary": "Returns Authorization Server Metadata per RFC 8414.\nThis allows clients (like VS Code) to discover DCR endpoint and other capabilities.\nAccessible at both /.well-known/oauth-authorization-server and /mcp/.well-known/oauth-authorization-server",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/oauth/sign-in/authorize": {
      "get": {
        "tags": [
          "OAuthSignInProxy"
        ],
        "summary": "OAuth 2.1 authorization endpoint proxy that redirects to DocuShare Go sign-in.",
        "description": "This endpoint acts as a proxy for the OAuth authorization flow, storing the pending\nrequest and redirecting users to the DocuShare Go sign-in page.\n\nThe redirect URL includes the mcp_auth_request_id parameter to correlate the callback.",
        "parameters": [
          {
            "name": "client_id",
            "in": "query",
            "description": "The client identifier issued to the client during registration.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "redirect_uri",
            "in": "query",
            "description": "The URI to redirect to after authorization. Must be in the allowed list.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "response_type",
            "in": "query",
            "description": "The response type, must be \"code\" for authorization code flow.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scope",
            "in": "query",
            "description": "The scope of the access request (e.g., \"openid\").",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "An opaque value used to maintain state between request and callback (CSRF protection).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code_challenge",
            "in": "query",
            "description": "The PKCE code challenge derived from the code verifier.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code_challenge_method",
            "in": "query",
            "description": "The PKCE code challenge method (should be \"S256\").",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirects to DocuShare Go sign-in page with OAuth parameters."
          },
          "400": {
            "description": "Bad request if parameters are invalid or redirect_uri is not allowed.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden if the DocuShare Sign-In feature is disabled.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/sign-in/callback": {
      "get": {
        "tags": [
          "OAuthSignInProxy"
        ],
        "summary": "OAuth callback endpoint that receives the ID token after successful DocuShare Go sign-in.\nGenerates an authorization code and redirects to the MCP client's callback URL.",
        "parameters": [
          {
            "name": "mcp_auth_request_id",
            "in": "query",
            "description": "The pending authorization request ID.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id_token",
            "in": "query",
            "description": "The Cognito ID token from successful authentication.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "302": {
            "description": "Redirects to MCP client callback with authorization code."
          },
          "400": {
            "description": "Bad request if parameters are missing or invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/sign-in/status": {
      "get": {
        "tags": [
          "OAuthSignInProxy"
        ],
        "summary": "Health check endpoint to verify the OAuth sign-in proxy is operational.",
        "responses": {
          "200": {
            "description": "Returns the status of the service.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OAuthSignInProxyStatus"
                }
              }
            }
          }
        }
      }
    },
    "/oauth/sign-in/debug": {
      "get": {
        "tags": [
          "OAuthSignInProxy"
        ],
        "summary": "Debug endpoint that shows the OAuth flow step by step.\nServed only in the Development environment; returns 404 in every other environment\n(test, prod, etc.) regardless of the OAuth:UseDocuShareSignIn flag. In Development it\nadditionally requires the flag.",
        "responses": {
          "200": {
            "description": "Returns the debug page (Development environment only)."
          },
          "403": {
            "description": "The debug page is reachable but OAuth:UseDocuShareSignIn is false."
          },
          "404": {
            "description": "The endpoint is not served outside the Development environment."
          }
        }
      }
    },
    "/organizations/provision/new": {
      "post": {
        "tags": [
          "Organizations"
        ],
        "summary": "Provisioning a new organization",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionNewOrganizationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionNewOrganizationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionNewOrganizationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionNewOrganizationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionNewOrganizationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionNewOrganizationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionNewOrganizationResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/organizations/activate": {
      "post": {
        "tags": [
          "Organizations"
        ],
        "summary": "activating an organization",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionTenantRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionTenantRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionTenantRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionTenantRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionTenantResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionTenantResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionTenantResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/organizations/status": {
      "post": {
        "tags": [
          "Organizations"
        ],
        "summary": "Returns the status of organization",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetProvisioningStatusRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProvisioningStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetProvisioningStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetProvisioningStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetProvisioningStatusResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProvisioningStatusResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetProvisioningStatusResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/organizations/organization-details": {
      "post": {
        "tags": [
          "Organizations"
        ],
        "summary": "Returns the details of the organization",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOrganizationRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOrganizationRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetOrganizationRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetOrganizationRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrganizationResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrganizationResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetOrganizationResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/resource-comments/add": {
      "post": {
        "tags": [
          "ResourceComments"
        ],
        "summary": "Add a new resource comment",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/AddResourceCommentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddResourceCommentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddResourceCommentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddResourceCommentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddResourceCommentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddResourceCommentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddResourceCommentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/resource-comments/delete": {
      "post": {
        "tags": [
          "ResourceComments"
        ],
        "summary": "Delete resource comment",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourceCommentRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourceCommentRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourceCommentRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteResourceCommentRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourceCommentResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourceCommentResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteResourceCommentResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/resource-comments": {
      "post": {
        "tags": [
          "ResourceComments"
        ],
        "summary": "View all active comments for resource",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCommentsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCommentsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCommentsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceCommentsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceCommentsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceCommentsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceCommentsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/resource-document-type": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Returns the document type associated with a resource.",
        "description": "Provide a request with resource id to return the document type associated with a resource",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceDocumentTypeResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Resource was not found"
          }
        }
      }
    },
    "/resource-document-type/set": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Set document type for a resource",
        "description": "Provide request with document type id and resource id to associate.\n            If no document type id is provided, document type of the resource is set to null",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceDocumentTypeRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceDocumentTypeRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceDocumentTypeRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceDocumentTypeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceDocumentTypeResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceDocumentTypeResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceDocumentTypeResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid resource metadata field name",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/resource-metadata-field/all": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Returns the list of meta data fields set on the resource.",
        "description": "Provide resuest with resource id to return the list of meta data fields set on that resource",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceMetaDataFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceMetaDataFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceMetaDataFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetResourceMetaDataFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceMetaDataFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceMetaDataFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetResourceMetaDataFieldsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/resource-metadata-field/set": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Set resource metadata fields",
        "description": "Provide a request with the list of resource metadata field to be added/updated",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceMetaDataFieldsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceMetaDataFieldsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceMetaDataFieldsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SetResourceMetaDataFieldsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceMetaDataFieldsResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceMetaDataFieldsResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SetResourceMetaDataFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid resource metadata field",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "User does not have the appropriate access",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Resource,Document type or meta data field was not found"
          }
        }
      }
    },
    "/resource-metadata-field/evaluate": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Evaluate resource metadata field value based on condition",
        "description": "Provide a request with resource Id, metadata field Id and condition to be evaluated",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EvaluateResourceMetaDataFieldResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request format",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Resource or resource meta data field was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/documents/metadata/get-field-value": {
      "post": {
        "tags": [
          "ResourceMetaData"
        ],
        "summary": "Returns the value of a metadata field for a given document.",
        "description": "Provide a request with document id, metadata field id, and whether it is a built-in field to retrieve the field value",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetadataFieldValueRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetadataFieldValueRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetadataFieldValueRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMetadataFieldValueRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetadataFieldValueResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetadataFieldValueResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMetadataFieldValueResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Resource was not found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/share/collection": {
      "post": {
        "tags": [
          "Share"
        ],
        "summary": "Returns members of a collection",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMembersOfCollectionRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMembersOfCollectionRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetMembersOfCollectionRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetMembersOfCollectionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetMembersOfCollectionResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMembersOfCollectionResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetMembersOfCollectionResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Collection does not exist or you do not have permissions to it",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/users/resend-verification-link": {
      "post": {
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ResendVerificationLinkRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendVerificationLinkRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResendVerificationLinkRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResendVerificationLinkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResendVerificationLinkResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResendVerificationLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResendVerificationLinkResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/users/forgot-password": {
      "post": {
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ForgotPasswordResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForgotPasswordResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForgotPasswordResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/users/confirm-forgot-password": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Bug 89320. Completes a password reset from the e-mailed code. Anonymous because the caller cannot\nsign in yet; the code is the proof. An unknown address, a wrong code and an expired code are all\nthe same 400, so the route cannot be used to find out which addresses have an account.",
        "description": "The code is a short Cognito verification code, so guessing is limited where the code is issued:\nCognito counts failed confirmations per user and refuses further attempts (LimitExceeded /\nTooManyFailedAttempts, answered here with the same 400). There is no per-route throttle, as on the\nsibling pre-sign-in routes; an edge rate rule is the place for one.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmForgotPasswordRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmForgotPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmForgotPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ConfirmForgotPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ConfirmForgotPasswordResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfirmForgotPasswordResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfirmForgotPasswordResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/users/check-if-cognito-user-is-created": {
      "post": {
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckIfCognitoUserIsCreatedResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/users/resolve-sign-in-username": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Bug 88785. Tells the browser which casing of an e-mail address Cognito accepts as a sign-in\nusername, once the password in the body verifies against it. Anonymous because it runs\nbefore sign-in; the password is the proof. Every refusal (unknown address, wrong password)\nis the same 200 with no username - never a 401, which the web client's auth interceptor\ntreats as an expired session.",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveSignInUsernameRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveSignInUsernameRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveSignInUsernameRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResolveSignInUsernameRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResolveSignInUsernameResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolveSignInUsernameResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResolveSignInUsernameResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    },
    "/users/current": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Returns information about the current user. Note that this\nshould not be used to retrieve information about another user.\nThe current user is determined by the authentiation token\nthat is presented with the request",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCurrentUserRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCurrentUserRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetCurrentUserRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetCurrentUserRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit"
          }
        }
      }
    },
    "/users/accountsettings": {
      "post": {
        "tags": [
          "Users"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserAccountSettingsRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserAccountSettingsRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserAccountSettingsRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserAccountSettingsRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCurrentUserResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/users/dashboard": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Returns the layout and configuration for a user's \ndashboard (home page)",
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserDashboardRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserDashboardRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserDashboardRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetUserDashboardRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserDashboardResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserDashboardResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetUserDashboardResponse"
                }
              }
            }
          },
          "401": {
            "description": "\nBearer token not found or not valid or\n\nNo user id found in authentication token or\n\nNo roles found in authentication token or\n\nNo organization id found in authentication token or\n\nOrganization does not exist or\n\nUser does not exist",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Subscription has reached/exceeded concurrent user limit",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "424": {
            "description": "Subscription has expired"
          }
        }
      }
    },
    "/workflow/upload-signature-initiate": {
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSignatureInitiateRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSignatureInitiateRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSignatureInitiateRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UploadSignatureInitiateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UploadSignatureInitiateResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadSignatureInitiateResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadSignatureInitiateResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "507": {
            "description": "Insufficient Storage"
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/workflow/update-folder-name-in-tags": {
      "post": {
        "tags": [
          "Workflow"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/RenameFolderRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameFolderRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameFolderRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RenameFolderRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/RenameFolderRequest"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameFolderRequest"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/RenameFolderRequest"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "507": {
            "description": "Insufficient Storage"
          },
          "424": {
            "description": "Failed Dependency",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AbortDocumentVersionUploadRequest": {
        "required": [
          "documentId",
          "versionId"
        ],
        "type": "object",
        "properties": {
          "documentId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to cancel"
          },
          "versionId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the version to cancel"
          },
          "scanId": {
            "type": "string",
            "description": "The scan whose verdict caused this upload to be abandoned, when one did (Bug 86509).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Cancels a document upload"
      },
      "AbortDocumentVersionUploadResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a document upload has been cancelled"
      },
      "AbortMultiPartUploadRequest": {
        "required": [
          "documentId",
          "uploadId",
          "versionId"
        ],
        "type": "object",
        "properties": {
          "uploadId": {
            "minLength": 1,
            "type": "string"
          },
          "documentId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to cancel"
          },
          "versionId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the version to cancel"
          },
          "scanId": {
            "type": "string",
            "description": "The scan whose verdict caused this upload to be abandoned, when one did (Bug 86509).",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28,
          29,
          30,
          31,
          32,
          33,
          34,
          35,
          36,
          37,
          38,
          39,
          40,
          41,
          42,
          43,
          44,
          45,
          46,
          47,
          48,
          49,
          50,
          51,
          52,
          53,
          54,
          55,
          56,
          57,
          58,
          59,
          60,
          61,
          62,
          63,
          64,
          65,
          66,
          67,
          68,
          69,
          70,
          71,
          72,
          73,
          74,
          75,
          76,
          77,
          78,
          79,
          80,
          81,
          82,
          83,
          84,
          85,
          86,
          87,
          88,
          89,
          90
        ],
        "type": "integer",
        "description": "\n\n0 = DOCUMENT_ANNOTATION_ADDED\n\n1 = DOCUMENT_ANNOTATION_DELETED\n\n2 = DOCUMENT_CHECKED_IN\n\n3 = DOCUMENT_CHECKED_OUT\n\n4 = DOCUMENT_COMMENT_ADDED\n\n5 = DOCUMENT_COMMENT_DELETED\n\n6 = DOCUMENT_DELETED\n\n7 = DOCUMENT_METADATA_UPDATED\n\n8 = DOCUMENT_MOVED\n\n9 = DOCUMENT_RECYCLED\n\n10 = DOCUMENT_RENAMED\n\n11 = DOCUMENT_RESTORED\n\n12 = DOCUMENT_REVERTED\n\n13 = DOCUMENT_SHAREABLE_LINK_CREATED\n\n14 = DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED\n\n15 = DOCUMENT_SHAREABLE_LINK_REMOVED\n\n16 = DOCUMENT_SHARED\n\n17 = DOCUMENT_SHARE_PERMISSION_CHANGED\n\n18 = DOCUMENT_UNSHARED\n\n19 = DOCUMENT_VERSION_DOWNLOADED\n\n20 = DOCUMENT_VERSION_UPLOADED\n\n21 = DOCUMENT_VERSION_VIEWED\n\n22 = FOLDER_CREATED\n\n23 = FOLDER_DELETED\n\n24 = FOLDER_METADATA_UPDATED\n\n25 = FOLDER_MOVED\n\n26 = FOLDER_RECYCLED\n\n27 = FOLDER_RENAMED\n\n28 = FOLDER_RESTORED\n\n29 = FOLDER_SHAREABLE_LINK_CREATED\n\n30 = FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED\n\n31 = FOLDER_SHAREABLE_LINK_REMOVED\n\n32 = FOLDER_SHARED\n\n33 = FOLDER_SHARE_PERMISSION_CHANGED\n\n34 = FOLDER_UNSHARED\n\n35 = SHARE_EXPIRATIONDATE_CHANGED\n\n36 = DOCUMENT_EDITED\n\n37 = FOLDER_DOWNLOADED\n\n38 = DOCUMENT_NEW_VERSION_UPLOADED\n\n39 = FOLDER_UPLOADED\n\n40 = DOCUMENT_LOCKED\n\n41 = DOCUMENT_UNLOCKED\n\n42 = FOLDER_LOCKED\n\n43 = FOLDER_UNLOCKED\n\n44 = FOLDER_CHECKED_OUT\n\n45 = FOLDER_CHECKED_IN\n\n46 = DOCUMENT_EXPIRATIONDATE_CHANGED\n\n47 = DOCUMENT_COPIED\n\n48 = FOLDER_COPIED\n\n49 = DOCUMENT_CLASSIFIED\n\n50 = DOCUMENT_SIGNED\n\n51 = TASK_SIMPLE_APPROVAL_WORKFLOW_APPROVED\n\n52 = TASK_SIMPLE_APPROVAL_WORKFLOW_REJECTED\n\n53 = TASK_SIMPLE_APPROVAL_WORKFLOW_VIEWED\n\n54 = TASK_DOCUMENT_VIEWED_FOR_REVIEW\n\n55 = TASK_DOCUMENT_REVIEWED\n\n56 = DOCUMENT_CLASSIFIED_WITH_DATA_EXTRACTION\n\n57 = DOCUMENT_DATA_EXTRACTION\n\n58 = DOCUMENT_DATA_EXTRACTION_REQUESTED\n\n59 = DOCUMENT_SUMMARIZED\n\n60 = ORG_EXCEEDED_CONCURRENT_USERS\n\n61 = DIGITAL_MAIL_CREATED\n\n62 = DIGITAL_MAIL_MARKED_AS_READ\n\n63 = DIGITAL_MAIL_MARKED_AS_UNREAD\n\n64 = DIGITAL_MAIL_READ\n\n65 = DOCUMENT_PRINTED\n\n66 = DOCUMENT_ADVANCED_DATA_EXTRACTION\n\n67 = DOCUMENT_SET_NOT_SUBMITTED\n\n68 = DOCUMENT_SET_SUBMITTED\n\n69 = DOCUMENT_SET_APPROVED\n\n70 = DOCUMENT_SET_REJECTED\n\n71 = SEMANTIC_SEARCH_ENABLED\n\n72 = SEMANTIC_SEARCH_DISABLED\n\n73 = DOCUMENT_SEARCH_INDEX_ADDED\n\n74 = DOCUMENT_SEARCH_INDEX_DELETED\n\n75 = COLLECTION_SEARCH_INDEX_ADDED\n\n76 = COLLECTION_SEARCH_INDEX_DELETED\n\n77 = GUEST_LOGIN\n\n78 = GUEST_UPLOAD_REFUSED_SHARE_EXPIRED\n\n79 = GUEST_UPLOAD_REFUSED_SHARE_DELETED\n\n80 = GUEST_UPLOAD_REFUSED_SHARE_DOWNGRADED\n\n81 = GUEST_VERIFICATION_REFUSED_CODE_WRONG\n\n82 = GUEST_VERIFICATION_REFUSED_CODE_EXPIRED\n\n83 = GUEST_UPLOAD_REFUSED_MALWARE_DETECTED\n\n84 = GUEST_LOGIN_REFUSED_SHARE_EXPIRED\n\n85 = GUEST_LOGIN_REFUSED_SHARE_NOT_FOUND\n\n86 = SUPPORT_INVITATION_SENT\n\n87 = SUPPORT_INVITATION_REJECTED\n\n88 = SUPPORT_INVITATION_RESENT\n\n89 = SUPPORT_INVITATION_CANCELLED\n\n90 = SUPPORT_OWNERSHIP_TRANSFERRED",
        "format": "int32",
        "x-enumNames": [
          "DOCUMENT_ANNOTATION_ADDED",
          "DOCUMENT_ANNOTATION_DELETED",
          "DOCUMENT_CHECKED_IN",
          "DOCUMENT_CHECKED_OUT",
          "DOCUMENT_COMMENT_ADDED",
          "DOCUMENT_COMMENT_DELETED",
          "DOCUMENT_DELETED",
          "DOCUMENT_METADATA_UPDATED",
          "DOCUMENT_MOVED",
          "DOCUMENT_RECYCLED",
          "DOCUMENT_RENAMED",
          "DOCUMENT_RESTORED",
          "DOCUMENT_REVERTED",
          "DOCUMENT_SHAREABLE_LINK_CREATED",
          "DOCUMENT_SHAREABLE_LINK_PERMISSION_CHANGED",
          "DOCUMENT_SHAREABLE_LINK_REMOVED",
          "DOCUMENT_SHARED",
          "DOCUMENT_SHARE_PERMISSION_CHANGED",
          "DOCUMENT_UNSHARED",
          "DOCUMENT_VERSION_DOWNLOADED",
          "DOCUMENT_VERSION_UPLOADED",
          "DOCUMENT_VERSION_VIEWED",
          "FOLDER_CREATED",
          "FOLDER_DELETED",
          "FOLDER_METADATA_UPDATED",
          "FOLDER_MOVED",
          "FOLDER_RECYCLED",
          "FOLDER_RENAMED",
          "FOLDER_RESTORED",
          "FOLDER_SHAREABLE_LINK_CREATED",
          "FOLDER_SHAREABLE_LINK_PERMISSION_CHANGED",
          "FOLDER_SHAREABLE_LINK_REMOVED",
          "FOLDER_SHARED",
          "FOLDER_SHARE_PERMISSION_CHANGED",
          "FOLDER_UNSHARED",
          "SHARE_EXPIRATIONDATE_CHANGED",
          "DOCUMENT_EDITED",
          "FOLDER_DOWNLOADED",
          "DOCUMENT_NEW_VERSION_UPLOADED",
          "FOLDER_UPLOADED",
          "DOCUMENT_LOCKED",
          "DOCUMENT_UNLOCKED",
          "FOLDER_LOCKED",
          "FOLDER_UNLOCKED",
          "FOLDER_CHECKED_OUT",
          "FOLDER_CHECKED_IN",
          "DOCUMENT_EXPIRATIONDATE_CHANGED",
          "DOCUMENT_COPIED",
          "FOLDER_COPIED",
          "DOCUMENT_CLASSIFIED",
          "DOCUMENT_SIGNED",
          "TASK_SIMPLE_APPROVAL_WORKFLOW_APPROVED",
          "TASK_SIMPLE_APPROVAL_WORKFLOW_REJECTED",
          "TASK_SIMPLE_APPROVAL_WORKFLOW_VIEWED",
          "TASK_DOCUMENT_VIEWED_FOR_REVIEW",
          "TASK_DOCUMENT_REVIEWED",
          "DOCUMENT_CLASSIFIED_WITH_DATA_EXTRACTION",
          "DOCUMENT_DATA_EXTRACTION",
          "DOCUMENT_DATA_EXTRACTION_REQUESTED",
          "DOCUMENT_SUMMARIZED",
          "ORG_EXCEEDED_CONCURRENT_USERS",
          "DIGITAL_MAIL_CREATED",
          "DIGITAL_MAIL_MARKED_AS_READ",
          "DIGITAL_MAIL_MARKED_AS_UNREAD",
          "DIGITAL_MAIL_READ",
          "DOCUMENT_PRINTED",
          "DOCUMENT_ADVANCED_DATA_EXTRACTION",
          "DOCUMENT_SET_NOT_SUBMITTED",
          "DOCUMENT_SET_SUBMITTED",
          "DOCUMENT_SET_APPROVED",
          "DOCUMENT_SET_REJECTED",
          "SEMANTIC_SEARCH_ENABLED",
          "SEMANTIC_SEARCH_DISABLED",
          "DOCUMENT_SEARCH_INDEX_ADDED",
          "DOCUMENT_SEARCH_INDEX_DELETED",
          "COLLECTION_SEARCH_INDEX_ADDED",
          "COLLECTION_SEARCH_INDEX_DELETED",
          "GUEST_LOGIN",
          "GUEST_UPLOAD_REFUSED_SHARE_EXPIRED",
          "GUEST_UPLOAD_REFUSED_SHARE_DELETED",
          "GUEST_UPLOAD_REFUSED_SHARE_DOWNGRADED",
          "GUEST_VERIFICATION_REFUSED_CODE_WRONG",
          "GUEST_VERIFICATION_REFUSED_CODE_EXPIRED",
          "GUEST_UPLOAD_REFUSED_MALWARE_DETECTED",
          "GUEST_LOGIN_REFUSED_SHARE_EXPIRED",
          "GUEST_LOGIN_REFUSED_SHARE_NOT_FOUND",
          "SUPPORT_INVITATION_SENT",
          "SUPPORT_INVITATION_REJECTED",
          "SUPPORT_INVITATION_RESENT",
          "SUPPORT_INVITATION_CANCELLED",
          "SUPPORT_OWNERSHIP_TRANSFERRED"
        ],
        "x-enumDescriptions": [
          "An email-invited guest entered the product from a share link (PBI 85300).",
          "A guest's upload was refused because the share they hold had passed its expiration\ndate (PBI 85387, FR-19).",
          "A guest's upload was refused because the share they held had been deleted\n(PBI 85387, FR-19).",
          "A guest's upload was refused because their share had been downgraded to Viewer\n(PBI 85387, FR-19).",
          "A guest submitted a verification code that did not match the one they were sent\n(Bug 86529, PBI 85300 FR-31).",
          "A guest submitted a verification code that had passed its expiry (Bug 86529,\nPBI 85300 FR-31).",
          "A guest's upload was refused because the security scan found a threat in the file\n(Bug 86509, PBI 85387 FR-19).",
          "A guest opened an access link that was refused because their share on the linked\nfolder or document had passed its expiration date (Bug 86876, PBI 85300).",
          "A guest opened an access link that was refused because they hold no share on the linked\nfolder or document - it was deleted, or never existed (Bug 86876, PBI 85300).",
          "Support sent an invitation to this organization from the Admin tool (PBI 89969).",
          "A Support invitation to this organization was refused before anything was created\n(PBI 89969). The refusal reason is on the `SupportInvitationActivity` row.",
          "Support resent a pending invitation (PBI 89972). Appended last; never renumber.",
          "Support cancelled a pending invitation (PBI 89972). Appended last; never renumber.",
          "A Support-invited user accepted the invitation at the Owner role and became the\nsubscription owner; the previous owner was demoted to Admin (PBI 89970)."
        ]
      },
      "AddCabinetRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/CabinetStatus"
          },
          "cabinetTypeId": {
            "type": "string",
            "nullable": true
          },
          "documentTypeIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "fieldMappingIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddCabinetResponse": {
        "type": "object",
        "properties": {
          "cabinetId": {
            "type": "string",
            "description": "cabinet id of newly added instance",
            "nullable": true
          },
          "rootFolderId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns cabinet id after add operation"
      },
      "AddCollectionRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string",
            "description": "Name of the collection instance"
          },
          "theme": {
            "$ref": "#/components/schemas/ThemeType"
          },
          "icon": {
            "$ref": "#/components/schemas/CustomIconType"
          },
          "principals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SharePrincipal"
            },
            "description": "Share principals of collection instance",
            "nullable": true
          },
          "isDigitalMail": {
            "type": "boolean",
            "description": "Is this a digital mail folder"
          },
          "emailAddress": {
            "type": "string",
            "description": "Email address assigned to the digital mail collection",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department assigned to the digital mail collection",
            "nullable": true
          },
          "expirationPolicyEnabled": {
            "type": "boolean",
            "description": "Enable/Disable expiration policy for collection"
          },
          "expirationDays": {
            "type": "integer",
            "description": "Number of days after which resources in the collections are expired",
            "format": "int32"
          },
          "isIndexingCollection": {
            "type": "boolean",
            "description": "Enable/Disable indexing of collection"
          }
        },
        "additionalProperties": false,
        "description": "Collection information for add operation"
      },
      "AddCollectionResponse": {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "description": "Collection id of newly added instance",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns collection id after add operation"
      },
      "AddDocumentSetConfigurationRequest": {
        "required": [
          "configurationJson",
          "documentConfigurations",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "configurationJson": {
            "minLength": 1,
            "type": "string"
          },
          "documentConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentConfiguration"
            }
          }
        },
        "additionalProperties": false
      },
      "AddDocumentSetConfigurationResponse": {
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddDocumentSetRequest": {
        "required": [
          "parentFolderId",
          "recipient"
        ],
        "type": "object",
        "properties": {
          "parentFolderId": {
            "minLength": 1,
            "type": "string"
          },
          "recipient": {
            "minLength": 1,
            "type": "string"
          },
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          },
          "approvers": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddDocumentSetResponse": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          }
        },
        "additionalProperties": false
      },
      "AddDocumentTypeFieldsRequest": {
        "required": [
          "documentTypeId",
          "metaDataFieldIds"
        ],
        "type": "object",
        "properties": {
          "documentTypeId": {
            "minLength": 1,
            "type": "string"
          },
          "metaDataFieldIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "documentTypeMetadata": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddDocumentTypeMetadataRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddDocumentTypeFieldsResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "AddDocumentTypeMetadataRequest": {
        "type": "object",
        "properties": {
          "automationQuery": {
            "type": "string",
            "nullable": true
          },
          "automationRequired": {
            "type": "boolean"
          },
          "documentSetRequired": {
            "type": "boolean"
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "metadataFieldId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddDocumentTypeRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AddDocumentTypeResponse": {
        "type": "object",
        "properties": {
          "documentType": {
            "$ref": "#/components/schemas/DocumentType"
          }
        },
        "additionalProperties": false
      },
      "AddMetaDataFieldRequest": {
        "required": [
          "dataType",
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dataType": {
            "$ref": "#/components/schemas/MetaDataFieldDataTypes"
          }
        },
        "additionalProperties": false
      },
      "AddMetaDataFieldResponse": {
        "type": "object",
        "properties": {
          "metaDataField": {
            "$ref": "#/components/schemas/MetaDataField"
          }
        },
        "additionalProperties": false
      },
      "AddResourceCommentRequest": {
        "required": [
          "comment",
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "resourceCommentUserTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceCommentUserTag"
            },
            "nullable": true
          },
          "comment": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AddResourceCommentResponse": {
        "type": "object",
        "properties": {
          "resourceCommentId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApproveRejectDocumentSetRequest": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean"
          },
          "comments": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ApproveRejectDocumentSetResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "BatchOperationStatusEntry": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "successfulResourcesList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "failedResourcesList": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "resourcesList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceInfo"
            },
            "nullable": true
          },
          "sourceFolderId": {
            "type": "string",
            "nullable": true
          },
          "destinationFolderId": {
            "type": "string",
            "nullable": true
          },
          "sourceFolderName": {
            "type": "string",
            "nullable": true
          },
          "destinationFolderName": {
            "type": "string",
            "nullable": true
          },
          "collectionName": {
            "type": "string",
            "nullable": true
          },
          "totalResourcesProcessed": {
            "type": "integer",
            "format": "int32"
          },
          "totalResources": {
            "type": "integer",
            "format": "int32"
          },
          "handleResourceOperationRequestType": {
            "$ref": "#/components/schemas/HandleResourceOperationRequestType"
          },
          "inProgress": {
            "type": "boolean"
          },
          "failed": {
            "type": "boolean"
          },
          "isSuccessful": {
            "type": "boolean"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isCancelled": {
            "type": "boolean"
          },
          "statusText": {
            "type": "string",
            "nullable": true
          },
          "lastBatchNumber": {
            "type": "integer",
            "format": "int32"
          },
          "totalBatchesToProcess": {
            "type": "integer",
            "format": "int32"
          },
          "lastOperationModifiedTimeStamp": {
            "type": "string",
            "format": "date-time"
          },
          "lastOperationCreatedTimeStamp": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "BatchUpdateDocumentLevelIndexStatusRequest": {
        "type": "object",
        "properties": {
          "batchRequest": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateDocumentLevelIndexStatusRequest"
            },
            "nullable": true
          },
          "isCollectionIndexing": {
            "type": "boolean",
            "description": "Retained for wire compatibility with clients that still send it; the server no longer reads\nit. Bug 85273: whether the resource's collection is indexed is resolved from the data, because\nthe file list hard-codes this to `false` and gating on it left the collection-aware branch\nunreachable. Do not re-introduce a dependency on it."
          }
        },
        "additionalProperties": false
      },
      "BatchUpdateIndexStatusRequest": {
        "type": "object",
        "properties": {
          "batchRequest": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UpdateIndexStatusRequest"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingInterval": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = Monthly\n\n1 = Annually",
        "format": "int32",
        "x-enumNames": [
          "Monthly",
          "Annually"
        ]
      },
      "Cabinet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "rootFolderId": {
            "type": "string",
            "nullable": true
          },
          "recycleFolderId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CabinetStatus"
          },
          "documentTypeIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "fieldMappingIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isIndexed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CabinetStatus": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = NOT_SPECIFIED\n\n1 = Active\n\n2 = Deleted",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "Active",
          "Deleted"
        ]
      },
      "CancelResourceOperationRequest": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CancelResourceOperationResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "isCancelRequestSubmitted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CheckIfCognitoUserIsCreatedRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CheckIfCognitoUserIsCreatedResponse": {
        "type": "object",
        "properties": {
          "userCreated": {
            "type": "boolean",
            "description": "Always false."
          },
          "canonicalEmailAddress": {
            "type": "string",
            "description": "Always null.",
            "nullable": true
          },
          "signInUsername": {
            "type": "string",
            "description": "Always null.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Reply of the anonymous `/users/check-if-cognito-user-is-created` route. Since bug 88785 it is\nthe same for every address: nothing is created and nothing is disclosed."
      },
      "ClientRegistrationRequest": {
        "type": "object",
        "properties": {
          "redirect_uris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of redirect URIs for the client.\nRequired for authorization code flow.",
            "nullable": true
          },
          "client_name": {
            "type": "string",
            "description": "Client name (human-readable).",
            "nullable": true
          },
          "client_uri": {
            "type": "string",
            "description": "Client URI (homepage).",
            "nullable": true
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "description": "Token endpoint authentication method.\nFor public clients (MCP), use \"none\".",
            "nullable": true
          },
          "grant_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of OAuth 2.0 grant types.",
            "nullable": true
          },
          "response_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of OAuth 2.0 response types.",
            "nullable": true
          },
          "scope": {
            "description": "Array of OAuth 2.0 scope values.\nRFC 7591 allows this to be a space-separated string or array.",
            "nullable": true
          },
          "logo_uri": {
            "type": "string",
            "description": "Logo URI for the client.",
            "nullable": true
          },
          "policy_uri": {
            "type": "string",
            "description": "Policy URI for the client.",
            "nullable": true
          },
          "tos_uri": {
            "type": "string",
            "description": "Terms of service URI for the client.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "OAuth 2.0 Dynamic Client Registration request (RFC 7591 Section 2)."
      },
      "ClientRegistrationResponse": {
        "type": "object",
        "properties": {
          "client_id": {
            "type": "string",
            "description": "Unique client identifier (assigned by authorization server).",
            "nullable": true
          },
          "client_secret": {
            "type": "string",
            "description": "Client secret (only for confidential clients, omit for public clients).",
            "nullable": true
          },
          "client_id_issued_at": {
            "type": "integer",
            "description": "Time at which the client identifier was issued (Unix timestamp).",
            "format": "int64"
          },
          "client_secret_expires_at": {
            "type": "integer",
            "description": "Time at which the client secret expires (Unix timestamp), or 0 if it doesn't expire.",
            "format": "int64",
            "nullable": true
          },
          "redirect_uris": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of redirect URIs registered for the client.",
            "nullable": true
          },
          "client_name": {
            "type": "string",
            "description": "Client name.",
            "nullable": true
          },
          "client_uri": {
            "type": "string",
            "description": "Client URI.",
            "nullable": true
          },
          "token_endpoint_auth_method": {
            "type": "string",
            "description": "Token endpoint authentication method.",
            "nullable": true
          },
          "grant_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of OAuth 2.0 grant types.",
            "nullable": true
          },
          "response_types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Array of OAuth 2.0 response types.",
            "nullable": true
          },
          "scope": {
            "type": "string",
            "description": "Space-separated list of OAuth 2.0 scope values.",
            "nullable": true
          },
          "logo_uri": {
            "type": "string",
            "description": "Logo URI.",
            "nullable": true
          },
          "policy_uri": {
            "type": "string",
            "description": "Policy URI.",
            "nullable": true
          },
          "tosUri": {
            "type": "string",
            "description": "Terms of service URI.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "OAuth 2.0 Dynamic Client Registration response (RFC 7591 Section 3)."
      },
      "Collection": {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "description": "The id of the collection instance",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The name of the collection instance",
            "nullable": true
          },
          "theme": {
            "$ref": "#/components/schemas/ThemeType"
          },
          "icon": {
            "$ref": "#/components/schemas/CustomIconType"
          },
          "isSystem": {
            "type": "boolean",
            "description": "Whether or not the collection instance can be default system collection"
          },
          "rootFolderId": {
            "type": "string",
            "description": "Information about rootfolder of collection instance",
            "nullable": true
          },
          "recycleFolderId": {
            "type": "string",
            "description": "Information about recycle folder of collection instance",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          },
          "isDigitalMail": {
            "type": "boolean",
            "description": "Is this a digital mail folder"
          },
          "emailAddress": {
            "type": "string",
            "description": "Email address assigned to the digital mail collection",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department assigned to the digital mail collection",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "description": "Information on Expiration of collection",
            "format": "date-time",
            "nullable": true
          },
          "notificationDateForExpiry": {
            "type": "string",
            "description": "Information on Notifyication about Expiration of collection",
            "format": "date-time",
            "nullable": true
          },
          "expirationPolicyEnabled": {
            "type": "boolean",
            "description": "Enable/Disable expiration policy for collection"
          },
          "expirationDays": {
            "type": "integer",
            "description": "Number of days after which resources in the collections are expired",
            "format": "int32"
          },
          "isDocumentSet": {
            "type": "boolean",
            "description": "Is this a document set collection"
          },
          "totalDocuments": {
            "type": "integer",
            "description": "total documents count under a specific collection",
            "format": "int64"
          },
          "totalFolders": {
            "type": "integer",
            "description": "total folder count under a specific collection",
            "format": "int64"
          },
          "isIndexed": {
            "type": "boolean",
            "description": "denotes that whether this collection is indexed or not"
          }
        },
        "additionalProperties": false,
        "description": "Contains all information about the collection"
      },
      "CollectionDashboard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The dashboard id",
            "nullable": true
          },
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionWidget"
            },
            "description": "The list of widgets on the dashboard",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains all information about a customized or \nnon-customized collection dashboard"
      },
      "CollectionWidget": {
        "required": [
          "id",
          "location",
          "type"
        ],
        "type": "object",
        "properties": {
          "collection": {
            "$ref": "#/components/schemas/DisplayConfiguration"
          },
          "user": {
            "$ref": "#/components/schemas/DisplayConfiguration"
          },
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "type": {
            "$ref": "#/components/schemas/WidgetType"
          },
          "location": {
            "$ref": "#/components/schemas/WidgetLocation"
          },
          "configuration": {
            "$ref": "#/components/schemas/DisplayConfiguration"
          },
          "permissions": {
            "$ref": "#/components/schemas/WidgetPermissions"
          },
          "data": {
            "type": "string",
            "description": "A json string that contains the current widget data (Not updatable)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains all information about a widget on a collection\ndashboard, including the base layout and configuration\nand all customizations if there are any"
      },
      "CompleteMultiPartUploadRequest": {
        "required": [
          "documentId",
          "versionId"
        ],
        "type": "object",
        "properties": {
          "uploadId": {
            "type": "string",
            "nullable": true
          },
          "chunks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompletedChunkInfo"
            },
            "nullable": true
          },
          "documentId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to activate"
          },
          "versionId": {
            "minLength": 1,
            "type": "string",
            "description": "The version of the document to activate"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "(Optional) Custom metadata for the document. This can contain \nany json structure and may also be omitted. This can also\nbe updated later",
            "nullable": true
          },
          "activityType": {
            "$ref": "#/components/schemas/ActivityType"
          },
          "isUploadNewVersion": {
            "type": "boolean"
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "documentConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "resourceMetaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceMetaDataField"
            },
            "nullable": true
          },
          "isUpdateWithMetadata": {
            "type": "boolean"
          },
          "waitForScan": {
            "type": "boolean",
            "description": "Bug 89052: the client wants completion to wait briefly (see `DocuShare:Upload:ScanGraceSeconds`) for the\nserver-side scan, so a quick scan is invisible to it. Off by default: a client that does not set it gets the\nanswer at once and polls the scan status."
          }
        },
        "additionalProperties": false
      },
      "CompletePartUploadRequest": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "nullable": true
          },
          "versionId": {
            "type": "string",
            "nullable": true
          },
          "uploadId": {
            "type": "string",
            "nullable": true
          },
          "chunk": {
            "$ref": "#/components/schemas/CompletedChunkInfo"
          }
        },
        "additionalProperties": false
      },
      "CompletedChunkInfo": {
        "type": "object",
        "properties": {
          "chunkIndex": {
            "type": "integer",
            "format": "int32"
          },
          "tag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Condition": {
        "type": "object",
        "properties": {
          "operator": {
            "$ref": "#/components/schemas/Operator"
          },
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ConfigureDashboardLayoutRequest": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/DashboardLayout"
          }
        },
        "additionalProperties": false,
        "description": "Updates the base layout of a collection dashboard\nfor all users, or the layout of a user dashboard"
      },
      "ConfigureDashboardLayoutResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Updates the base layout of a collection dashboard\nfor all users, or the layout of a user dashboard"
      },
      "ConfigureWidgetRequest": {
        "required": [
          "widget"
        ],
        "type": "object",
        "properties": {
          "widget": {
            "$ref": "#/components/schemas/WidgetConfiguration"
          },
          "display": {
            "$ref": "#/components/schemas/WidgetDisplay"
          }
        },
        "additionalProperties": false,
        "description": "Updates the configuration of a widget on a dashboard"
      },
      "ConfigureWidgetResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Updates the configuration of a widget on a dashboard"
      },
      "ConfirmForgotPasswordRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "The address as the user typed it, in any casing.",
            "nullable": true
          },
          "confirmationCode": {
            "type": "string",
            "description": "The verification code from the e-mail. Never logged.",
            "nullable": true
          },
          "newPassword": {
            "type": "string",
            "description": "The new password. Never logged.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Bug 89320 / 85103. Completes a password reset from the e-mailed code. The server resolves the\nCognito username itself, so the browser no longer needs to be told which form of the address the\npool accepts, and the reply never says whether the address has an account."
      },
      "ConfirmForgotPasswordResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Bug 89320. The password was reset. Deliberately empty: every refusal is the same error, and a\nsuccess carries nothing about the account."
      },
      "CreateFolderRequest": {
        "required": [
          "folderName"
        ],
        "type": "object",
        "properties": {
          "parentFolderId": {
            "type": "string",
            "description": "(Optional) The id of the folder the new folder should be\ncreated in. Defaults to the user's root folder. New folders\ncannot be created in a user's trash folder",
            "nullable": true
          },
          "folderName": {
            "minLength": 1,
            "type": "string",
            "description": "The name of the folder. Should not contain any path\ninformation"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "(Optional) Custom metadata for the folder. This can contain \nany json structure and may also be omitted. This can also\nbe updated later",
            "nullable": true
          },
          "isCreateFolder": {
            "type": "boolean"
          },
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          },
          "dueDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Creates a new folder"
      },
      "CreateFolderResponse": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          }
        },
        "additionalProperties": false,
        "description": "Contains information about the newly created folder"
      },
      "Currency": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "\n\n0 = USD\n\n1 = EUR\n\n2 = GBP\n\n3 = CAD",
        "format": "int32",
        "x-enumNames": [
          "USD",
          "EUR",
          "GBP",
          "CAD"
        ]
      },
      "CustomIconType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          100
        ],
        "type": "integer",
        "description": "The icon image of the collection instance\n\n0 = Airplane\n\n1 = Bell\n\n2 = Butterfly\n\n3 = Checkmark\n\n4 = Clipboard\n\n5 = Clock\n\n6 = Coins\n\n7 = Files\n\n8 = Flag\n\n9 = Flame\n\n10 = Flask\n\n11 = Flower\n\n12 = Folder\n\n13 = Gear\n\n14 = Globe\n\n15 = Heart\n\n16 = Key\n\n17 = Lightbulb\n\n18 = Lightning\n\n19 = PieChart\n\n20 = Plant\n\n21 = Rocket\n\n22 = Star\n\n23 = Sun\n\n24 = DigitalMail\n\n100 = Home",
        "format": "int32",
        "x-enumNames": [
          "Airplane",
          "Bell",
          "Butterfly",
          "Checkmark",
          "Clipboard",
          "Clock",
          "Coins",
          "Files",
          "Flag",
          "Flame",
          "Flask",
          "Flower",
          "Folder",
          "Gear",
          "Globe",
          "Heart",
          "Key",
          "Lightbulb",
          "Lightning",
          "PieChart",
          "Plant",
          "Rocket",
          "Star",
          "Sun",
          "DigitalMail",
          "Home"
        ]
      },
      "CustomizeWidgetDisplayRequest": {
        "type": "object",
        "properties": {
          "widget": {
            "$ref": "#/components/schemas/WidgetDisplayCustomization"
          }
        },
        "additionalProperties": false,
        "description": "Customizes the layout of the widgets on a dashboard\nfor the current user"
      },
      "CustomizeWidgetDisplayResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Customizes the layout of the widgets on a dashboard\nfor the current user"
      },
      "CustomizeWidgetRequest": {
        "type": "object",
        "properties": {
          "widget": {
            "$ref": "#/components/schemas/WidgetCustomization"
          }
        },
        "additionalProperties": false,
        "description": "Customizes a widget on any collection dashboard\nfor the currently logged on user"
      },
      "CustomizeWidgetResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Customizes a widget on any collection dashboard\nfor the currently logged on user"
      },
      "DashboardLayout": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The dashboard id"
          },
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WidgetLayout"
            },
            "description": "The list of configured widgets",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains the overall layout of the dashboard, including\nall widget positions, sizes and configurations"
      },
      "DashboardWidget": {
        "required": [
          "id",
          "location",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "type": {
            "$ref": "#/components/schemas/WidgetType"
          },
          "location": {
            "$ref": "#/components/schemas/WidgetLocation"
          },
          "configuration": {
            "$ref": "#/components/schemas/DisplayConfiguration"
          },
          "permissions": {
            "$ref": "#/components/schemas/WidgetPermissions"
          },
          "data": {
            "type": "string",
            "description": "A json string that contains the current widget data (Not updatable)",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains all information about a widget on a dashboard,\nincluding all customizations if there are any"
      },
      "DeleteAllRecycledResourcesRequest": {
        "type": "object",
        "properties": {
          "parentResourceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Deletes all files and folders currently in the user's recycle folder"
      },
      "DeleteAllRecycledResourcesResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when all files and folders have been deleted from the user's recycle folder"
      },
      "DeleteCollectionRequest": {
        "required": [
          "collectionId"
        ],
        "type": "object",
        "properties": {
          "collectionId": {
            "minLength": 1,
            "type": "string",
            "description": "Collection id for delete operation"
          },
          "newOwnerId": {
            "type": "string",
            "description": "Collection owner information for delete operation",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Collection information for delete operation"
      },
      "DeleteCollectionResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "DeleteResourceCommentRequest": {
        "required": [
          "resourceCommentId"
        ],
        "type": "object",
        "properties": {
          "resourceCommentId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DeleteResourceCommentResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "DeleteResourcesRequest": {
        "type": "object",
        "properties": {
          "resourceGuids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ids of the folders and documents to be deleted",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests that a list of folders and/or documents be deleted"
      },
      "DeleteResourcesResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a group of resources has been permanently deleted"
      },
      "DeviceAuthApprovalRequest": {
        "type": "object",
        "properties": {
          "userCode": {
            "type": "string",
            "nullable": true
          },
          "approveAuth": {
            "type": "boolean"
          },
          "authCode": {
            "type": "string",
            "nullable": true
          },
          "authState": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DigitalMailMetrics": {
        "type": "object",
        "properties": {
          "newMails": {
            "type": "integer",
            "format": "int64"
          },
          "readMails": {
            "type": "integer",
            "format": "int64"
          },
          "unreadMails": {
            "type": "integer",
            "format": "int64"
          },
          "toBeExpiredMails": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "DisplayConfiguration": {
        "required": [
          "configuration"
        ],
        "type": "object",
        "properties": {
          "display": {
            "$ref": "#/components/schemas/WidgetDisplay"
          },
          "configuration": {
            "minLength": 1,
            "type": "string",
            "description": "Contains widget configuration"
          }
        },
        "additionalProperties": false,
        "description": "Contains both display settings and configuration\nfor a widget"
      },
      "Document": {
        "type": "object",
        "properties": {
          "contentType": {
            "type": "string",
            "description": "The content type of the document",
            "nullable": true
          },
          "thumbnailURL": {
            "type": "string",
            "description": "The url to the document thumbnail",
            "nullable": true
          },
          "versionNumber": {
            "type": "integer",
            "description": "Version number of last modified document",
            "format": "int32"
          },
          "documentConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "name": {
            "type": "string",
            "description": "The resource name. If this resource is a document, this will be the\ndocument name. This field does not contain the folder path of the\nresource",
            "nullable": true
          },
          "parentFolderId": {
            "type": "string",
            "description": "The id of the folder that this resource resides in. \nIf the resource is in the trash, this always refers to the \ntrash folder, regardless of where the resource originally\nexisted in the hierarchy.",
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "description": "The id of the user who currently owns the resource",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "description": "The id of the user who created/uploaded the resource",
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "createdTimestamp": {
            "type": "string",
            "description": "The date the resource was created/uploaded",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "description": "The date the resource was last modified. This is updated when a new version\nof the resource is uploaded, edited via collaboration, deleted or moved",
            "format": "date-time",
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean",
            "description": "Returns true if the document is in the requesting user's favorites list"
          },
          "isShared": {
            "type": "boolean",
            "description": "Returns true if the document is in the shared list"
          },
          "isLocked": {
            "type": "boolean",
            "description": "Returns true if the document is locked from editing"
          },
          "isCheckedOut": {
            "type": "boolean",
            "description": "Returns true if the document is checked out"
          },
          "resourceState": {
            "$ref": "#/components/schemas/ResourceStateType"
          },
          "searchHighlight": {
            "type": "string",
            "description": "Returns a section of the document text if this is being\nreturned from a search",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "description": "The size of the resource in bytes.\nThis is returned for both documents and folders.\nFor documents, this refers to only the latest version of the document.\nFor folders, this refers to all space taken up by all versions within the folder and its children.",
            "format": "int64"
          },
          "daysToDeletion": {
            "type": "integer",
            "description": "Amount of time in days before item is deleted from trash folder",
            "format": "int32",
            "nullable": true
          },
          "modifierId": {
            "type": "string",
            "description": "ID of the user who modified the Resource",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          },
          "modifier": {
            "$ref": "#/components/schemas/User"
          },
          "isRead": {
            "type": "boolean",
            "description": "False for all new documents. Is set to true if document is previewed or edited."
          },
          "collection": {
            "$ref": "#/components/schemas/Collection"
          },
          "cabinet": {
            "$ref": "#/components/schemas/Cabinet"
          },
          "documentTypeName": {
            "type": "string",
            "description": "The name of the resource's document type",
            "nullable": true
          },
          "expirationTimestamp": {
            "type": "string",
            "description": "The date the resource will expire",
            "format": "date-time",
            "nullable": true
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          },
          "dueDateTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentSetStatus": {
            "$ref": "#/components/schemas/DocumentSetStatusType"
          },
          "approverComments": {
            "type": "string",
            "nullable": true
          },
          "isRequiredInDocumentSet": {
            "type": "boolean",
            "description": "IsRequired flag based on document set configuration",
            "nullable": true
          },
          "messageToAdmin": {
            "type": "string",
            "description": "Digital mail notification message from user",
            "nullable": true
          },
          "messageFromUser": {
            "type": "string",
            "description": "Digital mail notification message sent by user",
            "nullable": true
          },
          "fileLevelSelectiveIndexingEnabled": {
            "type": "boolean"
          },
          "resourceSearchIndex": {
            "$ref": "#/components/schemas/ResourceSearchIndex"
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains detailed document information"
      },
      "DocumentConfiguration": {
        "type": "object",
        "properties": {
          "documentConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          },
          "documentName": {
            "type": "string",
            "nullable": true
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "isRequired": {
            "type": "boolean"
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentSetConfiguration": {
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "configurationJson": {
            "type": "string",
            "nullable": true
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentSetConfigurationVersion"
            },
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "version": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "DocumentSetConfigurationSortType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = NAME\n\n1 = DATE_CREATED\n\n2 = DESCRIPTION",
        "format": "int32",
        "x-enumNames": [
          "NAME",
          "DATE_CREATED",
          "DESCRIPTION"
        ]
      },
      "DocumentSetConfigurationVersion": {
        "type": "object",
        "properties": {
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          },
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "version": {
            "type": "integer",
            "format": "int32"
          },
          "documentConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentConfiguration"
            },
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentSetStatusType": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "\n\n0 = NOTSUBMITTED\n\n1 = SUBMITTED\n\n2 = APPROVED\n\n3 = REJECTED",
        "format": "int32",
        "x-enumNames": [
          "NOTSUBMITTED",
          "SUBMITTED",
          "APPROVED",
          "REJECTED"
        ]
      },
      "DocumentType": {
        "type": "object",
        "properties": {
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "dataExtractionConfigurationJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DocumentTypeSortType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = NAME\n\n1 = DATE_CREATED",
        "format": "int32",
        "x-enumNames": [
          "NAME",
          "DATE_CREATED"
        ]
      },
      "EcommerceProviderType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = DocuShare\n\n1 = TwoCheckout\n\n2 = NetSuite",
        "format": "int32",
        "x-enumNames": [
          "DocuShare",
          "TwoCheckout",
          "NetSuite"
        ]
      },
      "EvaluateResourceMetaDataFieldRequest": {
        "required": [
          "metaDataFieldId",
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "metaDataFieldId": {
            "minLength": 1,
            "type": "string"
          },
          "condition": {
            "$ref": "#/components/schemas/Condition"
          }
        },
        "additionalProperties": false
      },
      "EvaluateResourceMetaDataFieldResponse": {
        "type": "object",
        "properties": {
          "result": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Folder": {
        "type": "object",
        "properties": {
          "cascadeMetadata": {
            "type": "boolean",
            "description": "Indicates this resource's metadata should be cascaded"
          },
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          },
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "name": {
            "type": "string",
            "description": "The resource name. If this resource is a document, this will be the\ndocument name. This field does not contain the folder path of the\nresource",
            "nullable": true
          },
          "parentFolderId": {
            "type": "string",
            "description": "The id of the folder that this resource resides in. \nIf the resource is in the trash, this always refers to the \ntrash folder, regardless of where the resource originally\nexisted in the hierarchy.",
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "description": "The id of the user who currently owns the resource",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "description": "The id of the user who created/uploaded the resource",
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "createdTimestamp": {
            "type": "string",
            "description": "The date the resource was created/uploaded",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "description": "The date the resource was last modified. This is updated when a new version\nof the resource is uploaded, edited via collaboration, deleted or moved",
            "format": "date-time",
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean",
            "description": "Returns true if the document is in the requesting user's favorites list"
          },
          "isShared": {
            "type": "boolean",
            "description": "Returns true if the document is in the shared list"
          },
          "isLocked": {
            "type": "boolean",
            "description": "Returns true if the document is locked from editing"
          },
          "isCheckedOut": {
            "type": "boolean",
            "description": "Returns true if the document is checked out"
          },
          "resourceState": {
            "$ref": "#/components/schemas/ResourceStateType"
          },
          "searchHighlight": {
            "type": "string",
            "description": "Returns a section of the document text if this is being\nreturned from a search",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "description": "The size of the resource in bytes.\nThis is returned for both documents and folders.\nFor documents, this refers to only the latest version of the document.\nFor folders, this refers to all space taken up by all versions within the folder and its children.",
            "format": "int64"
          },
          "daysToDeletion": {
            "type": "integer",
            "description": "Amount of time in days before item is deleted from trash folder",
            "format": "int32",
            "nullable": true
          },
          "modifierId": {
            "type": "string",
            "description": "ID of the user who modified the Resource",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          },
          "modifier": {
            "$ref": "#/components/schemas/User"
          },
          "isRead": {
            "type": "boolean",
            "description": "False for all new documents. Is set to true if document is previewed or edited."
          },
          "collection": {
            "$ref": "#/components/schemas/Collection"
          },
          "cabinet": {
            "$ref": "#/components/schemas/Cabinet"
          },
          "documentTypeName": {
            "type": "string",
            "description": "The name of the resource's document type",
            "nullable": true
          },
          "expirationTimestamp": {
            "type": "string",
            "description": "The date the resource will expire",
            "format": "date-time",
            "nullable": true
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          },
          "dueDateTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentSetStatus": {
            "$ref": "#/components/schemas/DocumentSetStatusType"
          },
          "approverComments": {
            "type": "string",
            "nullable": true
          },
          "isRequiredInDocumentSet": {
            "type": "boolean",
            "description": "IsRequired flag based on document set configuration",
            "nullable": true
          },
          "messageToAdmin": {
            "type": "string",
            "description": "Digital mail notification message from user",
            "nullable": true
          },
          "messageFromUser": {
            "type": "string",
            "description": "Digital mail notification message sent by user",
            "nullable": true
          },
          "fileLevelSelectiveIndexingEnabled": {
            "type": "boolean"
          },
          "resourceSearchIndex": {
            "$ref": "#/components/schemas/ResourceSearchIndex"
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains detailed information about a folder"
      },
      "FolderContentType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "Filters results by DOCUMENTSs, FOLDERs or both\n\n0 = ALL\n\n1 = DOCUMENT\n\n2 = FOLDER",
        "format": "int32",
        "x-enumNames": [
          "ALL",
          "DOCUMENT",
          "FOLDER"
        ]
      },
      "FolderContentsRequest": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "pageSize": {
            "type": "integer",
            "description": "(Optional) The number of resources to return. If this is omitted, it\nwill default to 25 items.\nThere is no limit at this time on the number of items that \ncan be returned. Requesting a large enough number, however,\nmay cause the request to time out.",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "description": "(Optional) The page number to return. If this is omitted, it will\ndefault to the first page.",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/ResourceSortType"
          },
          "type": {
            "$ref": "#/components/schemas/FolderContentType"
          },
          "searchString": {
            "type": "string",
            "description": "(Optional) Finds all resources that contain given value.",
            "nullable": true
          },
          "folderSearch": {
            "$ref": "#/components/schemas/FolderSearchType"
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Finds all resources that included in/or excluded from the given value",
            "nullable": true
          },
          "omitResourceIds": {
            "type": "boolean",
            "description": "Determines whether results include or exclude the given ResourceIds"
          },
          "isCommentsRequired": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Limits the properties returned per resource.\nWhen null or empty, all properties are returned (default behaviour).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests a list of the resources within the specified folder"
      },
      "FolderContentsResponse": {
        "type": "object",
        "properties": {
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceInfo"
            },
            "description": "A list containing the requested resources",
            "nullable": true
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Requests a list of the resources within the specified folder"
      },
      "FolderSearchType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = Full\n\n1 = Immediate",
        "format": "int32",
        "x-enumNames": [
          "Full",
          "Immediate"
        ]
      },
      "ForgotPasswordRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ForgotPasswordResponse": {
        "type": "object",
        "properties": {
          "isMFAEnabledUser": {
            "type": "boolean",
            "nullable": true
          },
          "temporaryPasswordSent": {
            "type": "boolean",
            "description": "A fresh temporary password was e-mailed instead of a verification code, so the client must\nsend the user to sign in with it rather than open the reset-code form (bug 86554)."
          },
          "temporaryPasswordResendAvailableInSeconds": {
            "type": "integer",
            "description": "Set only when a temporary password was due but NOT re-sent, because the last one went out\ninside the resend cooldown: the seconds until another can be sent. The client must say that\nnothing new was e-mailed, rather than that one was (bug 86554).",
            "format": "int32",
            "nullable": true
          },
          "temporaryPasswordResendCooldownMinutes": {
            "type": "integer",
            "description": "The length of the resend cooldown in minutes, set alongside\nDocuShare.Models.ForgotPasswordResponse.TemporaryPasswordResendAvailableInSeconds so the client can name the rule.",
            "format": "int32",
            "nullable": true
          },
          "signInUsername": {
            "type": "string",
            "description": "The e-mail form Cognito accepts as a sign-in username, or null when neither\nform resolves. The reset-confirm step addresses Cognito's case-sensitive alias directly from\nthe browser (bug 85103), so it has to be handed the accepted form. Bug 88785 moved this here\nfrom the anonymous e-mail check: this reply follows an e-mail to the address's own inbox, and\ncarries only a casing of an address the caller already supplied.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetAllCalendarInfoRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetAllDocumentTypeFieldsRequest": {
        "required": [
          "documentTypeIds"
        ],
        "type": "object",
        "properties": {
          "documentTypeIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "GetAllDocumentTypeFieldsResponse": {
        "type": "object",
        "properties": {
          "documentTypeIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "metaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetaDataField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetAvailableWidgetsRequest": {
        "type": "object",
        "properties": {
          "dashboardType": {
            "type": "string",
            "description": "The type of dashboard to return widgets for",
            "nullable": true
          },
          "dashboardGuid": {
            "type": "string",
            "description": "The guid of the dashboard this list is for",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the list of DocuShare.Models.WidgetTypes that are\nallowed on a dashboard of a given type"
      },
      "GetAvailableWidgetsResponse": {
        "type": "object",
        "properties": {
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WidgetType"
            },
            "description": "The list of widget types that are allowed on this\ndashboard",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the list of DocuShare.Models.WidgetTypes that are\nallowed on a dashboard of a given type"
      },
      "GetCabietRequest": {
        "required": [
          "cabinetID"
        ],
        "type": "object",
        "properties": {
          "cabinetID": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetCollectionDashboardRequest": {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "description": "The collection to return dashboard information for",
            "nullable": true
          },
          "widgetId": {
            "type": "string",
            "description": "(Optional) Filters the dashboard to only return data for one\nparticular widget",
            "nullable": true
          },
          "layoutOnly": {
            "type": "boolean",
            "description": "(Optional) When true, returns only the dashboard layout (widget\npositions, types and permissions) without computing each widget's\ndata. The client then hydrates each widget asynchronously via a\nper-widget request (DocuShare.Models.GetCollectionDashboardRequest.WidgetId). Ignored when\nDocuShare.Models.GetCollectionDashboardRequest.WidgetId is set. Defaults to false for backward\ncompatibility."
          },
          "userBrowserLanguage": {
            "type": "string",
            "nullable": true
          },
          "timeZoneOffset": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Returns the dashboard layout and configuration for a\ncollection"
      },
      "GetCollectionDashboardResponse": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/CollectionDashboard"
          }
        },
        "additionalProperties": false,
        "description": "Returns the dashboard layout and configuration for a\ncollection"
      },
      "GetCurrentUserRequest": {
        "type": "object",
        "properties": {
          "isScanCollectionItems": {
            "type": "boolean",
            "description": "Whether to scan and count collection items (documents/folders).\nThis is expensive and should only be enabled when needed."
          },
          "detailsType": {
            "$ref": "#/components/schemas/UserDetailsType"
          },
          "guestLinkResourceId": {
            "type": "string",
            "description": "The folder or document a guest's share link pointed at, sent by the web client only on the\npage that link opened (Bug 86876).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests information about the current user."
      },
      "GetCurrentUserResponse": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/User"
          }
        },
        "additionalProperties": false,
        "description": "Returns information about the current user"
      },
      "GetDataExtractionStatisticsRequest": {
        "type": "object",
        "properties": {
          "activeOnly": {
            "type": "boolean"
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "packType": {
            "$ref": "#/components/schemas/PackTypes"
          },
          "notificationEmailRequest": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetDigitalMailMetricsRequest": {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "nullable": true
          },
          "periodLength": {
            "type": "integer",
            "format": "int64"
          },
          "getAllCollectionsMetrics": {
            "type": "boolean"
          },
          "timeZoneOffset": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "GetDigitalMailMetricsResponse": {
        "type": "object",
        "properties": {
          "digitalMailMetrics": {
            "$ref": "#/components/schemas/DigitalMailMetrics"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentPathRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to return information about"
          }
        },
        "additionalProperties": false,
        "description": "Requests information about the position of a document\nin the folder hierarchy"
      },
      "GetDocumentPathResponse": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "resourcePath": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourcePathComponent"
            },
            "description": "Contains information about all parent folders. If the document\nis shared with the current user, unshared folders will not be\nin the results.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the location of a document within the folder hierarchy"
      },
      "GetDocumentRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The document id",
            "nullable": true
          },
          "includeCustomMetadata": {
            "type": "boolean",
            "description": "Controls whether to return custom metadata or not (as\nthis may cause minor performance degradation if it's not \nneeded)"
          },
          "getByMetadataBatchId": {
            "type": "boolean",
            "description": "Batch upload with same metadata will be tracked using single Id, this field indicates that, \nwhether data populate based on Metadata Batch Id"
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          },
          "storageContainer": {
            "type": "string",
            "nullable": true
          },
          "storagePath": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns detailed information about a document"
      },
      "GetDocumentResponse": {
        "type": "object",
        "properties": {
          "document": {
            "$ref": "#/components/schemas/Document"
          },
          "customMetadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Contains the document metadata, if it was requested",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          }
        },
        "additionalProperties": false,
        "description": "Returns detailed information about a document"
      },
      "GetDocumentSetConfigurationRequest": {
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "includeLatestVersionOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSetConfigurationResponse": {
        "type": "object",
        "properties": {
          "documentSetConfiguration": {
            "$ref": "#/components/schemas/DocumentSetConfiguration"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSetConfigurationVersionRequest": {
        "type": "object",
        "properties": {
          "documentSetConfigurationVersionId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSetConfigurationVersionResponse": {
        "type": "object",
        "properties": {
          "documentSetConfiguration": {
            "$ref": "#/components/schemas/DocumentSetConfiguration"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSetConfigurationsRequest": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/DocumentSetConfigurationSortType"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSetConfigurationsResponse": {
        "type": "object",
        "properties": {
          "documentSetConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentSetConfiguration"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDocumentSignatureRequest": {
        "required": [
          "activityId",
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "activityId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypeFieldsRequest": {
        "required": [
          "documentTypeId"
        ],
        "type": "object",
        "properties": {
          "documentTypeId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypeFieldsResponse": {
        "type": "object",
        "properties": {
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "metaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetaDataField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypeRequest": {
        "required": [
          "documentTypeId"
        ],
        "type": "object",
        "properties": {
          "documentTypeId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypeResponse": {
        "type": "object",
        "properties": {
          "documentType": {
            "$ref": "#/components/schemas/DocumentType"
          },
          "documentTypeIsInUse": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypesRequest": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/DocumentTypeSortType"
          }
        },
        "additionalProperties": false
      },
      "GetDocumentTypesResponse": {
        "type": "object",
        "properties": {
          "documentTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentType"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetDocumentUrlRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The document id"
          },
          "forDownload": {
            "type": "boolean",
            "description": "Controls whether this access is logged in the history\nas a download (as opposed to being used for collaboration)"
          },
          "forEditing": {
            "type": "boolean",
            "description": "Controls whether the requested version is locked\nfor editing"
          },
          "isResourceUnavailable": {
            "type": "boolean",
            "description": "Controls whether the requested document resources available or not (By Default it should be available)\nfor download"
          }
        },
        "additionalProperties": false,
        "description": "Returns a presigned URL that can be used to download a document's content"
      },
      "GetDocumentUrlResponse": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The temporary url that can be used to download the document's content",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns a presigned URL that can be used to download a document's content"
      },
      "GetFirstNResourcesRequest": {
        "type": "object",
        "properties": {
          "folderId": {
            "type": "string",
            "nullable": true
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "includeSubfolders": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetFirstNResourcesResponse": {
        "type": "object",
        "properties": {
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetFolderPathRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the folder to return information about"
          },
          "isCabinetRequest": {
            "type": "boolean",
            "description": "Controls whether to return resource request based on rootfolder id or Cabinet id"
          }
        },
        "additionalProperties": false,
        "description": "Requests information about the position of a folder\nin the folder hierarchy"
      },
      "GetFolderPathResponse": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "resourcePath": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourcePathComponent"
            },
            "description": "Contains information about all parent folders. If the folder\nis shared with the current user, unshared folders will not be\nin the results.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the location of a folder within the folder hierarchy"
      },
      "GetFolderRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The folder id"
          },
          "includeCustomMetadata": {
            "type": "boolean",
            "description": "Controls whether to return custom metadata or not (as\nthis may cause minor performance degradation if it's not \nneeded)"
          },
          "isCabinetRequest": {
            "type": "boolean",
            "description": "Controls whether to return resource request based on rootfolder id or Cabinet id"
          }
        },
        "additionalProperties": false,
        "description": "Returns detailed information about a document"
      },
      "GetFolderResponse": {
        "type": "object",
        "properties": {
          "folder": {
            "$ref": "#/components/schemas/Folder"
          },
          "customMetadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "Contains the folder metadata, if it was requested",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns detailed information about a folder"
      },
      "GetMembersOfCollectionRequest": {
        "type": "object",
        "properties": {
          "collectionResourceId": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "getDigitalMailCollectionsOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetMembersOfCollectionResponse": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetMetaDataFieldRequest": {
        "required": [
          "metaDataFieldId"
        ],
        "type": "object",
        "properties": {
          "metaDataFieldId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetMetaDataFieldResponse": {
        "type": "object",
        "properties": {
          "metaDataField": {
            "$ref": "#/components/schemas/MetaDataField"
          },
          "metaDataFieldIsInUse": {
            "type": "boolean"
          },
          "documentTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentType"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetMetaDataFieldsRequest": {
        "type": "object",
        "properties": {
          "pageSize": {
            "type": "integer",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/MetaDataFieldSortType"
          }
        },
        "additionalProperties": false
      },
      "GetMetaDataFieldsResponse": {
        "type": "object",
        "properties": {
          "metaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetaDataField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetMetadataFieldValueRequest": {
        "required": [
          "documentId",
          "metadataFieldId"
        ],
        "type": "object",
        "properties": {
          "documentId": {
            "minLength": 1,
            "type": "string"
          },
          "metadataFieldId": {
            "minLength": 1,
            "type": "string"
          },
          "metadataFieldName": {
            "type": "string",
            "nullable": true
          },
          "isBuiltInField": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetMetadataFieldValueResponse": {
        "type": "object",
        "properties": {
          "fieldExists": {
            "type": "boolean"
          },
          "hasValue": {
            "type": "boolean"
          },
          "fieldValue": {
            "type": "string",
            "nullable": true
          },
          "fieldDataType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOperationsStatusRequest": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "getByUserId": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GetOperationsStatusResponse": {
        "type": "object",
        "properties": {
          "batchOperationStatusEntryList": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BatchOperationStatusEntry"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetOrganizationRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetOrganizationResponse": {
        "type": "object",
        "properties": {
          "organization": {
            "$ref": "#/components/schemas/Organization"
          }
        },
        "additionalProperties": false
      },
      "GetOriginalCopyRequestedListRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetProvisioningStatusRequest": {
        "type": "object",
        "properties": {
          "organizationGuid": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetProvisioningStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ProvisioningStatusType"
          }
        },
        "additionalProperties": false
      },
      "GetRequestedFromMeRequest": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "pageSize": {
            "type": "integer",
            "description": "(Optional) The number of resources to return. If this is omitted, it\nwill default to 25 items.\nThere is no limit at this time on the number of items that \ncan be returned. Requesting a large enough number, however,\nmay cause the request to time out.",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "description": "(Optional) The page number to return. If this is omitted, it will\ndefault to the first page.",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/ResourceSortType"
          },
          "type": {
            "$ref": "#/components/schemas/FolderContentType"
          },
          "searchString": {
            "type": "string",
            "description": "(Optional) Finds all resources that contain given value.",
            "nullable": true
          },
          "folderSearch": {
            "$ref": "#/components/schemas/FolderSearchType"
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Finds all resources that included in/or excluded from the given value",
            "nullable": true
          },
          "omitResourceIds": {
            "type": "boolean",
            "description": "Determines whether results include or exclude the given ResourceIds"
          },
          "isCommentsRequired": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Limits the properties returned per resource.\nWhen null or empty, all properties are returned (default behaviour).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests the list of resources requested from current user"
      },
      "GetRequestedFromMeResponse": {
        "type": "object",
        "properties": {
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceInfo"
            },
            "description": "The list of resources",
            "nullable": true
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the list of resources that have been requested from the\ncurrent user"
      },
      "GetRescanRequestedListRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetResourceCommentsRequest": {
        "required": [
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetResourceCommentsResponse": {
        "type": "object",
        "properties": {
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceComment"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetResourceCountRequest": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "description": "List of resource identifiers to evaluate.",
            "nullable": true
          },
          "selectedOuterFolderCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Request model for fetching file and folder counts."
      },
      "GetResourceDocumentTypeRequest": {
        "required": [
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetResourceDocumentTypeResponse": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "$ref": "#/components/schemas/DocumentType"
          }
        },
        "additionalProperties": false
      },
      "GetResourceMetaDataFieldsRequest": {
        "required": [
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GetResourceMetaDataFieldsResponse": {
        "type": "object",
        "properties": {
          "resourceMetaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceMetaDataField"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GetSharedWithMeRequest": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "pageSize": {
            "type": "integer",
            "description": "(Optional) The number of resources to return. If this is omitted, it\nwill default to 25 items.\nThere is no limit at this time on the number of items that \ncan be returned. Requesting a large enough number, however,\nmay cause the request to time out.",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "description": "(Optional) The page number to return. If this is omitted, it will\ndefault to the first page.",
            "format": "int32"
          },
          "order": {
            "$ref": "#/components/schemas/OrderType"
          },
          "sort": {
            "$ref": "#/components/schemas/ResourceSortType"
          },
          "type": {
            "$ref": "#/components/schemas/FolderContentType"
          },
          "searchString": {
            "type": "string",
            "description": "(Optional) Finds all resources that contain given value.",
            "nullable": true
          },
          "folderSearch": {
            "$ref": "#/components/schemas/FolderSearchType"
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Finds all resources that included in/or excluded from the given value",
            "nullable": true
          },
          "omitResourceIds": {
            "type": "boolean",
            "description": "Determines whether results include or exclude the given ResourceIds"
          },
          "isCommentsRequired": {
            "type": "boolean"
          },
          "fields": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "(Optional) Limits the properties returned per resource.\nWhen null or empty, all properties are returned (default behaviour).",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests the list of resources shared with the current user"
      },
      "GetSharedWithMeResponse": {
        "type": "object",
        "properties": {
          "resources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceInfo"
            },
            "description": "The list of resources",
            "nullable": true
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the list of resources that have been shared with the\ncurrent user"
      },
      "GetUserAccountSettingsRequest": {
        "type": "object",
        "additionalProperties": false
      },
      "GetUserDashboardRequest": {
        "type": "object",
        "properties": {
          "widgetId": {
            "type": "string",
            "description": "(Optional) Filters the dashboard to only return data for one\nparticular widget",
            "nullable": true
          },
          "layoutOnly": {
            "type": "boolean",
            "description": "(Optional) When true, returns only the dashboard layout (widget\npositions, types and permissions) without computing each widget's\ndata. The client then hydrates each widget asynchronously via a\nper-widget request (DocuShare.Models.GetUserDashboardRequest.WidgetId). Ignored when\nDocuShare.Models.GetUserDashboardRequest.WidgetId is set. Defaults to false for backward\ncompatibility."
          },
          "userBrowserLanguage": {
            "type": "string",
            "nullable": true
          },
          "timeZoneOffset": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false,
        "description": "Returns the dashboard layout and configuration for the\nauthenticated user (His or her home screen)"
      },
      "GetUserDashboardResponse": {
        "type": "object",
        "properties": {
          "dashboard": {
            "$ref": "#/components/schemas/UserDashboard"
          }
        },
        "additionalProperties": false,
        "description": "Returns the dashboard layout and configuration for the\nauthenticated user (His or her home screen)"
      },
      "HandleResourceOperationRequestType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6
        ],
        "type": "integer",
        "description": "\n\n0 = Move\n\n1 = Copy\n\n2 = Recycle\n\n3 = Delete\n\n4 = Restore\n\n5 = ShareUser\n\n6 = ShareGroup",
        "format": "int32",
        "x-enumNames": [
          "Move",
          "Copy",
          "Recycle",
          "Delete",
          "Restore",
          "ShareUser",
          "ShareGroup"
        ]
      },
      "HttpStatusCode": {
        "enum": [
          100,
          101,
          102,
          103,
          200,
          201,
          202,
          203,
          204,
          205,
          206,
          207,
          208,
          226,
          300,
          301,
          302,
          303,
          304,
          305,
          306,
          307,
          308,
          400,
          401,
          402,
          403,
          404,
          405,
          406,
          407,
          408,
          409,
          410,
          411,
          412,
          413,
          414,
          415,
          416,
          417,
          421,
          422,
          423,
          424,
          426,
          428,
          429,
          431,
          451,
          500,
          501,
          502,
          503,
          504,
          505,
          506,
          507,
          508,
          510,
          511
        ],
        "type": "integer",
        "format": "int32",
        "x-enumNames": [
          "Continue",
          "SwitchingProtocols",
          "Processing",
          "EarlyHints",
          "OK",
          "Created",
          "Accepted",
          "NonAuthoritativeInformation",
          "NoContent",
          "ResetContent",
          "PartialContent",
          "MultiStatus",
          "AlreadyReported",
          "IMUsed",
          "MultipleChoices",
          "Ambiguous",
          "MovedPermanently",
          "Moved",
          "Found",
          "Redirect",
          "SeeOther",
          "RedirectMethod",
          "NotModified",
          "UseProxy",
          "Unused",
          "TemporaryRedirect",
          "RedirectKeepVerb",
          "PermanentRedirect",
          "BadRequest",
          "Unauthorized",
          "PaymentRequired",
          "Forbidden",
          "NotFound",
          "MethodNotAllowed",
          "NotAcceptable",
          "ProxyAuthenticationRequired",
          "RequestTimeout",
          "Conflict",
          "Gone",
          "LengthRequired",
          "PreconditionFailed",
          "RequestEntityTooLarge",
          "RequestUriTooLong",
          "UnsupportedMediaType",
          "RequestedRangeNotSatisfiable",
          "ExpectationFailed",
          "MisdirectedRequest",
          "UnprocessableEntity",
          "UnprocessableContent",
          "Locked",
          "FailedDependency",
          "UpgradeRequired",
          "PreconditionRequired",
          "TooManyRequests",
          "RequestHeaderFieldsTooLarge",
          "UnavailableForLegalReasons",
          "InternalServerError",
          "NotImplemented",
          "BadGateway",
          "ServiceUnavailable",
          "GatewayTimeout",
          "HttpVersionNotSupported",
          "VariantAlsoNegotiates",
          "InsufficientStorage",
          "LoopDetected",
          "NotExtended",
          "NetworkAuthenticationRequired"
        ]
      },
      "InitializePartUploadRequest": {
        "type": "object",
        "properties": {
          "documentId": {
            "type": "string",
            "nullable": true
          },
          "versionId": {
            "type": "string",
            "nullable": true
          },
          "uploadId": {
            "type": "string",
            "nullable": true
          },
          "chunkIndex": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "InitiateDocumentVersionUploadRequest": {
        "required": [
          "contentType",
          "destinationFileName"
        ],
        "type": "object",
        "properties": {
          "uploadExtention": {
            "type": "string",
            "nullable": true
          },
          "isDocumentSetRequest": {
            "type": "boolean"
          },
          "destinationFileName": {
            "minLength": 1,
            "type": "string",
            "description": "The name of the document being uploaded. This should contain\nonly the filename with extension. No path information should\nbe uploaded"
          },
          "contentType": {
            "minLength": 1,
            "type": "string",
            "description": "The content type of the new document"
          },
          "folderId": {
            "type": "string",
            "description": "The id of the folder to upload the document into. Defaults\nto the user's root folder if not specified. The user is not\nallowed to upload directly to his or her trash folder",
            "nullable": true
          },
          "isSharedWithMe": {
            "type": "boolean",
            "description": "This is for checking the shared user"
          },
          "metadataBatchId": {
            "type": "string",
            "description": "This is for saving metadata batch id for batch upload from Printer devices",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Starts the document upload process"
      },
      "InitiateDocumentVersionUploadResponse": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "description": "The presigned url that the client should upload the file to",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "description": "The value a client MUST send as the `Content-Type` header when it PUTs to\nDocuShare.Models.InitiateDocumentVersionUploadResponse.UploadUrl. This echoes the content type the client declared; when it\ndeclared none, the server infers one from the file extension and reports that.",
            "nullable": true
          },
          "documentId": {
            "type": "string",
            "description": "The id that was created for the document",
            "nullable": true
          },
          "versionId": {
            "type": "string",
            "description": "The id that was created for the version",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns information about the newly allocated document"
      },
      "InitiateMultiPartUploadRequest": {
        "required": [
          "contentType",
          "destinationFileName"
        ],
        "type": "object",
        "properties": {
          "fileSize": {
            "type": "integer",
            "description": "The size of the file to upload",
            "format": "int64"
          },
          "destinationFileName": {
            "minLength": 1,
            "type": "string",
            "description": "The name of the document being uploaded. This should contain\nonly the filename with extension. No path information should\nbe uploaded"
          },
          "contentType": {
            "minLength": 1,
            "type": "string",
            "description": "The content type of the new document"
          },
          "folderId": {
            "type": "string",
            "description": "The id of the folder to upload the document into. Defaults\nto the user's root folder if not specified. The user is not\nallowed to upload directly to his or her trash folder",
            "nullable": true
          },
          "isSharedWithMe": {
            "type": "boolean",
            "description": "This is for checking the shared user"
          },
          "metadataBatchId": {
            "type": "string",
            "description": "This is for saving metadata batch id for batch upload from Printer devices",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MetaDataField": {
        "type": "object",
        "properties": {
          "metaDataFieldId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "dataType": {
            "$ref": "#/components/schemas/MetaDataFieldDataTypes"
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "automationQuery": {
            "type": "string",
            "nullable": true
          },
          "isAutomationRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isDocumentSetRequired": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MetaDataFieldDataTypes": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "\n\n0 = DataTypeString\n\n1 = DataTypeNumber\n\n2 = DataTypeBoolean\n\n3 = DataTypeDatetime",
        "format": "int32",
        "x-enumNames": [
          "DataTypeString",
          "DataTypeNumber",
          "DataTypeBoolean",
          "DataTypeDatetime"
        ]
      },
      "MetaDataFieldSortType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = NAME\n\n1 = DATE_CREATED\n\n2 = TYPE",
        "format": "int32",
        "x-enumNames": [
          "NAME",
          "DATE_CREATED",
          "TYPE"
        ]
      },
      "NotificationFrequency": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "\n\n0 = Immediate\n\n1 = Daily\n\n2 = Weekly\n\n3 = Monthly",
        "format": "int32",
        "x-enumNames": [
          "Immediate",
          "Daily",
          "Weekly",
          "Monthly"
        ]
      },
      "NotificationPreference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "transmitter": {
            "$ref": "#/components/schemas/NotificationTransmitterType"
          },
          "type": {
            "$ref": "#/components/schemas/NotificationType"
          },
          "frequency": {
            "$ref": "#/components/schemas/NotificationFrequency"
          },
          "isEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "NotificationTransmitterType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = Email\n\n1 = SMS\n\n2 = Push",
        "format": "int32",
        "x-enumNames": [
          "Email",
          "SMS",
          "Push"
        ]
      },
      "NotificationType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14
        ],
        "type": "integer",
        "description": "\n\n0 = AccountStatus\n\n1 = ApprovalRequested\n\n2 = ApprovalApproved\n\n3 = DataUsage\n\n4 = EReceipts\n\n5 = SharedResourceUpdate\n\n6 = Share\n\n7 = SubscriptionUpdate\n\n8 = UploadDownloadComplete\n\n9 = UserProfileUpdate\n\n10 = DigitalMail\n\n11 = DigitalMailExceptions\n\n12 = CommentTagMentions\n\n13 = RescanRequest\n\n14 = ForwardOriginalRequest",
        "format": "int32",
        "x-enumNames": [
          "AccountStatus",
          "ApprovalRequested",
          "ApprovalApproved",
          "DataUsage",
          "EReceipts",
          "SharedResourceUpdate",
          "Share",
          "SubscriptionUpdate",
          "UploadDownloadComplete",
          "UserProfileUpdate",
          "DigitalMail",
          "DigitalMailExceptions",
          "CommentTagMentions",
          "RescanRequest",
          "ForwardOriginalRequest"
        ]
      },
      "OAuthErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "description": "A single ASCII error code from the set defined in RFC 6749.",
            "nullable": true
          },
          "errorDescription": {
            "type": "string",
            "description": "Human-readable ASCII text providing additional information about the error.",
            "nullable": true
          },
          "errorUri": {
            "type": "string",
            "description": "A URI identifying a human-readable web page with information about the error.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "OAuth 2.0 error response following RFC 6749 specification."
      },
      "OAuthSignInProxyStatus": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Indicates whether the DocuShare Sign-In proxy feature is enabled."
          },
          "message": {
            "type": "string",
            "description": "Human-readable status message.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Status response for the OAuth sign-in proxy service."
      },
      "Operator": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = NONE\n\n1 = LESSTHAN\n\n2 = GREATERTHANOREQUALTO",
        "format": "int32",
        "x-enumNames": [
          "NONE",
          "LESSTHAN",
          "GREATERTHANOREQUALTO"
        ]
      },
      "OrderType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = ASCENDING\n\n1 = DESCENDING",
        "format": "int32",
        "x-enumNames": [
          "ASCENDING",
          "DESCENDING"
        ]
      },
      "Organization": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "description": "The organization id",
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "description": "The id of the user who owns this organization.\nNote that organizations can be assigned new owners, so\nthis does not necessarily refer to the user who created\nthe organization. There can, however, only be one owner\nat a time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The name of the organization (Also referred to as Tenant or \nCompany name)",
            "nullable": true
          },
          "adGroupId": {
            "type": "string",
            "description": "The Id of the Active Directory Security Group",
            "nullable": true
          },
          "streetAddress": {
            "type": "string",
            "description": "The street address of the organization as a whole (not the user\nwho created or owns it)",
            "nullable": true
          },
          "streetAddress2": {
            "type": "string",
            "description": "The street address of the organization as a whole (not the user\nwho created or owns it) - Line 2",
            "nullable": true
          },
          "locality": {
            "type": "string",
            "description": "The city/town/etc... of the organization",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "description": "The phone number of the organization",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "description": "The zip code of the organization",
            "nullable": true
          },
          "region": {
            "type": "string",
            "description": "The region (State) of the organization",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "description": "The iso-2 country code the organization exists in",
            "nullable": true
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "languageCode": {
            "type": "string",
            "description": "The preferred iso-2 language code",
            "nullable": true
          },
          "subscriptionId": {
            "type": "string",
            "description": "The id of the subscription the organization has",
            "nullable": true
          },
          "subscription": {
            "$ref": "#/components/schemas/Subscription"
          },
          "mfaRequired": {
            "type": "boolean",
            "description": "Whether or not the organization requires Multi-Factor Authentication log-in"
          },
          "organizationCode": {
            "type": "string",
            "description": "Unique code belonging to each organization.",
            "nullable": true
          },
          "allowAutoOnboard": {
            "type": "boolean",
            "description": "Whether or not the organization allows auto onboarding of users"
          },
          "digitalMailEnabled": {
            "type": "boolean",
            "description": "Whether or not the organization is setup for digital mail"
          },
          "fuzzyMailRoutingEnabled": {
            "type": "boolean",
            "description": "Whether or not the organization is setup for digital mail fuzzy routing"
          },
          "whiteLabel": {
            "type": "boolean",
            "description": "Whether or not the organization is setup for whitelabel"
          },
          "whiteLabelProductName": {
            "type": "string",
            "description": "Product Name for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelHelpLinkUrl": {
            "type": "string",
            "description": "HelpLinkUrl for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelPrimaryColor": {
            "type": "string",
            "description": "Primary Color for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelSecondaryColor": {
            "type": "string",
            "description": "Secondary Color for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelTertiaryColor": {
            "type": "string",
            "description": "Tertiary Color for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelProductLogoUrl": {
            "type": "string",
            "description": "Product Logo Url for whitelabel enabled organization",
            "nullable": true
          },
          "whiteLabelSubDomain": {
            "type": "string",
            "description": "Sub Domain for whitelabel enabled organization",
            "nullable": true
          },
          "semanticSearchEnabled": {
            "type": "boolean",
            "description": "Whether or not the organization is setup for semantic search"
          },
          "showSearchChatUI": {
            "type": "boolean",
            "description": "Whether or not the organization is setup for semantic search chat UI"
          },
          "agentEnabled": {
            "type": "boolean",
            "description": "Whether or not the organization has the Agent feature enabled."
          },
          "textractType": {
            "$ref": "#/components/schemas/Textract"
          },
          "ocrConfidenceThreshold": {
            "type": "number",
            "description": "Gets or sets the OCR confidence threshold.",
            "format": "double"
          },
          "premiumModelId": {
            "type": "string",
            "description": "The ID of the selected premium model for content assistant",
            "nullable": true
          },
          "premiumModelName": {
            "type": "string",
            "description": "The name of the selected premium model for content assistant",
            "nullable": true
          },
          "premiumModelEnabled": {
            "type": "boolean",
            "description": "Whether premium model is enabled for the organization"
          },
          "premiumModelUpdatedTimestamp": {
            "type": "string",
            "description": "Timestamp when the premium model was last updated",
            "format": "date-time",
            "nullable": true
          },
          "embeddingModelVersion": {
            "type": "string",
            "description": "The embedding model version for this organization (e.g., \"text-embedding-3-small\").\nWhen null, the Content Assistant falls back to the tenant-level or global default.",
            "nullable": true
          },
          "embeddingChunkSize": {
            "type": "integer",
            "description": "The chunk size (in characters) used when generating embeddings for this organization.\nAllowed range: [DocuShare.Models.Organization.MinEmbeddingChunkSize, DocuShare.Models.Organization.MaxEmbeddingChunkSize].\nDefaults to DocuShare.Models.Organization.DefaultEmbeddingChunkSize.",
            "format": "int32"
          },
          "storageContainerName": {
            "type": "string",
            "nullable": true
          },
          "isScanEnabled": {
            "type": "boolean",
            "description": "Indicates whether security scanning is enabled for this organization.\nIf null, falls back to the global system setting.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Desribes a single organization (tenant).\nWhen a user signs up for a new account, a new Organization\nis created for them and any accounts they subsequently invite.\nThere is no communication whatsoever between organizations at this time"
      },
      "PackTypes": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = DataExtraction\n\n1 = ContentAssistant",
        "format": "int32",
        "x-enumNames": [
          "DataExtraction",
          "ContentAssistant"
        ]
      },
      "PermissionType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15
        ],
        "type": "integer",
        "description": "The list of permissions a user is granted by virtue of\nhis/her role\n\n0 = CreateUsers\n\n1 = DeleteUsers\n\n2 = ReadUsers\n\n3 = UpdateUsers\n\n4 = CreateGroups\n\n5 = UpdateGroups\n\n6 = DeleteGroups\n\n7 = ReadGroups\n\n8 = UpdateOrganization\n\n9 = ManageSubscription\n\n10 = ManageSystemMetadataFields\n\n11 = ManageAllGroups\n\n12 = ManageSubscriptionOwner\n\n13 = ReadStatistics\n\n14 = ManageDataExtraction\n\n15 = ManagePremiumContentAssistant",
        "format": "int32",
        "x-enumNames": [
          "CreateUsers",
          "DeleteUsers",
          "ReadUsers",
          "UpdateUsers",
          "CreateGroups",
          "UpdateGroups",
          "DeleteGroups",
          "ReadGroups",
          "UpdateOrganization",
          "ManageSubscription",
          "ManageSystemMetadataFields",
          "ManageAllGroups",
          "ManageSubscriptionOwner",
          "ReadStatistics",
          "ManageDataExtraction",
          "ManagePremiumContentAssistant"
        ]
      },
      "PrincipalType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "\n\n0 = NOT_SPECIFIED\n\n1 = ANONYMOUS\n\n2 = GROUP\n\n3 = INVITE\n\n4 = ORGANIZATION\n\n5 = USER",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "ANONYMOUS",
          "GROUP",
          "INVITE",
          "ORGANIZATION",
          "USER"
        ]
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProvisionNewOrganizationRequest": {
        "type": "object",
        "properties": {
          "organizationGuid": {
            "type": "string",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          },
          "address1": {
            "type": "string",
            "nullable": true
          },
          "address2": {
            "type": "string",
            "nullable": true
          },
          "locality": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "nullable": true
          },
          "region": {
            "type": "string",
            "nullable": true
          },
          "countryCode": {
            "type": "string",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "nullable": true
          },
          "languageCode": {
            "type": "string",
            "nullable": true
          },
          "adGroupId": {
            "type": "string",
            "nullable": true
          },
          "digitalMailEnabled": {
            "type": "boolean",
            "nullable": true
          },
          "whiteLabel": {
            "type": "boolean"
          },
          "autoPurgeAfterDays": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "subscription": {
            "$ref": "#/components/schemas/Subscription"
          }
        },
        "additionalProperties": false
      },
      "ProvisionNewOrganizationResponse": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProvisionTenantRequest": {
        "type": "object",
        "properties": {
          "organizationGuid": {
            "type": "string",
            "nullable": true
          },
          "identityId": {
            "type": "string",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "languageCode": {
            "type": "string",
            "nullable": true
          },
          "subscriptionStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "trialKitId": {
            "type": "string",
            "nullable": true
          },
          "trialKitVersion": {
            "type": "string",
            "nullable": true
          },
          "holdOwnerInvite": {
            "type": "boolean"
          },
          "trialKitStep": {
            "type": "string",
            "nullable": true
          },
          "partnerEmail": {
            "type": "string",
            "nullable": true
          },
          "trialKitStepFailed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ProvisionTenantResponse": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/ProvisioningStatusType"
          }
        },
        "additionalProperties": false
      },
      "ProvisioningStatusType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "\n\n0 = INITIALIZED\n\n1 = PENDING\n\n2 = PROVISIONED\n\n3 = MARKEDFORDELETE\n\n4 = MARKEDFORDELETESOFTPURGE\n\n5 = MARKEDFORS3DELETE",
        "format": "int32",
        "x-enumNames": [
          "INITIALIZED",
          "PENDING",
          "PROVISIONED",
          "MARKEDFORDELETE",
          "MARKEDFORDELETESOFTPURGE",
          "MARKEDFORS3DELETE"
        ]
      },
      "QueueResourceOperationsRequest": {
        "type": "object",
        "properties": {
          "idToken": {
            "type": "string",
            "nullable": true
          },
          "refreshToken": {
            "type": "string",
            "nullable": true
          },
          "resourceIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLocator"
            },
            "nullable": true
          },
          "sourceFolderId": {
            "type": "string",
            "nullable": true
          },
          "destinationFolderId": {
            "type": "string",
            "nullable": true
          },
          "handleResourceOperationRequestType": {
            "$ref": "#/components/schemas/HandleResourceOperationRequestType"
          }
        },
        "additionalProperties": false
      },
      "QueueResourceOperationsResponse": {
        "type": "object",
        "properties": {
          "requestId": {
            "type": "string",
            "nullable": true
          },
          "operationsQueued": {
            "type": "boolean"
          },
          "activeOperationsLimitReached": {
            "type": "boolean"
          },
          "handleResourceOperationRequestType": {
            "$ref": "#/components/schemas/HandleResourceOperationRequestType"
          },
          "copyLimitExceeded": {
            "type": "boolean"
          },
          "maxCopyLimit": {
            "type": "integer",
            "format": "int32"
          },
          "totalFileCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "RecycleDocumentRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to recycle"
          },
          "requestFromLambda": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Requests that a document be moved to the user's trash folder"
      },
      "RecycleDocumentResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a document is recycled"
      },
      "RecycleFolderRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the folder to recycle"
          }
        },
        "additionalProperties": false,
        "description": "Requests that a folder be moved to the user's trash folder"
      },
      "RecycleFolderResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a folder is recycled"
      },
      "RecycleResourcesRequest": {
        "type": "object",
        "properties": {
          "resourceIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Selected Resource ids",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests that a document be moved to the user's trash folder"
      },
      "RegisterFolderWatchResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "RegisterResourceWatchRequest": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          },
          "bearerToken": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RemoveDocumentSetConfigurationRequest": {
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RemoveDocumentSetConfigurationResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "RemoveDocumentTypeFieldRequest": {
        "required": [
          "documentTypeId",
          "metaDataFieldId"
        ],
        "type": "object",
        "properties": {
          "documentTypeId": {
            "minLength": 1,
            "type": "string"
          },
          "metaDataFieldId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "RemoveDocumentTypeFieldResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "RemoveDocumentTypeRequest": {
        "type": "object",
        "properties": {
          "documentTypeId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RemoveDocumentTypeResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "RemoveMetaDataFieldRequest": {
        "required": [
          "metaDataFieldId"
        ],
        "type": "object",
        "properties": {
          "metaDataFieldId": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "RemoveMetaDataFieldResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "RenameFolderRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendVerificationLinkRequest": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResendVerificationLinkResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "ResetAllDashboardsRequest": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResetDashboardRequest": {
        "type": "object",
        "properties": {
          "dashboardId": {
            "type": "string",
            "description": "The id of the dashboard to reset",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests a dashboard to be reset to its default state"
      },
      "ResetDashboardResponse": {
        "type": "object",
        "properties": {
          "dashboardId": {
            "type": "string",
            "description": "The new dashboard id",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returned when a dashboard is reset"
      },
      "ResolveSignInUsernameRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "description": "The address as the user typed it, in any casing.",
            "nullable": true
          },
          "password": {
            "type": "string",
            "description": "The password the user is signing in with. Verified with the identity provider before anything\nis disclosed. Never logged.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Bug 88785. Asks which form of an e-mail address Cognito accepts as a sign-in username, for a\nbrowser whose sign-in with the lower-cased address was refused. The password is the proof: the\nAPI verifies it against the resolved username before answering."
      },
      "ResolveSignInUsernameResponse": {
        "type": "object",
        "properties": {
          "signInUsername": {
            "type": "string",
            "description": "The e-mail form Cognito accepts as a sign-in username, or null when nothing\ncan be disclosed (unknown address, wrong password, or only the lower-cased form exists).\nOnly ever a casing of the address the caller supplied, never the physical Cognito\n`Username`.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Bug 88785. The username Cognito accepts for the address in the request, returned only after the\npassword in the request verified against it (bugs 84720 / 85103: the stored casing and the\nsign-in alias can differ, and the browser authenticates against the alias)."
      },
      "ResourceActionType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16,
          17,
          18,
          19,
          20,
          21,
          22,
          23,
          24,
          25,
          26,
          27,
          28
        ],
        "type": "integer",
        "description": "\n\n0 = Approve\n\n1 = Create\n\n2 = Deactivate\n\n3 = Delete\n\n4 = DeleteAll\n\n5 = Download\n\n6 = Details\n\n7 = Favorite\n\n8 = RemoveFavorite\n\n9 = Metadata\n\n10 = Move\n\n11 = Path\n\n12 = Recycle\n\n13 = Rename\n\n14 = RequestApproval\n\n15 = Restore\n\n16 = Share\n\n17 = Shortcut\n\n18 = Update\n\n19 = Upload\n\n20 = Unshare\n\n21 = Permissions\n\n22 = History\n\n23 = Versions\n\n24 = CheckIn\n\n25 = UploadCheckIn\n\n26 = UpdateExpirationDate\n\n27 = Copy\n\n28 = MarkAsUnread",
        "format": "int32",
        "x-enumNames": [
          "Approve",
          "Create",
          "Deactivate",
          "Delete",
          "DeleteAll",
          "Download",
          "Details",
          "Favorite",
          "RemoveFavorite",
          "Metadata",
          "Move",
          "Path",
          "Recycle",
          "Rename",
          "RequestApproval",
          "Restore",
          "Share",
          "Shortcut",
          "Update",
          "Upload",
          "Unshare",
          "Permissions",
          "History",
          "Versions",
          "CheckIn",
          "UploadCheckIn",
          "UpdateExpirationDate",
          "Copy",
          "MarkAsUnread"
        ]
      },
      "ResourceComment": {
        "type": "object",
        "properties": {
          "resourceCommentId": {
            "type": "string",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "creatorId": {
            "type": "string",
            "nullable": true
          },
          "creatorFirstName": {
            "type": "string",
            "nullable": true
          },
          "creatorLastName": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/ResourceCommentStatus"
          },
          "resourceCommentUserTags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceCommentUserTag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceCommentStatus": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = ACTIVE\n\n1 = DELETED",
        "format": "int32",
        "x-enumNames": [
          "ACTIVE",
          "DELETED"
        ]
      },
      "ResourceCommentUserTag": {
        "type": "object",
        "properties": {
          "tagId": {
            "type": "string",
            "nullable": true
          },
          "resourceCommentId": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "tagName": {
            "type": "string",
            "nullable": true
          },
          "tagValue": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceCountResponse": {
        "type": "object",
        "properties": {
          "folderCount": {
            "type": "integer",
            "description": "Total number of folders found.",
            "format": "int32"
          },
          "fileCount": {
            "type": "integer",
            "description": "Total number of files found.",
            "format": "int32"
          },
          "moveLimitExceeded": {
            "type": "boolean",
            "description": "Indicates whether the move limit has been exceeded."
          },
          "maxFileMoveLimit": {
            "type": "integer",
            "description": "Indicates maximum file move limit.",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Response model containing file/folder counts and limit flag."
      },
      "ResourceInfo": {
        "type": "object",
        "properties": {
          "resourceLocator": {
            "$ref": "#/components/schemas/ResourceLocator"
          },
          "name": {
            "type": "string",
            "description": "The resource name. If this resource is a document, this will be the\ndocument name. This field does not contain the folder path of the\nresource",
            "nullable": true
          },
          "parentFolderId": {
            "type": "string",
            "description": "The id of the folder that this resource resides in. \nIf the resource is in the trash, this always refers to the \ntrash folder, regardless of where the resource originally\nexisted in the hierarchy.",
            "nullable": true
          },
          "ownerId": {
            "type": "string",
            "description": "The id of the user who currently owns the resource",
            "nullable": true
          },
          "owner": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "description": "The id of the user who created/uploaded the resource",
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "createdTimestamp": {
            "type": "string",
            "description": "The date the resource was created/uploaded",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "description": "The date the resource was last modified. This is updated when a new version\nof the resource is uploaded, edited via collaboration, deleted or moved",
            "format": "date-time",
            "nullable": true
          },
          "isFavorite": {
            "type": "boolean",
            "description": "Returns true if the document is in the requesting user's favorites list"
          },
          "isShared": {
            "type": "boolean",
            "description": "Returns true if the document is in the shared list"
          },
          "isLocked": {
            "type": "boolean",
            "description": "Returns true if the document is locked from editing"
          },
          "isCheckedOut": {
            "type": "boolean",
            "description": "Returns true if the document is checked out"
          },
          "resourceState": {
            "$ref": "#/components/schemas/ResourceStateType"
          },
          "searchHighlight": {
            "type": "string",
            "description": "Returns a section of the document text if this is being\nreturned from a search",
            "nullable": true
          },
          "size": {
            "type": "integer",
            "description": "The size of the resource in bytes.\nThis is returned for both documents and folders.\nFor documents, this refers to only the latest version of the document.\nFor folders, this refers to all space taken up by all versions within the folder and its children.",
            "format": "int64"
          },
          "daysToDeletion": {
            "type": "integer",
            "description": "Amount of time in days before item is deleted from trash folder",
            "format": "int32",
            "nullable": true
          },
          "modifierId": {
            "type": "string",
            "description": "ID of the user who modified the Resource",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          },
          "modifier": {
            "$ref": "#/components/schemas/User"
          },
          "isRead": {
            "type": "boolean",
            "description": "False for all new documents. Is set to true if document is previewed or edited."
          },
          "collection": {
            "$ref": "#/components/schemas/Collection"
          },
          "cabinet": {
            "$ref": "#/components/schemas/Cabinet"
          },
          "documentTypeName": {
            "type": "string",
            "description": "The name of the resource's document type",
            "nullable": true
          },
          "expirationTimestamp": {
            "type": "string",
            "description": "The date the resource will expire",
            "format": "date-time",
            "nullable": true
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          },
          "dueDateTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "documentSetStatus": {
            "$ref": "#/components/schemas/DocumentSetStatusType"
          },
          "approverComments": {
            "type": "string",
            "nullable": true
          },
          "isRequiredInDocumentSet": {
            "type": "boolean",
            "description": "IsRequired flag based on document set configuration",
            "nullable": true
          },
          "messageToAdmin": {
            "type": "string",
            "description": "Digital mail notification message from user",
            "nullable": true
          },
          "messageFromUser": {
            "type": "string",
            "description": "Digital mail notification message sent by user",
            "nullable": true
          },
          "fileLevelSelectiveIndexingEnabled": {
            "type": "boolean"
          },
          "resourceSearchIndex": {
            "$ref": "#/components/schemas/ResourceSearchIndex"
          },
          "resourceLocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceLock"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a resource (folder or document)"
      },
      "ResourceLocator": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The resource id",
            "nullable": true
          },
          "resourceType": {
            "$ref": "#/components/schemas/ResourceType"
          },
          "destinationParentFolderId": {
            "type": "string",
            "description": "When set, overrides `DestinationFolderId` on the batch request for this specific resource.\nServer-side only — never sent by the client.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Refers to a resource (document, folder, etc...) by id and type.\nThis class provides a hint to the Api as to what type of resource\nthe associated id is intended to return.\nGenerally speaking, if a ResourceType is sepcified and the id \nrefers to a resource of a different type, a 404 Not Found error \nwill be returned"
      },
      "ResourceLock": {
        "type": "object",
        "properties": {
          "lockGuid": {
            "type": "string",
            "nullable": true
          },
          "resourceGuid": {
            "type": "string",
            "nullable": true
          },
          "organizationGuid": {
            "type": "string",
            "nullable": true
          },
          "parentLockGuid": {
            "type": "string",
            "nullable": true
          },
          "inherited": {
            "type": "boolean"
          },
          "parentResourceGuid": {
            "type": "string",
            "nullable": true
          },
          "initiatorGuid": {
            "type": "string",
            "nullable": true
          },
          "lockType": {
            "$ref": "#/components/schemas/ResourceLockType"
          }
        },
        "additionalProperties": false
      },
      "ResourceLockType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = LOCK\n\n1 = CHECK_OUT",
        "format": "int32",
        "x-enumNames": [
          "LOCK",
          "CHECK_OUT"
        ]
      },
      "ResourceMetaDataField": {
        "type": "object",
        "properties": {
          "resourceMetaDataFieldId": {
            "type": "string",
            "nullable": true
          },
          "stringValue": {
            "type": "string",
            "nullable": true
          },
          "numberValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "booleanValue": {
            "type": "boolean",
            "nullable": true
          },
          "dateTimeValue": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "metaDataFieldId": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "metaDataField": {
            "$ref": "#/components/schemas/MetaDataField"
          }
        },
        "additionalProperties": false
      },
      "ResourcePathComponent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The folder id",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The folder name",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains the id and name for a folder within the hierarchy"
      },
      "ResourceSearchIndex": {
        "type": "object",
        "properties": {
          "resourceSearchIndexStatus": {
            "$ref": "#/components/schemas/ResourceSearchIndexStatus"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResourceSearchIndexStatus": {
        "enum": [
          0,
          1,
          2,
          3
        ],
        "type": "integer",
        "description": "\n\n0 = NotAvailable\n\n1 = InProgress\n\n2 = Successful\n\n3 = Failed",
        "format": "int32",
        "x-enumNames": [
          "NotAvailable",
          "InProgress",
          "Successful",
          "Failed"
        ]
      },
      "ResourceSortType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "The field to sort resources by\n\n0 = NAME\n\n1 = DATE",
        "format": "int32",
        "x-enumNames": [
          "NAME",
          "DATE"
        ]
      },
      "ResourceStateType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "Describes what state the resource is in, with respect to recycling\n(moving to, or from, or being in the trash) and deletion.\n\n0 = NOT_SPECIFIED\n\n1 = ACTIVE\n\n2 = RECYCLED\n\n3 = RECYCLING\n\n4 = RESTORING\n\n5 = DELETING",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "ACTIVE",
          "RECYCLED",
          "RECYCLING",
          "RESTORING",
          "DELETING"
        ]
      },
      "ResourceType": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Describes whether an associated resource is a folder, document, version, etc...\n\n0 = User\n\n1 = Folder\n\n2 = Document\n\n3 = DocumentVersion\n\n4 = SemanticSearch",
        "format": "int32",
        "x-enumNames": [
          "User",
          "Folder",
          "Document",
          "DocumentVersion",
          "SemanticSearch"
        ]
      },
      "RestoreDocumentRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to restore"
          },
          "parentId": {
            "type": "string",
            "description": "The id of the folder where the document is to be restored\nIf value is null, document is restored to user's root folder",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests that a document be restored from the trash to its original location"
      },
      "RestoreDocumentResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a folder is restored from the trash"
      },
      "RestoreFolderRequest": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the folder to restore"
          },
          "parentId": {
            "type": "string",
            "description": "The id of the folder where the folder is to be restored\nIf value is null, folder is restored to user's root folder",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Requests that a folder be restored from the trash to its original location"
      },
      "RestoreFolderResponse": {
        "type": "object",
        "additionalProperties": false,
        "description": "Returned when a folder is restored from the trash"
      },
      "RoleStatusType": {
        "enum": [
          0,
          1
        ],
        "type": "integer",
        "description": "\n\n0 = Active\n\n1 = Pending",
        "format": "int32",
        "x-enumNames": [
          "Active",
          "Pending"
        ]
      },
      "RoleType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7
        ],
        "type": "integer",
        "description": "The various roles allowed within the system\n\n0 = NOT_SPECIFIED\n\n1 = ADMIN\n\n2 = SUBSCRIPTION_ADMIN\n\n3 = USER\n\n4 = GUEST_USER\n\n5 = GUEST_USER_PERMALINK\n\n6 = DATA_EXTRACTION\n\n7 = PREMIUM_CONTENT_ASSISTANT",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "ADMIN",
          "SUBSCRIPTION_ADMIN",
          "USER",
          "GUEST_USER",
          "GUEST_USER_PERMALINK",
          "DATA_EXTRACTION",
          "PREMIUM_CONTENT_ASSISTANT"
        ]
      },
      "SearchCollectionsRequest": {
        "type": "object",
        "properties": {
          "searchString": {
            "type": "string",
            "description": "The search string to return collection information",
            "nullable": true
          },
          "pageSize": {
            "type": "integer",
            "description": "The Page size to return collection information",
            "format": "int32"
          },
          "pageNumber": {
            "type": "integer",
            "description": "The page number to return collection information",
            "format": "int32"
          },
          "orderType": {
            "$ref": "#/components/schemas/OrderType"
          },
          "collectionIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "List of collection ids to return collection information",
            "nullable": true
          },
          "omitCollectionIds": {
            "type": "boolean",
            "description": "Whether or not the collection ids filter values omitted\nto return collection information"
          },
          "omitSystemCollection": {
            "type": "boolean",
            "description": "Whether or not the system collection values omitted\nto return collection information"
          }
        },
        "additionalProperties": false,
        "description": "Collection filter criteria"
      },
      "SearchCollectionsResponse": {
        "type": "object",
        "properties": {
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Collection"
            },
            "description": "Contains all information about the collection",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Returns the filtered result from all collections"
      },
      "SetExpirationDateRequest": {
        "type": "object",
        "properties": {
          "collectionId": {
            "type": "string",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "notificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetExpirationDateResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "SetResourceDocumentTypeRequest": {
        "required": [
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetResourceDocumentTypeResponse": {
        "type": "object",
        "properties": {
          "resourceId": {
            "type": "string",
            "nullable": true
          },
          "documentType": {
            "$ref": "#/components/schemas/DocumentType"
          }
        },
        "additionalProperties": false
      },
      "SetResourceMetaDataFieldsRequest": {
        "required": [
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "resourceMetaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceMetaDataField"
            },
            "nullable": true
          },
          "metadataBatchId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SetResourceMetaDataFieldsResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "ShareAccessType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          100
        ],
        "type": "integer",
        "description": "Access types\n\n0 = NOT_SPECIFIED\n\n1 = VIEWER\n\n2 = EDITOR\n\n3 = CONTRIBUTOR\n\n4 = MANAGER\n\n100 = OWNER",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "VIEWER",
          "EDITOR",
          "CONTRIBUTOR",
          "MANAGER",
          "OWNER"
        ]
      },
      "SharePrincipal": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "role": {
            "$ref": "#/components/schemas/ShareAccessType"
          },
          "type": {
            "$ref": "#/components/schemas/PrincipalType"
          },
          "remove": {
            "type": "boolean",
            "description": "Whether or not the share principle instance is in removed state"
          },
          "emailAddress": {
            "type": "string",
            "description": "shared email address",
            "nullable": true
          },
          "expirationDate": {
            "type": "string",
            "description": "Expiration date of a share instance",
            "format": "date-time",
            "nullable": true
          },
          "recipientId": {
            "type": "string",
            "description": "share recipient id",
            "nullable": true
          },
          "recipientGroupId": {
            "type": "string",
            "description": "share recepient group id",
            "nullable": true
          },
          "optionalMessage": {
            "type": "string",
            "description": "optional message of share",
            "nullable": true
          },
          "languageCode": {
            "type": "string",
            "description": "Language used to send share email",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Share principals of an instance"
      },
      "StorageRule": {
        "type": "object",
        "properties": {
          "storageAllocatedInBytes": {
            "type": "integer",
            "description": "The total space available to the user",
            "format": "int64"
          },
          "storageType": {
            "$ref": "#/components/schemas/StorageType"
          }
        },
        "additionalProperties": false,
        "description": "Describes the storage available to a user"
      },
      "StorageType": {
        "enum": [
          0,
          1,
          -1
        ],
        "type": "integer",
        "description": "The storage plan that the user is on\n\n0 = QUOTA\n\n1 = UNLIMITED\n\n-1 = UNKNOWN",
        "format": "int32",
        "x-enumNames": [
          "QUOTA",
          "UNLIMITED",
          "UNKNOWN"
        ]
      },
      "Subscription": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SubscriptionStatusType"
          },
          "ecommerceSubscriptionId": {
            "type": "string",
            "nullable": true
          },
          "maxUsers": {
            "type": "integer",
            "format": "int32"
          },
          "concurrentUsers": {
            "type": "integer",
            "format": "int32"
          },
          "costPerUser": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "$ref": "#/components/schemas/Currency"
          },
          "currencySymbol": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "totalStorageSize": {
            "type": "string",
            "nullable": true
          },
          "totalStorageBytes": {
            "type": "integer",
            "format": "int64"
          },
          "perUserStorageBytes": {
            "type": "integer",
            "format": "int64"
          },
          "promotion": {
            "type": "string",
            "nullable": true
          },
          "optionId": {
            "type": "integer",
            "format": "int32"
          },
          "optionClass": {
            "$ref": "#/components/schemas/SubscriptionOptionClass"
          },
          "optionLength": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "isTrial": {
            "type": "boolean"
          },
          "isExpired": {
            "type": "boolean",
            "readOnly": true
          },
          "billingInterval": {
            "$ref": "#/components/schemas/BillingInterval"
          },
          "ecommerceProvider": {
            "$ref": "#/components/schemas/EcommerceProviderType"
          },
          "promoCode": {
            "type": "string",
            "nullable": true
          },
          "creatorFirstName": {
            "type": "string",
            "nullable": true
          },
          "creatorLastName": {
            "type": "string",
            "nullable": true
          },
          "ownerFirstName": {
            "type": "string",
            "nullable": true
          },
          "ownerLastName": {
            "type": "string",
            "nullable": true
          },
          "partDescription": {
            "type": "string",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "startTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationTimestamp": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "additionalStoragePacks": {
            "type": "integer",
            "format": "int32"
          },
          "costs": {
            "type": "object",
            "properties": {
              "USD": {
                "$ref": "#/components/schemas/SubscriptionCost"
              },
              "EUR": {
                "$ref": "#/components/schemas/SubscriptionCost"
              },
              "GBP": {
                "$ref": "#/components/schemas/SubscriptionCost"
              },
              "CAD": {
                "$ref": "#/components/schemas/SubscriptionCost"
              }
            },
            "additionalProperties": false,
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionCost": {
        "type": "object",
        "properties": {
          "cost": {
            "type": "number",
            "format": "double"
          },
          "costPerUser": {
            "type": "number",
            "format": "double"
          },
          "costPerPeriod": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "SubscriptionDetailsRequest": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionOptionClass": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = StaticOption\n\n1 = ConcurrentUserOption\n\n2 = NamedUserOption",
        "format": "int32",
        "x-enumNames": [
          "StaticOption",
          "ConcurrentUserOption",
          "NamedUserOption"
        ]
      },
      "SubscriptionOwnerRequest": {
        "type": "object",
        "properties": {
          "organizations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubscriptionStatusType": {
        "enum": [
          1,
          2,
          4,
          8,
          16,
          32
        ],
        "type": "integer",
        "description": "\n\n1 = Active\n\n2 = Cancelled\n\n4 = Expired\n\n8 = Pending\n\n16 = Unverified\n\n32 = Resended",
        "format": "int32",
        "x-enumNames": [
          "Active",
          "Cancelled",
          "Expired",
          "Pending",
          "Unverified",
          "Resended"
        ]
      },
      "SubscriptionUpdateType": {
        "enum": [
          0,
          1,
          2
        ],
        "type": "integer",
        "description": "\n\n0 = PlanType\n\n1 = ExpirationDate\n\n2 = ExpirationDateAndPackSize",
        "format": "int32",
        "x-enumNames": [
          "PlanType",
          "ExpirationDate",
          "ExpirationDateAndPackSize"
        ]
      },
      "Textract": {
        "enum": [
          0,
          1,
          2,
          3,
          4
        ],
        "type": "integer",
        "description": "Per-organization OCR / text-extraction configuration. THIS IS THE CANONICAL DEFINITION —\nbackend dispatch, the Angular UI, and the admin console must all interpret the value the same way.\n\nThere are exactly TWO extraction routes:<list type=\"number\"><item><term>Default route</term><description>\n    Tika first → IronOCR fallback → (optional trip to AWS Textract / Content Assistant ONLY when the org\n    is configured for it AND IronOCR confidence is below the org's threshold). This is the route for the\n    overwhelming majority of organizations. There is exactly ONE IronOCR implementation: when the fallback\n    runs, ALL of its fail-safes apply uniformly — large-document chunking, the hard time-box deadline, and\n    the low-confidence Content Assistant trip. Tika is attempted exactly once (\"single shot to Tika\").\n    </description></item><item><term>Content Assistant route</term><description>\n    AWS Textract as the primary OCR engine. A user opts into this explicitly in the UI\n    (\"Use Content Assistant for all OCR\").\n    </description></item></list>\nRouting is determined SOLELY by this value (Cabinet organizations included — being a Cabinet does NOT by\nitself force the Content Assistant route). Only DocuShare.Common.Enums.Textract.CONTENTASSISTANT takes the Content Assistant\nroute; every other value (including the DocuShare.Common.Enums.Textract.AWS default, absent/legacy values, and\nDocuShare.Common.Enums.Textract.CONTENTASSISTANT_IRONOCR) takes the Default route.\n\n0 = AWS (Entity default for newly-created and legacy organizations (the UI never writes this value).\nDespite the name, AWS takes the <b>Default route</b> (Tika → IronOCR), NOT the AWS Textract route.\nDo not infer routing from the name — this value exists for historical/back-compat reasons only.)\n\n1 = IRONOCR (Written by the UI when Content Assistant OCR is toggled OFF. Default route (Tika → IronOCR), no\nContent Assistant trip.)\n\n2 = CONTENTASSISTANT (Written by the UI when the user selects Content Assistant as the OCR engine.\nThe ONLY value that takes the Content Assistant route (AWS Textract as primary OCR).)\n\n3 = CONTENTASSISTANT_IRONOCR (Written by the UI when the user enables IronOCR as the primary engine WITH Content Assistant as the\nlow-confidence fallback. Default route: Tika → IronOCR, and on low IronOCR confidence (below the org's\nthreshold) the optional Content Assistant trip fires. This is the \"optional trip to AWS Textract when\nconfigured\" leg of the Default route.)\n\n4 = TIKA (Legacy explicit-Tika value (the UI never writes this). Default route (Tika → IronOCR).)",
        "format": "int32",
        "x-enumNames": [
          "AWS",
          "IRONOCR",
          "CONTENTASSISTANT",
          "CONTENTASSISTANT_IRONOCR",
          "TIKA"
        ],
        "x-enumDescriptions": [
          "Entity default for newly-created and legacy organizations (the UI never writes this value).\nDespite the name, AWS takes the <b>Default route</b> (Tika → IronOCR), NOT the AWS Textract route.\nDo not infer routing from the name — this value exists for historical/back-compat reasons only.",
          "Written by the UI when Content Assistant OCR is toggled OFF. Default route (Tika → IronOCR), no\nContent Assistant trip.",
          "Written by the UI when the user selects Content Assistant as the OCR engine.\nThe ONLY value that takes the Content Assistant route (AWS Textract as primary OCR).",
          "Written by the UI when the user enables IronOCR as the primary engine WITH Content Assistant as the\nlow-confidence fallback. Default route: Tika → IronOCR, and on low IronOCR confidence (below the org's\nthreshold) the optional Content Assistant trip fires. This is the \"optional trip to AWS Textract when\nconfigured\" leg of the Default route.",
          "Legacy explicit-Tika value (the UI never writes this). Default route (Tika → IronOCR)."
        ]
      },
      "ThemeType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9
        ],
        "type": "integer",
        "description": "List of theme available in\n\n0 = Cerulean\n\n1 = Green\n\n2 = Olive\n\n3 = Steel\n\n4 = Orange\n\n5 = Fuchsia\n\n6 = Violet\n\n7 = Purple\n\n8 = Sapphire\n\n9 = Blue",
        "format": "int32",
        "x-enumNames": [
          "Cerulean",
          "Green",
          "Olive",
          "Steel",
          "Orange",
          "Fuchsia",
          "Violet",
          "Purple",
          "Sapphire",
          "Blue"
        ]
      },
      "TokenRefreshRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "description": "Refresh token from previous token response",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for token refresh endpoint"
      },
      "TokenRevocationRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "Access token or refresh token to revoke",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Request model for token revocation endpoint"
      },
      "TrailNotificationRequest": {
        "type": "object",
        "properties": {
          "userFullName": {
            "type": "string",
            "description": "The customer's full name. Superseded by DocuShare.Models.TrailNotificationRequest.CustomerFullName; still read when that is empty, for a\nrequest from an Admin API deployed before PBI 80616.",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "description": "The customer's email. Superseded by DocuShare.Models.TrailNotificationRequest.CustomerEmail; still read when that is empty, for a request\nfrom an Admin API deployed before PBI 80616. Never used as a recipient.",
            "nullable": true
          },
          "supportDl": {
            "type": "string",
            "description": "The trial-request distribution list the Sales email goes to.",
            "nullable": true
          },
          "partnerName": {
            "type": "string",
            "description": "The submitting partner's name, from their sign-in. Empty when the sign-in gave none.",
            "nullable": true
          },
          "partnerEmail": {
            "type": "string",
            "description": "The submitting partner's email, from their sign-in. The partner confirmation goes here only.",
            "nullable": true
          },
          "customerFullName": {
            "type": "string",
            "description": "The customer's full name, as typed on the form.",
            "nullable": true
          },
          "customerEmail": {
            "type": "string",
            "description": "The customer's email, as typed on the form. Shown in the emails; never a recipient.",
            "nullable": true
          },
          "companyName": {
            "type": "string",
            "description": "The customer's company name, as typed on the form.",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "description": "The DocuShare Go Organization Name, as typed on the form.",
            "nullable": true
          },
          "customerWebsite": {
            "type": "string",
            "description": "The customer's website, as typed on the form; null or empty when not provided.",
            "nullable": true
          },
          "customerLanguage": {
            "type": "string",
            "description": "The customer's language as chosen on the form, by English name (PBI 91335, Feature 80618 FR-13). Shown in\nboth emails only; it never changes the emails' language. Null from an Admin API deployed before PBI 91335.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "What the Admin API sends the main API when a partner's trial request is stored, so it can send the request\nemails (PBI 80616). The Admin API has its own copy of this class; the two must keep the same property names."
      },
      "UpdateCabinetRequest": {
        "required": [
          "cabinetGuid",
          "name"
        ],
        "type": "object",
        "properties": {
          "cabinetGuid": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/CabinetStatus"
          },
          "cabinetTypeId": {
            "type": "string",
            "nullable": true
          },
          "documentTypeIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "fieldMappingIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCollectionRequest": {
        "required": [
          "collectionId",
          "name"
        ],
        "type": "object",
        "properties": {
          "collectionId": {
            "minLength": 1,
            "type": "string",
            "description": "Collection id for delete operation"
          },
          "icon": {
            "$ref": "#/components/schemas/CustomIconType"
          },
          "name": {
            "maxLength": 64,
            "minLength": 1,
            "type": "string",
            "description": "Name of the collection instance"
          },
          "theme": {
            "$ref": "#/components/schemas/ThemeType"
          },
          "isDigitalMail": {
            "type": "boolean",
            "description": "Is this a digital mail folder",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "description": "Email address assigned to the digital mail collection",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "Department assigned to the digital mail collection",
            "nullable": true
          },
          "expirationPolicyEnabled": {
            "type": "boolean",
            "description": "Enable/Disable expiration policy for collection"
          },
          "expirationDays": {
            "type": "integer",
            "description": "Number of days after which resources in the collections are expired",
            "format": "int32"
          },
          "isIndexingCollection": {
            "type": "boolean",
            "description": "Enable/Disable indexing of collection"
          }
        },
        "additionalProperties": false,
        "description": "Collection information for update operation"
      },
      "UpdateCollectionResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "UpdateDocumentLevelIndexStatusRequest": {
        "type": "object",
        "properties": {
          "indexRequestId": {
            "type": "string",
            "nullable": true
          },
          "isTriggered": {
            "type": "boolean"
          },
          "collectionIndexExists": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateDocumentSetConfigurationRequest": {
        "required": [
          "configurationJson",
          "documentConfigurations",
          "documentSetConfigurationId",
          "name"
        ],
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "configurationJson": {
            "minLength": 1,
            "type": "string"
          },
          "documentConfigurations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DocumentConfiguration"
            }
          }
        },
        "additionalProperties": false
      },
      "UpdateDocumentSetConfigurationResponse": {
        "type": "object",
        "properties": {
          "documentSetConfigurationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateDocumentTypeRequest": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "dataExtractionConfigurationJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateDocumentTypeResponse": {
        "type": "object",
        "properties": {
          "documentType": {
            "$ref": "#/components/schemas/DocumentType"
          }
        },
        "additionalProperties": false
      },
      "UpdateDocumentVersionRequest": {
        "required": [
          "documentId",
          "versionId"
        ],
        "type": "object",
        "properties": {
          "documentId": {
            "minLength": 1,
            "type": "string",
            "description": "The id of the document to activate"
          },
          "versionId": {
            "minLength": 1,
            "type": "string",
            "description": "The version of the document to activate"
          },
          "metadata": {
            "type": "object",
            "additionalProperties": {
              "nullable": true
            },
            "description": "(Optional) Custom metadata for the document. This can contain \nany json structure and may also be omitted. This can also\nbe updated later",
            "nullable": true
          },
          "activityType": {
            "$ref": "#/components/schemas/ActivityType"
          },
          "isUploadNewVersion": {
            "type": "boolean"
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          },
          "documentConfigurationId": {
            "type": "string",
            "nullable": true
          },
          "resourceMetaDataFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceMetaDataField"
            },
            "nullable": true
          },
          "isUpdateWithMetadata": {
            "type": "boolean"
          },
          "waitForScan": {
            "type": "boolean",
            "description": "Bug 89052: the client wants completion to wait briefly (see `DocuShare:Upload:ScanGraceSeconds`) for the\nserver-side scan, so a quick scan is invisible to it. Off by default: a client that does not set it gets the\nanswer at once and polls the scan status."
          }
        },
        "additionalProperties": false,
        "description": "Completes a document upload and activates the uploaded version"
      },
      "UpdateDocumentVersionResponse": {
        "type": "object",
        "properties": {
          "isPendingScan": {
            "type": "boolean",
            "description": "Bug 89052: the version was committed but is not available until the server-side malware scan\nof its stored bytes is clean. The client polls the upload scan status until it resolves."
          }
        },
        "additionalProperties": false,
        "description": "Returned once a document has been activated after being uploaded"
      },
      "UpdateIndexStatusRequest": {
        "type": "object",
        "properties": {
          "indexRequestId": {
            "type": "string",
            "nullable": true
          },
          "isTriggered": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateIndexStatusResponse": {
        "type": "object",
        "additionalProperties": false
      },
      "UpdateMetaDataFieldRequest": {
        "required": [
          "dataType",
          "metaDataFieldId",
          "name"
        ],
        "type": "object",
        "properties": {
          "metaDataFieldId": {
            "minLength": 1,
            "type": "string"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "dataType": {
            "$ref": "#/components/schemas/MetaDataFieldDataTypes"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isDocumentSetRequired": {
            "type": "boolean"
          },
          "isAutomationExtractRequired": {
            "type": "boolean"
          },
          "automationQuery": {
            "type": "string",
            "nullable": true
          },
          "documentTypeId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateMetaDataFieldResponse": {
        "type": "object",
        "properties": {
          "metaDataField": {
            "$ref": "#/components/schemas/MetaDataField"
          }
        },
        "additionalProperties": false
      },
      "UpdateOrganizationTextractTypeRequest": {
        "required": [
          "textractType"
        ],
        "type": "object",
        "properties": {
          "textractType": {
            "$ref": "#/components/schemas/Textract"
          },
          "ocrConfidenceThreshold": {
            "type": "number",
            "format": "double"
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSubscriptionRequestByAdmin": {
        "type": "object",
        "properties": {
          "subscriptionId": {
            "type": "string",
            "nullable": true
          },
          "organizationId": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "expirationTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "optionId": {
            "type": "integer",
            "format": "int32"
          },
          "optionClass": {
            "$ref": "#/components/schemas/SubscriptionOptionClass"
          },
          "concurrentUsers": {
            "type": "integer",
            "format": "int32"
          },
          "updateType": {
            "$ref": "#/components/schemas/SubscriptionUpdateType"
          },
          "contentAssistantPackSize": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "UploadSignatureInitiateRequest": {
        "required": [
          "contentType",
          "fileSize",
          "resourceId"
        ],
        "type": "object",
        "properties": {
          "resourceId": {
            "minLength": 1,
            "type": "string"
          },
          "versionId": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "minLength": 1,
            "type": "string"
          },
          "fileSize": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "UploadSignatureInitiateResponse": {
        "type": "object",
        "properties": {
          "uploadUrl": {
            "type": "string",
            "nullable": true
          },
          "fileName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "User": {
        "type": "object",
        "properties": {
          "organizationId": {
            "type": "string",
            "description": "The id of the organization (tenant) the user belongs to",
            "nullable": true
          },
          "defaultOrganizationId": {
            "type": "string",
            "description": "The default organization (tenant) the user has choosen",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "The id of the user",
            "nullable": true
          },
          "identityId": {
            "type": "string",
            "description": "The id of the user within Cognito",
            "nullable": true
          },
          "username": {
            "type": "string",
            "description": "The user's Username (Email Address).\nDoes not correspond to the associated username in Cognito.",
            "nullable": true
          },
          "emailAddress": {
            "type": "string",
            "description": "The user's email address",
            "nullable": true
          },
          "firstName": {
            "type": "string",
            "description": "The user's given name",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "description": "The user's family name",
            "nullable": true
          },
          "createdTimestamp": {
            "type": "string",
            "description": "The date the user was created",
            "format": "date-time"
          },
          "modifiedTimestamp": {
            "type": "string",
            "description": "The date the user was last updated. This does not get updated\nwhenever the user takes an action in the system",
            "format": "date-time"
          },
          "languageCode": {
            "type": "string",
            "description": "The language associated with the user.\nThis is used for communication with the user such as emails,\nSMS and notifications. It has no effect on what language the\nwebsite is displayed in or how dates/currencies are formatted",
            "nullable": true
          },
          "department": {
            "type": "string",
            "description": "The department name to which user belongs to.",
            "nullable": true
          },
          "tosAcceptanceDate": {
            "type": "string",
            "description": "The date the user was accepted the Terms of service.",
            "format": "date-time"
          },
          "timeZoneId": {
            "type": "string",
            "description": "The time zone associated with the user",
            "nullable": true
          },
          "phoneNumber": {
            "type": "string",
            "description": "The user's phone number",
            "nullable": true
          },
          "streetAddress": {
            "type": "string",
            "description": "The user's street address.\nThere are no formatting restrictions on the user's address",
            "nullable": true
          },
          "locality": {
            "type": "string",
            "description": "The user's city/town/etc...",
            "nullable": true
          },
          "postalCode": {
            "type": "string",
            "description": "The user's zip code",
            "nullable": true
          },
          "region": {
            "type": "string",
            "description": "The user's region/county",
            "nullable": true
          },
          "recycleBinFolderId": {
            "type": "string",
            "description": "The id of the user's trash folder",
            "nullable": true
          },
          "rootFolderId": {
            "type": "string",
            "description": "The id of the user's root folder",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/UserStatusType"
          },
          "storage": {
            "$ref": "#/components/schemas/UserStorage"
          },
          "organization": {
            "$ref": "#/components/schemas/Organization"
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PermissionType"
            },
            "description": "The list of permissions assigned to the user",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserRole"
            },
            "description": "The list of roles assigned to the user",
            "nullable": true
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Collection"
            },
            "description": "The list of collections",
            "nullable": true
          },
          "cabinets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Cabinet"
            },
            "description": "The list of cabinet",
            "nullable": true
          },
          "preferences": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "additionalProperties": {
                "$ref": "#/components/schemas/NotificationPreference"
              },
              "nullable": true
            },
            "description": "Contains the user's preferences, such as for communications",
            "nullable": true
          },
          "cognitoUsername": {
            "type": "string",
            "nullable": true
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "providerId": {
            "type": "string",
            "nullable": true
          },
          "identities": {
            "type": "array",
            "items": { },
            "nullable": true
          },
          "enabled": {
            "type": "boolean"
          },
          "whatsNewDisplayed": {
            "type": "boolean"
          },
          "contentAssistantLandingDisplayed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false,
        "description": "Describes a user of the system"
      },
      "UserDashboard": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The dashboard id",
            "nullable": true
          },
          "widgets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DashboardWidget"
            },
            "description": "The list of widgets on the dashboard",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains all information about a user dashboard \n(home screen)"
      },
      "UserDetailsType": {
        "enum": [
          0,
          1,
          3,
          16,
          17
        ],
        "type": "integer",
        "description": "\n\n0 = Basic\n\n1 = Authorization\n\n3 = Listing\n\n16 = Preferences\n\n17 = Full",
        "format": "int32",
        "x-enumNames": [
          "Basic",
          "Authorization",
          "Listing",
          "Preferences",
          "Full"
        ],
        "x-enumDescriptions": [
          "Roles, permissions and storage for a paged user list, without the user's collections,\ncabinets or folder ids, so its cost does not grow with the collections each user can see.\nHonoured by the user-list conversion (`UserConverter.Convert(IQueryable<User>, ...)`,\nused by `GetUsersAsync`); single-user conversions treat it as DocuShare.Common.Enums.UserDetailsType.Authorization."
        ]
      },
      "UserRole": {
        "type": "object",
        "properties": {
          "role": {
            "$ref": "#/components/schemas/RoleType"
          },
          "status": {
            "$ref": "#/components/schemas/RoleStatusType"
          }
        },
        "additionalProperties": false
      },
      "UserStatusType": {
        "enum": [
          0,
          1,
          2,
          3,
          4,
          5
        ],
        "type": "integer",
        "description": "The various states that a user can be in\n\n0 = NOT_SPECIFIED\n\n1 = ACTIVE\n\n2 = INACTIVE\n\n3 = PENDING\n\n4 = INVITED\n\n5 = DELETING",
        "format": "int32",
        "x-enumNames": [
          "NOT_SPECIFIED",
          "ACTIVE",
          "INACTIVE",
          "PENDING",
          "INVITED",
          "DELETING"
        ]
      },
      "UserStorage": {
        "type": "object",
        "properties": {
          "storageRule": {
            "$ref": "#/components/schemas/StorageRule"
          },
          "storageUtilizedInBytes": {
            "type": "integer",
            "description": "The total amount of storage currently being consumed\nby the user. Includes all versions of all files, not\njust the latest version of each",
            "format": "int64"
          }
        },
        "additionalProperties": false,
        "description": "Describes the amount of total storage a user has, as well\nas how much is currently being consumed"
      },
      "WidgetConfiguration": {
        "required": [
          "configuration",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "configuration": {
            "minLength": 1,
            "type": "string",
            "description": "The base configuration for the widget"
          }
        },
        "additionalProperties": false,
        "description": "The configuration for a widget. Used for updates"
      },
      "WidgetCustomization": {
        "required": [
          "configuration",
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "configuration": {
            "minLength": 1,
            "type": "string",
            "description": "The customized configuration for the widget"
          }
        },
        "additionalProperties": false,
        "description": "The customized configuration for a widget. Used for\nupdates"
      },
      "WidgetDisplay": {
        "type": "object",
        "properties": {
          "visible": {
            "type": "boolean",
            "description": "Whether or not the widget is visible"
          },
          "displayName": {
            "type": "string",
            "description": "The (unlocalized) display name of the widget.\n (ex: \"SDE_MY_MESSAGE_BOARD\")",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Contains display settings for a widget"
      },
      "WidgetDisplayCustomization": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "display": {
            "$ref": "#/components/schemas/WidgetDisplay"
          }
        },
        "additionalProperties": false,
        "description": "Used to customize the display settings for a widget"
      },
      "WidgetLayout": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "maxLength": 36,
            "minLength": 1,
            "type": "string",
            "description": "The id of the widget instance"
          },
          "type": {
            "$ref": "#/components/schemas/WidgetType"
          },
          "location": {
            "$ref": "#/components/schemas/WidgetLocation"
          },
          "display": {
            "$ref": "#/components/schemas/WidgetDisplay"
          }
        },
        "additionalProperties": false,
        "description": "Contains widget layout with customizations, but \nwithout configuration. Used for updates"
      },
      "WidgetLocation": {
        "type": "object",
        "properties": {
          "x": {
            "maximum": 11,
            "minimum": 0,
            "type": "integer",
            "description": "The horizontal position",
            "format": "int32"
          },
          "y": {
            "type": "integer",
            "description": "The vertical position",
            "format": "int32"
          },
          "w": {
            "maximum": 12,
            "minimum": 0,
            "type": "integer",
            "description": "The number of cells the widget takes up\nhorizontally",
            "format": "int32"
          },
          "h": {
            "maximum": 100,
            "minimum": 0,
            "type": "integer",
            "description": "The number of cells the widget takes up\nvertically",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Contains the position of the widget within the \ndashboard"
      },
      "WidgetPermissions": {
        "type": "object",
        "properties": {
          "allowMove": {
            "type": "boolean",
            "description": "Whether or not the widget can be moved"
          },
          "allowResize": {
            "type": "boolean",
            "description": "Whether or not the widget can be resized"
          },
          "allowRemove": {
            "type": "boolean",
            "description": "Whether or not the widget can be removed"
          },
          "allowRename": {
            "type": "boolean",
            "description": "Whether or not the widget can be renamed (also requires\nDocuShare.Models.WidgetPermissions.AllowCustomize)"
          },
          "allowConfigure": {
            "type": "boolean",
            "description": "Whether or not the widget can be configured"
          },
          "allowCustomize": {
            "type": "boolean",
            "description": "Whether or not the widget can be customized"
          }
        },
        "additionalProperties": false,
        "description": "Contains information about what the user is allowed to do\nwith a widget on the dashboard"
      },
      "WidgetType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The Id of the <b>TYPE</b>. (Widget instances\nhave different ids)",
            "nullable": true
          },
          "type": {
            "type": "string",
            "description": "The identifier for the widget type. May be an\nenum value or a guid for a custom widget",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "description": "The (unlocalized) display name of the widget \n<b>TYPE</b>. (ex: \"SDE_MESSAGE_BOARD\")",
            "nullable": true
          },
          "icon": {
            "type": "string",
            "description": "The name of the icon to display in the widget\ndrawer and in the widget header",
            "nullable": true
          },
          "allowMultiple": {
            "type": "boolean",
            "description": "Whether the widget type allows multiple instances of\nthe same widget on a single dashboard"
          },
          "allowRemove": {
            "type": "boolean",
            "description": "Whether the widget type is allowed to be removed"
          },
          "confirmRemove": {
            "type": "boolean",
            "description": "Whether the widget should warn the user before\nbeing removed"
          },
          "defaultWidth": {
            "type": "integer",
            "description": "The default width of the widget",
            "format": "int32"
          },
          "defaultHeight": {
            "type": "integer",
            "description": "The default height of the widget",
            "format": "int32"
          }
        },
        "additionalProperties": false,
        "description": "Desribes the type of a widget"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "JWT Authorization header using the Bearer scheme.",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}