{
  "openapi": "3.0.1",
  "info": {
    "title": "Transkribus REST API",
    "version": "4.68.2",
    "description": "The Transkribus REST API behind the app, as the developer platform covers it: collections, documents, uploads, export, jobs, models, training, layout, tables, fields and search on material stored in Transkribus. Text recognition on single images is the Transkribus API. Snapshot of version 4.68.2."
  },
  "servers": [
    {
      "url": "https://transkribus.eu/TrpServer/rest"
    }
  ],
  "tags": [
    {
      "name": "Collections"
    },
    {
      "name": "Documents"
    },
    {
      "name": "Upload"
    },
    {
      "name": "Export"
    },
    {
      "name": "Jobs"
    },
    {
      "name": "Models"
    },
    {
      "name": "Layout"
    },
    {
      "name": "Tables"
    },
    {
      "name": "Training"
    },
    {
      "name": "Search"
    }
  ],
  "paths": {
    "/collections": {
      "get": {
        "operationId": "listCollections_1",
        "parameters": [
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "excludeEmpty",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "role",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "userid",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "favorites",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Collections"
        ]
      }
    },
    "/collections/{collId}/metadata": {
      "get": {
        "operationId": "getCollectionMdById",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "stats",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Collections"
        ]
      }
    },
    "/collections/{collId}/list": {
      "get": {
        "operationId": "listDocsByCollectionId",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "uploaderId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "uploader",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "labelId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "author",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "writer",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "description",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "genre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hierarchy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "authority",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scriptType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "createdfrom",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "createdto",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ultimestamp",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "includeNulls",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "isDeleted",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "false"
            }
          },
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagingWrapper",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "text/csv": {}
            }
          }
        },
        "tags": [
          "Collections"
        ]
      }
    },
    "/collections/findDocuments": {
      "get": {
        "operationId": "findDocuments_2",
        "parameters": [
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "title",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "descr",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "author",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "writer",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "userid",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "labelId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "uploaderId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "uploader",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "genre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hierarchy",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "authority",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "extId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "scriptType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "createdfrom",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "createdto",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "ultimestamp",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "includeNulls",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "isDeleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "exactMatch",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "caseSensitive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 100
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "pagingWrapper",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "text/csv": {}
            }
          }
        },
        "tags": [
          "Collections"
        ]
      }
    },
    "/collections/{collId}/{id}/fulldoc": {
      "get": {
        "operationId": "getDocById",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "nrOfTranscripts",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": -1
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "stats",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/{id}/metadata": {
      "get": {
        "operationId": "getDocMdById",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/{id}/{page}/list": {
      "get": {
        "operationId": "getTranscriptMdList",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/{id}/{page}/text": {
      "get": {
        "operationId": "getTranscript",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/{id}/{page}/curr": {
      "get": {
        "operationId": "getCurrTranscriptMd",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/{id}": {
      "delete": {
        "operationId": "deleteDocument",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "delete",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Documents"
        ]
      }
    },
    "/collections/{collId}/createDocFromIiifUrl": {
      "post": {
        "operationId": "createDocumentFromIiifUrl",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "fileName",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "canvasFilenameReference",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Upload"
        ]
      }
    },
    "/uploads": {
      "post": {
        "operationId": "createUploadDocStructure",
        "parameters": [
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DocumentUploadDescriptor"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {},
              "application/json": {}
            }
          }
        },
        "tags": [
          "Upload"
        ],
        "summary": "Create an upload from a document structure",
        "description": "Announces a new document: its metadata and the list of page images that will follow. Returns the upload with its `uploadId`; then send each image with `PUT /uploads/{uploadId}` and poll `GET /uploads/{uploadId}` until every page is uploaded."
      }
    },
    "/uploads/{uploadId}": {
      "put": {
        "operationId": "uploadPage",
        "parameters": [
          {
            "name": "uploadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "img": {
                    "$ref": "#/components/schemas/FormDataBodyPart"
                  },
                  "xml": {
                    "$ref": "#/components/schemas/FormDataBodyPart"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Upload"
        ]
      },
      "get": {
        "operationId": "getStatus",
        "parameters": [
          {
            "name": "uploadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Upload"
        ]
      }
    },
    "/collections/{collId}/{id}/export": {
      "post": {
        "operationId": "export_1",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pages",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "doWriteMets",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doWriteImages",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doExportPageXml",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doExportAltoXml",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "splitIntoWordsInAltoXml",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doWritePdf",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doWriteTei",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doWriteDocx",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doWriteTagsXlsx",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doWriteTablesXlsx",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doPdfImagesOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doPdfImagesPlusText",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doPdfWithTextPages",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doPdfWithTags",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doTeiWithNoZones",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doTeiWithZonePerRegion",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doTeiWithZonePerLine",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doTeiWithZonePerWord",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doTeiWithLineTags",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doTeiWithLineBreaks",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxWithTags",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxPreserveLineBreaks",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxForcePageBreaks",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxMarkUnclear",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxKeepAbbrevs",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doDocxExpandAbbrevs",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doDocxSubstituteAbbrevs",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doWordBased",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doBlackening",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doCreateTitle",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "useVersionStatus",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Latest"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Export"
        ]
      }
    },
    "/jobs/list": {
      "get": {
        "operationId": "getJobs",
        "parameters": [
          {
            "name": "userid",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "filterByUser",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "id",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "jobImpl",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Jobs"
        ]
      }
    },
    "/jobs/{id}": {
      "get": {
        "operationId": "getJobById",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Jobs"
        ]
      }
    },
    "/jobs/{id}/kill": {
      "post": {
        "operationId": "killJob",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Jobs"
        ]
      }
    },
    "/models/{type}": {
      "get": {
        "operationId": "getModels",
        "parameters": [
          {
            "name": "type",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "userid",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "releaseLevel",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "dataSetReleaseLevel",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "prov",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "centuries",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "integer",
                "format": "int32"
              }
            }
          },
          {
            "name": "isoLanguages",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "scriptTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "creator",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "publisher",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "docType",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "featured",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "application",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "slug",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "labels",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "datasetId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "datasetVersionId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "minNrOfTrainGtPages",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "minNrOfValidationGtPages",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "facetLimit",
            "in": "query",
            "schema": {
              "maximum": 500,
              "minimum": 10,
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "minFacetCount",
            "in": "query",
            "schema": {
              "maximum": 10,
              "minimum": 1,
              "type": "integer",
              "format": "int32",
              "default": 2
            }
          },
          {
            "name": "index",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "nValues",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": -1
            }
          },
          {
            "name": "sortColumn",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Models"
        ]
      }
    },
    "/models/{type}/{id}": {
      "get": {
        "operationId": "getModelDetails",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Models"
        ]
      }
    },
    "/LA/analyze": {
      "post": {
        "operationId": "analyzeLayout_1",
        "parameters": [
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "doBlockSeg",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doLineSeg",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "doWordSeg",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doPolygonToBaseline",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "doBaselineToPolygon",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "jobImpl",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "TranskribusLaJob"
            }
          },
          {
            "name": "credits",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "AUTO"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DocumentSelectionDescriptor"
                }
              }
            },
            "application/xml": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/DocumentSelectionDescriptor"
                }
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {},
              "application/json": {}
            }
          }
        },
        "deprecated": true,
        "tags": [
          "Layout"
        ]
      }
    },
    "/LA/la2Inference": {
      "post": {
        "operationId": "la2Inference",
        "parameters": [
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "modelId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "threshold",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0.75
            }
          },
          {
            "name": "addToPageXML",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "approxPolyFrac",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0.7
            }
          },
          {
            "name": "combineWithBaseLayout",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "keepEmptyRegions",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "splitLines",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "lineOverlapFraction",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "double",
              "default": 0.05
            }
          },
          {
            "name": "clusterLinesWithoutRegions",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "credits",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "AUTO"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobParameters"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/JobParameters"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {},
              "application/json": {}
            }
          }
        },
        "tags": [
          "Layout"
        ]
      }
    },
    "/LA/tableInference": {
      "post": {
        "operationId": "tableInference",
        "parameters": [
          {
            "name": "collId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "modelId",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "credits",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "AUTO"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/JobParameters"
              }
            },
            "application/xml": {
              "schema": {
                "$ref": "#/components/schemas/JobParameters"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {},
              "application/json": {}
            }
          }
        },
        "tags": [
          "Tables"
        ]
      }
    },
    "/pylaia/{collId}/train": {
      "post": {
        "operationId": "trainPyLaiaModel",
        "parameters": [
          {
            "name": "collId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "$ref": "#/components/schemas/PyLaiaHtrTrainConfig"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/xml": {},
              "application/json": {}
            }
          }
        },
        "tags": [
          "Training"
        ]
      }
    },
    "/recognition/la2Training": {
      "post": {
        "operationId": "la2Training",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "$ref": "#/components/schemas/LA2TrainConfig"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Training"
        ]
      }
    },
    "/recognition/tableTraining": {
      "post": {
        "operationId": "tableTraining",
        "requestBody": {
          "content": {
            "*/*": {
              "schema": {
                "$ref": "#/components/schemas/LA2TrainConfig"
              }
            }
          }
        },
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "*/*": {}
            }
          }
        },
        "tags": [
          "Training"
        ]
      }
    },
    "/search/fulltext": {
      "get": {
        "operationId": "searchFulltext",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "rows",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "legacy",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Search"
        ]
      }
    },
    "/search/keyword": {
      "get": {
        "operationId": "searchKW",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "rows",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "probL",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "probH",
            "in": "query",
            "schema": {
              "type": "number",
              "format": "float"
            }
          },
          {
            "name": "filter",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "fuzzy",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sorting",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "default": {
            "description": "default response",
            "content": {
              "application/json": {},
              "application/xml": {}
            }
          }
        },
        "tags": [
          "Search"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "BodyPart": {
        "type": "object",
        "properties": {
          "contentDisposition": {
            "$ref": "#/components/schemas/ContentDisposition"
          },
          "entity": {
            "type": "object"
          },
          "headers": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "mediaType": {
            "$ref": "#/components/schemas/MediaType"
          },
          "messageBodyWorkers": {
            "$ref": "#/components/schemas/MessageBodyWorkers"
          },
          "parent": {
            "$ref": "#/components/schemas/MultiPart"
          },
          "providers": {
            "$ref": "#/components/schemas/Providers"
          },
          "parameterizedHeaders": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ParameterizedHeader"
              }
            }
          }
        }
      },
      "ContentDisposition": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "fileName": {
            "type": "string"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "modificationDate": {
            "type": "string",
            "format": "date-time"
          },
          "readDate": {
            "type": "string",
            "format": "date-time"
          },
          "size": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "DocumentSelectionDescriptor": {
        "type": "object",
        "properties": {
          "docId": {
            "type": "integer",
            "format": "int32"
          },
          "params": {
            "$ref": "#/components/schemas/parameters"
          },
          "pages": {
            "type": "array",
            "xml": {
              "name": "pageList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/PageDescriptor"
            }
          }
        },
        "description": "Both: Document selection descriptor"
      },
      "DocumentUploadDescriptor": {
        "type": "object",
        "properties": {
          "md": {
            "$ref": "#/components/schemas/TrpDocMetadata"
          },
          "relatedUploadId": {
            "type": "integer",
            "format": "int32"
          },
          "pages": {
            "type": "array",
            "xml": {
              "name": "pageList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/PageUploadDescriptor"
            }
          },
          "recognitionStartParameters": {
            "$ref": "#/components/schemas/RecognitionStartParameters"
          }
        }
      },
      "FormDataBodyPart": {
        "type": "object",
        "properties": {
          "contentDisposition": {
            "$ref": "#/components/schemas/ContentDisposition"
          },
          "entity": {
            "type": "object"
          },
          "headers": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "mediaType": {
            "$ref": "#/components/schemas/MediaType"
          },
          "messageBodyWorkers": {
            "$ref": "#/components/schemas/MessageBodyWorkers"
          },
          "parent": {
            "$ref": "#/components/schemas/MultiPart"
          },
          "providers": {
            "$ref": "#/components/schemas/Providers"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "content": {
            "type": "object"
          },
          "fileName": {
            "type": "string"
          },
          "formDataContentDisposition": {
            "$ref": "#/components/schemas/FormDataContentDisposition"
          },
          "simple": {
            "type": "boolean"
          },
          "parameterizedHeaders": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ParameterizedHeader"
              }
            }
          }
        }
      },
      "FormDataContentDisposition": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "fileName": {
            "type": "string"
          },
          "creationDate": {
            "type": "string",
            "format": "date-time"
          },
          "modificationDate": {
            "type": "string",
            "format": "date-time"
          },
          "readDate": {
            "type": "string",
            "format": "date-time"
          },
          "size": {
            "type": "integer",
            "format": "int64"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "GroundTruthSelectionDescriptor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "dataSetType": {
            "type": "string"
          },
          "gtPages": {
            "type": "array",
            "xml": {
              "name": "gtPageList",
              "wrapped": true
            },
            "items": {
              "type": "integer",
              "format": "int32"
            }
          }
        }
      },
      "JobParameters": {
        "type": "object",
        "properties": {
          "colId": {
            "type": "integer",
            "format": "int32"
          },
          "jobImpl": {
            "type": "string"
          },
          "docs": {
            "type": "array",
            "xml": {
              "name": "docList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/DocumentSelectionDescriptor"
            }
          },
          "params": {
            "$ref": "#/components/schemas/parameters"
          },
          "gtList": {
            "type": "array",
            "xml": {
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/GroundTruthSelectionDescriptor"
            }
          }
        }
      },
      "LA2InputType": {
        "required": [
          "input_type",
          "tag_value",
          "type"
        ],
        "type": "object",
        "properties": {
          "input_type": {
            "type": "string",
            "description": "input_type",
            "enum": [
              "TEXT_REGION",
              "TEXT_LINE",
              "SEPARATOR",
              "GRAPHIC_REGION",
              "IMAGE_REGION",
              "BASE_LINE",
              "WORD"
            ]
          },
          "tag_value": {
            "type": "string",
            "description": "tag_value"
          },
          "type": {
            "type": "string",
            "description": "type",
            "enum": [
              "tag_obj",
              "page_obj"
            ]
          }
        },
        "description": "A list of input definitions."
      },
      "LA2TrainConfig": {
        "required": [
          "description",
          "language",
          "modelMetadata",
          "modelName",
          "numEpochs"
        ],
        "type": "object",
        "properties": {
          "modelMetadata": {
            "$ref": "#/components/schemas/TrpModelMetadata"
          },
          "modelName": {
            "type": "string",
            "description": "the name of the new HTR model"
          },
          "description": {
            "type": "string",
            "description": "textual description"
          },
          "language": {
            "type": "string",
            "description": "specifies the language of the training data's text content"
          },
          "provider": {
            "type": "string",
            "description": "the HTR techology provider",
            "enum": [
              "CITlab",
              "CITlabPlus"
            ]
          },
          "baseModelId": {
            "type": "integer",
            "description": "Optional. Can be used to specify an existing HTR to be used as starting point for the training. Provider string must match the one given.",
            "format": "int32"
          },
          "colId": {
            "type": "integer",
            "format": "int32"
          },
          "customParams": {
            "$ref": "#/components/schemas/parameters"
          },
          "train": {
            "type": "array",
            "xml": {
              "name": "trainList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/DocumentSelectionDescriptor"
            }
          },
          "test": {
            "type": "array",
            "xml": {
              "name": "testList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/DocumentSelectionDescriptor"
            }
          },
          "trainGt": {
            "type": "array",
            "xml": {
              "name": "trainGtList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/GroundTruthSelectionDescriptor"
            }
          },
          "testGt": {
            "type": "array",
            "xml": {
              "name": "testGtList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/GroundTruthSelectionDescriptor"
            }
          },
          "numEpochs": {
            "type": "integer",
            "description": "The number of epochs to be trained. A positive natural number.",
            "format": "int32",
            "default": 20000
          },
          "learningRate": {
            "type": "number",
            "description": "The learning rate for traininig. Floating point in scientific notation, e.g. 2E-3",
            "format": "double",
            "default": 0.001
          },
          "modelType": {
            "type": "string",
            "description": "The model type - one of: 'instance_50', 'instance_101'",
            "default": "instance_101"
          },
          "advancedParams": {
            "$ref": "#/components/schemas/parameters"
          },
          "inputType": {
            "type": "string",
            "description": "The type of input. Can be: 'text_region', 'table', 'auto_generate'"
          },
          "inputTypeJson": {
            "type": "array",
            "description": "A list of input definitions.",
            "items": {
              "$ref": "#/components/schemas/LA2InputType"
            }
          },
          "epochsIsIterations": {
            "type": "boolean",
            "description": "If true, the number of epochs is interpreted as the number of iterations. If false, the number of epochs is interpreted as the number of epochs.",
            "default": true
          }
        }
      },
      "MapEntry": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "MediaType": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "subtype": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "wildcardType": {
            "type": "boolean"
          },
          "wildcardSubtype": {
            "type": "boolean"
          }
        }
      },
      "MessageBodyWorkers": {
        "type": "object"
      },
      "MultiPart": {
        "type": "object",
        "properties": {
          "contentDisposition": {
            "$ref": "#/components/schemas/ContentDisposition"
          },
          "entity": {
            "type": "object"
          },
          "headers": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "mediaType": {
            "$ref": "#/components/schemas/MediaType"
          },
          "messageBodyWorkers": {
            "$ref": "#/components/schemas/MessageBodyWorkers"
          },
          "parent": {
            "$ref": "#/components/schemas/MultiPart"
          },
          "providers": {
            "$ref": "#/components/schemas/Providers"
          },
          "bodyParts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BodyPart"
            }
          },
          "parameterizedHeaders": {
            "type": "object",
            "properties": {
              "empty": {
                "type": "boolean"
              }
            },
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/ParameterizedHeader"
              }
            }
          }
        }
      },
      "PageDescriptor": {
        "type": "object",
        "properties": {
          "params": {
            "$ref": "#/components/schemas/parameters"
          },
          "pageId": {
            "type": "integer",
            "format": "int32"
          },
          "tsId": {
            "type": "integer",
            "format": "int32"
          },
          "regionIds": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "PageUploadDescriptor": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string"
          },
          "pageXmlName": {
            "type": "string"
          },
          "pageUploaded": {
            "type": "boolean"
          },
          "pageNr": {
            "type": "integer",
            "format": "int32"
          },
          "imgChecksum": {
            "type": "string"
          },
          "pageXmlChecksum": {
            "type": "string"
          },
          "eTag": {
            "type": "string"
          }
        }
      },
      "ParameterizedHeader": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      },
      "Providers": {
        "type": "object"
      },
      "PyLaiaHtrTrainConfig": {
        "required": [
          "description",
          "language",
          "modelMetadata",
          "modelName"
        ],
        "type": "object",
        "properties": {
          "modelMetadata": {
            "$ref": "#/components/schemas/TrpModelMetadata"
          },
          "modelName": {
            "type": "string",
            "description": "the name of the new HTR model"
          },
          "description": {
            "type": "string",
            "description": "textual description"
          },
          "language": {
            "type": "string",
            "description": "specifies the language of the training data's text content"
          },
          "provider": {
            "type": "string",
            "description": "the HTR techology provider",
            "enum": [
              "CITlab",
              "CITlabPlus"
            ]
          },
          "baseModelId": {
            "type": "integer",
            "description": "Optional. Can be used to specify an existing HTR to be used as starting point for the training. Provider string must match the one given.",
            "format": "int32"
          },
          "colId": {
            "type": "integer",
            "format": "int32"
          },
          "customParams": {
            "$ref": "#/components/schemas/parameters"
          },
          "train": {
            "type": "array",
            "xml": {
              "name": "trainList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/DocumentSelectionDescriptor"
            }
          },
          "test": {
            "type": "array",
            "xml": {
              "name": "testList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/DocumentSelectionDescriptor"
            }
          },
          "trainGt": {
            "type": "array",
            "xml": {
              "name": "trainGtList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/GroundTruthSelectionDescriptor"
            }
          },
          "testGt": {
            "type": "array",
            "xml": {
              "name": "testGtList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/GroundTruthSelectionDescriptor"
            }
          },
          "textFeatsCfg": {
            "$ref": "#/components/schemas/TextFeatsCfg"
          },
          "trpPreprocPars": {
            "$ref": "#/components/schemas/TrpPreprocPars"
          },
          "createModelPars": {
            "$ref": "#/components/schemas/createModelPars"
          },
          "trainCtcPars": {
            "$ref": "#/components/schemas/trainCtcPars"
          }
        }
      },
      "RecognitionStartParameters": {
        "required": [
          "colId"
        ],
        "type": "object",
        "properties": {
          "colId": {
            "type": "integer",
            "description": "Both: Collection ID",
            "format": "int32"
          },
          "_comment_colId": {
            "type": "string"
          },
          "modelId": {
            "type": "integer",
            "description": "Both: Model ID",
            "format": "int32",
            "default": -1
          },
          "_comment_modelId": {
            "type": "string"
          },
          "docId": {
            "type": "integer",
            "description": "Both: Document ID, will be overwritten by docId from DocumentSelectionDescriptor if that is provided",
            "format": "int32"
          },
          "_comment_docId": {
            "type": "string"
          },
          "pageStr": {
            "type": "string",
            "description": "Both: Page string selector (e.g. 1-3,5,7-9), will be ignored when there is a DocumentSelectionDescriptor"
          },
          "_comment_pageStr": {
            "type": "string"
          },
          "doLinePolygonSimplification": {
            "type": "boolean",
            "description": "Both: Simplify line polygons",
            "default": true
          },
          "_comment_doLinePolygonSimplification": {
            "type": "string",
            "description": "Both: Simplify line polygons (default=true)"
          },
          "useExistingLinePolygons": {
            "type": "boolean",
            "description": "Both: Use existing line polygons",
            "default": false
          },
          "_comment_useExistingLinePolygons": {
            "type": "string"
          },
          "doNotDeleteWorkDir": {
            "type": "boolean",
            "description": "Both: Keep workdir",
            "default": false
          },
          "_comment_doNotDeleteWorkDir": {
            "type": "string"
          },
          "creditSelectionStrategy": {
            "type": "string",
            "description": "Both: Credits path / selection strategy",
            "default": "AUTO"
          },
          "_comment_creditSelectionStrategy": {
            "type": "string"
          },
          "allowConcurrentExecution": {
            "type": "boolean",
            "description": "Both: Allow concurrent execution",
            "default": false
          },
          "_comment_allowConcurrentExecution": {
            "type": "string"
          },
          "b2pBackend": {
            "type": "string",
            "description": "Both: Backend for B2P",
            "default": "Legacy"
          },
          "_comment_b2pBackend": {
            "type": "string"
          },
          "descriptor": {
            "$ref": "#/components/schemas/DocumentSelectionDescriptor"
          },
          "_comment_descriptor": {
            "type": "string"
          },
          "modelName": {
            "type": "string",
            "description": "TrHtr only: Fixed model name (if used)",
            "default": "N/A"
          },
          "_comment_modelName": {
            "type": "string"
          },
          "languageModel": {
            "type": "string",
            "description": "PyLaia only: Language model",
            "default": "N/A"
          },
          "_comment_languageModel": {
            "type": "string"
          },
          "printedModelId": {
            "type": "integer",
            "description": "PyLaia only: Printed model ID",
            "format": "int32",
            "default": -1
          },
          "_comment_printedModelId": {
            "type": "string"
          },
          "printedLanguageModel": {
            "type": "string",
            "description": "PyLaia only: Printed Language Model",
            "default": "N/A"
          },
          "_comment_printedLanguageModel": {
            "type": "string"
          },
          "isNextGen": {
            "type": "boolean",
            "description": "PyLaia only: Use next generation PyLaia",
            "default": true
          },
          "_comment_isNextGen": {
            "type": "string"
          },
          "keepOriginalLinePolygons": {
            "type": "boolean",
            "description": "PyLaia only: Keep original line polygons",
            "default": false
          },
          "_comment_keepOriginalLinePolygons": {
            "type": "string"
          },
          "doWriteKwsIndex": {
            "type": "boolean",
            "description": "PyLaia only: Write KWS index",
            "default": false
          },
          "_comment_doWriteKwsIndex": {
            "type": "string"
          },
          "nBest": {
            "type": "integer",
            "description": "PyLaia only: Number of best hypotheses",
            "format": "int32",
            "default": 1
          },
          "_comment_nBest": {
            "type": "string"
          },
          "structures": {
            "type": "array",
            "description": "PyLaia only: List of structures",
            "items": {
              "type": "string",
              "description": "PyLaia only: List of structures"
            }
          },
          "_comment_structures": {
            "type": "string"
          },
          "batchSize": {
            "type": "integer",
            "description": "PyLaia only: Batch size",
            "format": "int32",
            "default": 10
          },
          "_comment_batchSize": {
            "type": "string"
          },
          "clearLines": {
            "type": "boolean",
            "description": "PyLaia only: Clear lines",
            "default": true
          },
          "_comment_clearLines": {
            "type": "string"
          },
          "doWordSeg": {
            "type": "boolean",
            "description": "PyLaia only: Do word segmentation",
            "default": false
          },
          "_comment_doWordSeg": {
            "type": "string"
          },
          "writeLineConfScore": {
            "type": "boolean",
            "description": "PyLaia only: Write line confidence score",
            "default": false
          },
          "_comment_writeLineConfScore": {
            "type": "string"
          },
          "writeWordConfScores": {
            "type": "boolean",
            "description": "PyLaia only: Write word confidence scores",
            "default": false
          },
          "_comment_writeWordConfScores": {
            "type": "string"
          }
        },
        "description": "This is the parameter class for starting a recognition job (TrHtr or PyLaia), it contains all possible parameters for both engines. Depending on which engine is used, some parameters will be ignored. The _comment_{$fieldName}-Fields are just there to provide some documentation and to be able to determine if that field is used by the decoding Type (so far TrHtr and PyLaia) ."
      },
      "RegionTypeStats": {
        "type": "object",
        "properties": {
          "regionType": {
            "type": "string",
            "enum": [
              "TABLE_REGION",
              "TEXT_REGION",
              "TEXT_LINE",
              "SEPARATOR",
              "GRAPHIC_REGION",
              "IMAGE_REGION",
              "BASE_LINE",
              "WORD"
            ]
          },
          "overallCount": {
            "type": "integer",
            "format": "int32"
          },
          "structureTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StructureType"
            }
          }
        }
      },
      "StructureTrainValidationStats": {
        "type": "object",
        "properties": {
          "trainStats": {
            "$ref": "#/components/schemas/TrpStructureStats"
          },
          "validationStats": {
            "$ref": "#/components/schemas/TrpStructureStats"
          }
        }
      },
      "StructureType": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "TextFeatsCfg": {
        "type": "object",
        "properties": {
          "verbose": {
            "type": "boolean"
          },
          "deslope": {
            "type": "boolean"
          },
          "deslant": {
            "type": "boolean"
          },
          "type": {
            "type": "string"
          },
          "format": {
            "type": "string"
          },
          "stretch": {
            "type": "boolean"
          },
          "enh": {
            "type": "boolean"
          },
          "enh_win": {
            "type": "integer",
            "format": "int32"
          },
          "enh_prm": {
            "type": "number",
            "format": "double"
          },
          "normheight": {
            "type": "integer",
            "format": "int32"
          },
          "normxheight": {
            "type": "integer",
            "format": "int32"
          },
          "momentnorm": {
            "type": "boolean"
          },
          "fpgram": {
            "type": "boolean"
          },
          "fcontour": {
            "type": "boolean"
          },
          "fcontour_dilate": {
            "type": "integer",
            "format": "int32"
          },
          "padding": {
            "type": "integer",
            "format": "int32"
          },
          "maxwidth": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "TrpCollection": {
        "type": "object",
        "properties": {
          "nrOfRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWordsInRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWordsInLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWords": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedWords": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfCharsInLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTables": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfNew": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfInProgress": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfDone": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfFinal": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfGT": {
            "type": "integer",
            "format": "int64"
          },
          "colId": {
            "type": "integer",
            "format": "int32"
          },
          "colName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "defaultForApp": {
            "type": "string"
          },
          "crowdsourcing": {
            "type": "boolean"
          },
          "elearning": {
            "type": "boolean"
          },
          "pageId": {
            "type": "integer",
            "format": "int32"
          },
          "url": {
            "type": "string",
            "format": "url"
          },
          "thumbUrl": {
            "type": "string",
            "format": "url"
          },
          "iiifBaseUrl": {
            "type": "string",
            "format": "url"
          },
          "label": {
            "type": "string"
          },
          "nrOfDocuments": {
            "type": "integer",
            "format": "int32"
          },
          "role": {
            "type": "string",
            "enum": [
              "Admin",
              "Owner",
              "Editor",
              "Transcriber",
              "ManualTranscriber",
              "CrowdTranscriber",
              "Reader",
              "None"
            ]
          },
          "favoriteTimestamp": {
            "type": "string",
            "format": "date-time"
          },
          "isFavorite": {
            "type": "boolean"
          },
          "color": {
            "type": "string"
          },
          "crowdProject": {
            "$ref": "#/components/schemas/TrpCrowdProject"
          },
          "accountingStatus": {
            "type": "integer",
            "format": "int32"
          },
          "modelCollectionReleaseLevel": {
            "type": "string"
          },
          "isMainDocumentCollection": {
            "type": "boolean"
          },
          "assignableRoles": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "Admin",
                "Owner",
                "Editor",
                "Transcriber",
                "ManualTranscriber",
                "CrowdTranscriber",
                "Reader",
                "None"
              ]
            }
          }
        }
      },
      "TrpCrowdProject": {
        "type": "object",
        "properties": {
          "projId": {
            "type": "integer",
            "format": "int32"
          },
          "aim": {
            "type": "string"
          },
          "colId": {
            "type": "integer",
            "format": "int32"
          },
          "crowdProjectMilestones": {
            "type": "array",
            "xml": {
              "name": "milestoneList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/TrpCrowdProjectMilestone"
            }
          },
          "crowdProjectMessages": {
            "type": "array",
            "xml": {
              "name": "messageList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/TrpCrowdProjectMessage"
            }
          }
        }
      },
      "TrpCrowdProjectMessage": {
        "type": "object",
        "properties": {
          "messageId": {
            "type": "integer",
            "format": "int32"
          },
          "milestoneId": {
            "type": "integer",
            "format": "int32"
          },
          "projectId": {
            "type": "integer",
            "format": "int32"
          },
          "subject": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "emailSent": {
            "type": "boolean"
          }
        }
      },
      "TrpCrowdProjectMilestone": {
        "type": "object",
        "properties": {
          "milestoneId": {
            "type": "integer",
            "format": "int32"
          },
          "projectId": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "dueDate": {
            "type": "string"
          },
          "date": {
            "type": "string"
          }
        }
      },
      "TrpDocMetadata": {
        "type": "object",
        "properties": {
          "nrOfRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWordsInRegions": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWordsInLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfWords": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTranscribedWords": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfCharsInLines": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfTables": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfNew": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfInProgress": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfDone": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfFinal": {
            "type": "integer",
            "format": "int64"
          },
          "nrOfGT": {
            "type": "integer",
            "format": "int64"
          },
          "docId": {
            "type": "integer",
            "format": "int32"
          },
          "title": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "uploadTimestamp": {
            "type": "integer",
            "format": "int64"
          },
          "genre": {
            "type": "string"
          },
          "writer": {
            "type": "string"
          },
          "scriptType": {
            "type": "string",
            "enum": [
              "HANDWRITTEN",
              "NORMAL",
              "NORMAL_LONG_S",
              "GOTHIC",
              "COMBINED"
            ]
          },
          "uploader": {
            "type": "string"
          },
          "uploaderId": {
            "type": "integer",
            "format": "int32"
          },
          "nrOfPages": {
            "type": "integer",
            "format": "int32"
          },
          "pageId": {
            "type": "integer",
            "format": "int32"
          },
          "deletedOnDate": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "type": "string",
            "format": "url"
          },
          "thumbUrl": {
            "type": "string",
            "format": "url"
          },
          "iiifBaseUrl": {
            "type": "string",
            "format": "url"
          },
          "externalId": {
            "type": "string"
          },
          "authority": {
            "type": "string"
          },
          "hierarchy": {
            "type": "string"
          },
          "backlink": {
            "type": "string"
          },
          "desc": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "UNDEFINED",
              "HANDWRITTEN",
              "PRINT"
            ]
          },
          "language": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "fimgStoreColl": {
            "type": "string"
          },
          "storeType": {
            "type": "integer",
            "format": "int32"
          },
          "storeRegion": {
            "type": "string"
          },
          "localFolder": {
            "type": "string",
            "format": "binary"
          },
          "createdFromTimestamp": {
            "type": "integer",
            "format": "int64"
          },
          "createdToTimestamp": {
            "type": "integer",
            "format": "int64"
          },
          "origDocId": {
            "type": "integer",
            "format": "int32"
          },
          "colList": {
            "type": "array",
            "xml": {
              "name": "collectionList",
              "wrapped": true
            },
            "items": {
              "$ref": "#/components/schemas/TrpCollection"
            }
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrpEntityAttribute"
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrpLabel"
            }
          },
          "pageLabels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrpLabel"
            }
          },
          "mainColId": {
            "type": "integer",
            "format": "int32"
          },
          "isInMain": {
            "type": "boolean"
          }
        }
      },
      "TrpEntityAttribute": {
        "type": "object",
        "properties": {
          "attributeId": {
            "type": "integer",
            "format": "int32"
          },
          "entityId": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      },
      "TrpLabel": {
        "type": "object",
        "properties": {
          "labelId": {
            "type": "integer",
            "format": "int32"
          },
          "name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "changed": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "type": "string"
          },
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "ownerScopeType": {
            "type": "string"
          },
          "ownerScopeId": {
            "type": "string"
          }
        }
      },
      "TrpModelMetadata": {
        "type": "object",
        "properties": {
          "modelId": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "created": {
            "type": "string",
            "format": "date-time"
          },
          "language": {
            "type": "string"
          },
          "baseModelId": {
            "type": "integer",
            "format": "int32"
          },
          "baseModelName": {
            "type": "string"
          },
          "trainJobId": {
            "type": "string"
          },
          "finalCer": {
            "type": "number",
            "format": "double"
          },
          "finalValidationCer": {
            "type": "number",
            "format": "double"
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "structures": {
            "$ref": "#/components/schemas/StructureTrainValidationStats"
          },
          "bestNetStored": {
            "type": "boolean"
          },
          "languageModelExists": {
            "type": "boolean"
          },
          "nrOfLines": {
            "type": "integer",
            "format": "int32"
          },
          "nrOfWords": {
            "type": "integer",
            "format": "int32"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "userName": {
            "type": "string"
          },
          "userId": {
            "type": "integer",
            "format": "int32"
          },
          "nrOfTrainGtPages": {
            "type": "integer",
            "format": "int32"
          },
          "nrOfValidationGtPages": {
            "type": "integer",
            "format": "int32"
          },
          "releaseLevel": {
            "type": "string"
          },
          "publisher": {
            "type": "string"
          },
          "gtAccessible": {
            "type": "boolean"
          },
          "gtReusable": {
            "type": "boolean"
          },
          "delTime": {
            "type": "string",
            "format": "date-time"
          },
          "internalRating": {
            "type": "integer",
            "format": "int32"
          },
          "cerLog": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            }
          },
          "cerValidationLog": {
            "type": "array",
            "items": {
              "type": "number",
              "format": "double"
            }
          },
          "contactEmail": {
            "type": "string"
          },
          "creator": {
            "type": "string"
          },
          "exampleImageUrl": {
            "type": "string"
          },
          "centuries": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "integer",
              "format": "int32"
            }
          },
          "isoLanguages": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scriptTypes": {
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "docType": {
            "type": "string"
          },
          "descriptions": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "nrOfTranscriptsProduced": {
            "type": "integer",
            "format": "int64"
          },
          "featured": {
            "type": "boolean"
          },
          "featuredWeight": {
            "type": "integer",
            "format": "int32"
          },
          "apps": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "slug": {
            "type": "string"
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "type": "integer",
            "format": "int32"
          },
          "datasetVersionId": {
            "type": "integer",
            "format": "int32"
          },
          "status": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "externalTrainJobId": {
            "type": "string"
          }
        },
        "description": "The metadata to be stored with the new HTR model"
      },
      "TrpPreprocPars": {
        "type": "object",
        "properties": {
          "dewarp_method": {
            "type": "string"
          },
          "delete_background": {
            "type": "boolean"
          },
          "scaling_factor": {
            "type": "number",
            "format": "float"
          },
          "do_sauvola": {
            "type": "boolean"
          },
          "padding": {
            "type": "integer",
            "format": "int32"
          },
          "line_height": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "TrpStructureStats": {
        "type": "object",
        "properties": {
          "regionTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RegionTypeStats"
            }
          }
        }
      },
      "createModelPars": {
        "type": "object",
        "properties": {
          "entry": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapEntry"
            }
          }
        },
        "xml": {
          "name": "createModelPars"
        }
      },
      "parameters": {
        "type": "object",
        "properties": {
          "entry": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapEntry"
            }
          }
        },
        "xml": {
          "name": "parameters"
        }
      },
      "trainCtcPars": {
        "type": "object",
        "properties": {
          "entry": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MapEntry"
            }
          }
        },
        "xml": {
          "name": "trainCtcPars"
        }
      }
    },
    "securitySchemes": {
      "oAuth2AuthCode": {
        "type": "oauth2",
        "description": "READCOOP SSO",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://account.readcoop.eu/auth/realms/readcoop/protocol/openid-connect/auth",
            "tokenUrl": "https://account.readcoop.eu/auth/realms/readcoop/protocol/openid-connect/token",
            "refreshUrl": "https://account.readcoop.eu/auth/realms/readcoop/protocol/openid-connect/token",
            "scopes": {
              "openid": "standard scope"
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "oAuth2AuthCode": [
        "openid"
      ]
    }
  ]
}
