{
  "openapi": "3.0.4",
  "info": {
    "title": "Belay API",
    "description": "Belay API",
    "contact": {
      "name": "Belay Support",
      "url": "https://support.belay.se",
      "email": "support@belay.se"
    },
    "version": "v1"
  },
  "paths": {
    "/Account/tenants": {
      "get": {
        "tags": [
          "Account"
        ],
        "summary": "Gets the tenants of the user.",
        "operationId": "GetTenants",
        "responses": {
          "200": {
            "description": "The tenants are successfully retrieved.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TenantViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "The user is not logged in.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Account/language": {
      "put": {
        "tags": [
          "Account"
        ],
        "operationId": "UpdateLanguage",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLanguageRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLanguageRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLanguageRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Account/impersonate/undo": {
      "post": {
        "tags": [
          "Account"
        ],
        "summary": "Ends support impersonation and restores identity session metadata to your own user and tenant (latest login among your users with the same profile email).",
        "description": "Hosted on the account controller so any authenticated caller can invoke it while impersonating (JWT roles reflect the target user, not SysAdmin).",
        "operationId": "UndoImpersonation",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/ActionPlans": {
      "get": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "GetActionPlans",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "qualityActivities",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/{id}": {
      "get": {
        "tags": [
          "ActionPlans"
        ],
        "summary": "Gets a specific ActionPlan",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ActionPlan id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/{id}/approve": {
      "put": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "ApprovePlan",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/measures/{id}/approve": {
      "put": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "ApproveGovernedActionCommitment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/measures/{id}/reject": {
      "put": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "RejectMeasureCommitment",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/measures/{id}/respond": {
      "put": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "RespondMeasureTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ActionPlans/{id}/reviewer": {
      "put": {
        "tags": [
          "ActionPlans"
        ],
        "operationId": "ChangeReviewer",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/{id}": {
      "get": {
        "tags": [
          "Archives"
        ],
        "summary": "Gets resource archive",
        "operationId": "GetArchive",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "description": "The container type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The resource id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "description": "The reference",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "onlyDirectories",
            "in": "query",
            "description": "Show only directories",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Archives"
        ],
        "operationId": "DeleteArchiveItem",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteFileInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteFileInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteFileInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/{id}/upload": {
      "post": {
        "tags": [
          "Archives"
        ],
        "operationId": "UploadFile",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "reference",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "metadata",
            "in": "query",
            "schema": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/{id}/createdirectory": {
      "post": {
        "tags": [
          "Archives"
        ],
        "operationId": "CreateDirectory",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDirectoryInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDirectoryInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDirectoryInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/{id}/checkpermission": {
      "get": {
        "tags": [
          "Archives"
        ],
        "summary": "Check permission for archive",
        "operationId": "CheckPermission",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/versions": {
      "get": {
        "tags": [
          "Archives"
        ],
        "summary": "Check permission for archive",
        "operationId": "GetVersions",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "Text",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Archives/{container}/{id}/download": {
      "get": {
        "tags": [
          "Archives"
        ],
        "summary": "Downloads an archive item file from the specified container.",
        "description": "This endpoint is secured. It allows administrators, inspectors, or users with explicit permissions (as determined \nby the provided reference) to download an archive file. If the container parameter is undefined, a `400 Bad Request` \nresponse is returned. If the user is not logged in, a `401 Unauthorized` response is returned. If the user \ndoes not have the required permissions, a `403 Forbidden` response is issued. If the file cannot be found, a \n`404 Not Found` response is returned.",
        "operationId": "DownloadArchiveItem",
        "parameters": [
          {
            "name": "container",
            "in": "path",
            "description": "The archive container type from which to download the item. \nThis value must not be Belay.Core.Infrastructure.Service.Archives.ArchiveContainer.Undefined.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ArchiveContainer"
            }
          },
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the archive item resource to be downloaded.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Url",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Reference",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "EntityPermissionTargetId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the file stream for the requested archive item.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "The provided container is undefined (i.e., Belay.Core.Infrastructure.Service.Archives.ArchiveContainer.Undefined)."
          },
          "401": {
            "description": "User is unauthorized."
          },
          "403": {
            "description": "The user does not have sufficient permissions to download the requested file."
          },
          "404": {
            "description": "The requested file was not found."
          }
        }
      }
    },
    "/Automation/tasks": {
      "get": {
        "tags": [
          "Automation"
        ],
        "summary": "Gets all available tasks",
        "operationId": "GetTasks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationTaskViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationTaskViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AutomationTaskViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Automation/tasks/history": {
      "get": {
        "tags": [
          "Automation"
        ],
        "summary": "Gets history where task id matches provided task id.",
        "operationId": "GetHistory",
        "parameters": [
          {
            "name": "Skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "TaskIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaskLogEventStatus"
              }
            }
          },
          {
            "name": "TimeWindow",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AutomationHistoryTimeWindow"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LogEventViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogEventViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogEventViewModelPagingDto"
                }
              }
            }
          }
        }
      }
    },
    "/Automation/tasks/{taskId}/toggle": {
      "post": {
        "tags": [
          "Automation"
        ],
        "summary": "Toggle task active/inactive.\nSends a message to the Worker via Service Bus — the toggle is applied asynchronously.",
        "operationId": "ToggleTask",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Automation/tasks/{taskId}/toggle-skip-on-startup": {
      "post": {
        "tags": [
          "Automation"
        ],
        "summary": "Toggle whether the task should skip the first scheduler pass after process start.\nSends a message to the Worker — the toggle is applied asynchronously.",
        "operationId": "ToggleSkipOnStartup",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Automation/tasks/{taskId}/run": {
      "post": {
        "tags": [
          "Automation"
        ],
        "summary": "Run task asynchronously.\nSends a message to the Worker via Service Bus — the task executes asynchronously.",
        "operationId": "RunTask",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Automation/tasks/history/summary": {
      "get": {
        "tags": [
          "Automation"
        ],
        "summary": "Gets history summary counters for the selected task/time filters.",
        "operationId": "GetHistorySummary",
        "parameters": [
          {
            "name": "TimeWindow",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AutomationHistoryTimeWindow"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationHistorySummaryViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationHistorySummaryViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AutomationHistorySummaryViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Billing/template/items": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Retrieves all billing templates as lightweight list items.",
        "operationId": "GetBillingTemplates",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BillingTemplateViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BillingTemplateViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BillingTemplateViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Billing/template/{templateId}": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Retrieves a billing template by its unique identifier.",
        "operationId": "GetBillingTemplate",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "description": "The billing template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The billing template was found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BillingTemplateViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingTemplateViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BillingTemplateViewModel"
                }
              }
            }
          },
          "404": {
            "description": "No billing template exists with the given id."
          }
        }
      },
      "delete": {
        "tags": [
          "Billing"
        ],
        "summary": "Deletes a billing template.",
        "operationId": "DeleteBillingTemplate",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "description": "The identifier of the billing template to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "404": {
            "description": "The billing template was not found."
          },
          "200": {
            "description": "The billing template was deleted.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          }
        }
      }
    },
    "/Billing/template": {
      "put": {
        "tags": [
          "Billing"
        ],
        "summary": "Creates or updates a billing template.",
        "operationId": "PutBillingTemplate",
        "requestBody": {
          "description": "The billing template input model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingTemplateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/BillingTemplateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/BillingTemplateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The billing template was successfully saved.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/Billing/billingInformation/{customerId}": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Retrieves billing information for a customer.",
        "operationId": "GetCustomerBillingInformation",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Billing information was found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingInformationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingInformationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBillingInformationViewModel"
                }
              }
            }
          },
          "404": {
            "description": "No billing information exists for the customer."
          }
        }
      },
      "put": {
        "tags": [
          "Billing"
        ],
        "summary": "Updates billing information for a customer.",
        "operationId": "PutCustomerBillingInformation",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The billing information update model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerBillingInformationInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerBillingInformationInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCustomerBillingInformationInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Billing information was successfully updated.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "The request body was invalid."
          },
          "422": {
            "description": "Validation failed."
          }
        }
      }
    },
    "/Billing/generateInvoices": {
      "get": {
        "tags": [
          "Billing"
        ],
        "summary": "Generates invoices for all customers that are due for invoicing.",
        "description": "This operation evaluates customer billing rules, contracts,\nand invoice schedules before generating invoices.",
        "operationId": "GenerateCustomerInvoices",
        "parameters": [
          {
            "name": "customerId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Invoice generation completed."
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/participants/{userId}/complete": {
      "post": {
        "tags": [
          "CourseInstanceParticipation"
        ],
        "summary": "Completes all course instance participant progress that can be completed by an administrator or group responsible.\nIf all module attempts are complete afterwards, the course participation is completed.",
        "operationId": "CompleteCourseInstanceParticipant",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteCourseInstanceParticipantResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/participants/complete": {
      "post": {
        "tags": [
          "CourseInstanceParticipation"
        ],
        "summary": "Completes all course instance participant progress for the specified participants.",
        "operationId": "CompleteCourseInstanceParticipants",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteCourseInstanceParticipantsInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteCourseInstanceParticipantsResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/participants/{userId}/cancel": {
      "post": {
        "tags": [
          "CourseInstanceParticipation"
        ],
        "summary": "Cancels a course instance participant and marks incomplete modules as not completed.\nAlready completed modules keep their previous status. Does not create a training record.",
        "operationId": "CancelCourseInstanceParticipant",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelCourseInstanceParticipantResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/cancel": {
      "post": {
        "tags": [
          "CourseInstanceParticipation"
        ],
        "summary": "Cancels all incomplete participants on a course instance.\nAlready completed participants keep their previous status.",
        "operationId": "CancelCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelCourseInstanceResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/create": {
      "post": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Starts a new course instance based on the specified course template and participants.",
        "operationId": "CreateCourseInstance",
        "requestBody": {
          "description": "The input model containing the course ID and optional start/end dates.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseInstanceInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}": {
      "put": {
        "tags": [
          "CourseInstances"
        ],
        "operationId": "UpdateCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseInstanceInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCourseInstanceResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Retrieves a single course instance by its unique identifier.",
        "operationId": "GetCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance to retrieve.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/instances": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Gets all course instances.",
        "operationId": "GetCourseInstances",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceViewModelPagingDto"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/analytics/knowledge-gap": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Runs the course-level knowledge-gap analysis for a specific course instance, combining results from all\nknowledge tests that were actually delivered to that learner group.",
        "operationId": "GetCourseInstanceKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "Course instance identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseKnowledgeGapAnalysisViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CourseInstances"
        ],
        "operationId": "DeleteCourseInstanceKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/modules/{moduleInstanceId}/analytics/knowledge-gap": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Runs the thematic knowledge-gap analysis for a single knowledge test module instance, highlighting how that\ngroup of learners performed on each theme and which focus areas should be reinforced.",
        "operationId": "GetKnowledgeTestModuleInstanceKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "moduleInstanceId",
            "in": "path",
            "description": "Knowledge test module instance identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeGapAnalysisViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CourseInstances"
        ],
        "operationId": "DeleteKnowledgeTestModuleInstanceKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "moduleInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/admin/training/knowledge-test-module-instances/{moduleInstanceId}/statistics": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Returns admin-only statistics for a knowledge test module instance (completed attempts only).",
        "operationId": "GetAdminKnowledgeTestModuleInstanceStatistics",
        "parameters": [
          {
            "name": "moduleInstanceId",
            "in": "path",
            "description": "Knowledge test module instance identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminKnowledgeTestStatisticsReportViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/participants": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Retrieves participants for a specific course instance with optional filtering, sorting, and pagination.",
        "operationId": "GetCourseParticipants",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance to retrieve participants for.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.HideCompleted",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.Result",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CourseResult"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseParticipantViewModelPagingDto"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}": {
      "delete": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Deletes a course instance and all related data (subject to configured cascade delete).",
        "description": "This action loads the complete course instance, including its parts, modules, and participants, before deletion.\nCascade delete behavior in the database or EF Core configuration determines which related entities are also deleted.",
        "operationId": "DeleteCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{instanceId}/modules/{moduleId}": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Gets a specific module for the current user in a course instance, if the user is a participant.",
        "operationId": "GetCourseModuleInstance",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The ID of the module to retrieve.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "instanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestModuleInstanceViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/participant/{userId}": {
      "delete": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Removes a participant from a specific course instance.",
        "operationId": "RemoveCourseInstanceParticipant",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "The unique identifier of the user to be removed as a participant.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/participants/add-users": {
      "post": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Adds multiple users to a specific course instance.",
        "operationId": "AddUserParticipationToCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The input model containing the list of user IDs to be added as participants.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddUserParticipationInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/participants/{participantId}/reference-id": {
      "put": {
        "tags": [
          "CourseInstances"
        ],
        "operationId": "UpdateCourseParticipantReferenceId",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "participantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseParticipantReferenceIdInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseParticipantViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/participants/existing-users": {
      "post": {
        "tags": [
          "CourseInstances"
        ],
        "operationId": "GetExistingParticipantUserIds",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddUserParticipationInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/participants/add-groups": {
      "post": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Adds multiple groups to a specific course instance.",
        "operationId": "AddGroupParticipationToCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The input model containing the list of group IDs to be added as participants.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddGroupParticipationInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/activate": {
      "put": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Activates a specific course instance, making it available for participants to engage with.",
        "operationId": "ActivateCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceActivationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/courses/{courseInstanceId}/deactivate": {
      "put": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Deactivates a specific course instance, preventing participants from engaging with it.",
        "operationId": "DeactivateCourseInstance",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseInstanceActivationResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseInstances/{courseInstanceId}/subjects/eligible": {
      "get": {
        "tags": [
          "CourseInstances"
        ],
        "summary": "Gets eligible subjects for a specific course instance.",
        "operationId": "GetEligibleSubjects",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SubjectType",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SubjectType"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectViewModelPagingDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/modules/{moduleId}": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Gets a course module by its unique identifier.",
        "operationId": "GetCourseModule",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The unique identifier of the course module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Deletes a course module by its ID and type.",
        "operationId": "DeleteCourseModule",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The unique identifier of the course module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseModuleType",
            "in": "query",
            "description": "The type of the course module.",
            "schema": {
              "$ref": "#/components/schemas/CourseModuleType"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/CourseModules": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Retrieves a paginated, sorted, and filtered list of course modules.",
        "operationId": "GetCourseModules",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.HideUnpublished",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.Types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CourseModuleType"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the list of course modules.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleViewModelPagingDto"
                }
              }
            }
          },
          "404": {
            "description": "No course modules were found matching the specified filter.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Creates a new course.",
        "operationId": "CreateCourseModule",
        "requestBody": {
          "description": "The course module input model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseModuleInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseModuleInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseModuleInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/{courseModuleId}": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Updates a course",
        "operationId": "UpdateCourseModule",
        "parameters": [
          {
            "name": "courseModuleId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The Course Module",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseModuleDetailsInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseModuleDetailsInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseModuleDetailsInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCourseModuleDetailsResult"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/{courseModuleId}/publish": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Publishes a course, making it available for users to access.",
        "description": "Sample request:\n  POST /api/courseModules/{courseModuleId}/publish",
        "operationId": "PublishCourseModule",
        "parameters": [
          {
            "name": "courseModuleId",
            "in": "path",
            "description": "The unique identifier of the course module to be published.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course module was successfully published.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseModuleResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided course module ID is invalid."
          }
        }
      }
    },
    "/CourseModules/{courseModuleId}/unpublish": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Unpublishes a course module, making it unavailable for users to access.",
        "description": "Sample request:\n POST /api/courseModules/{courseModuleId}/unpublish",
        "operationId": "UnpublishCourseModule",
        "parameters": [
          {
            "name": "courseModuleId",
            "in": "path",
            "description": "The unique identifier of the course module to be unpublished.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course module was successfully unpublished.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseModuleResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided course module ID is invalid."
          }
        }
      }
    },
    "/CourseModules/knowledgeTest/{knowledgeTestModuleId}/questions": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Adds a new question to a Knowledge Test module.",
        "description": "Sample request:\n```\nPOST /api/courses/modules/{courseModuleId}/questions\n{\n  \"title\": \"Which statements about C# are true?\",\n  \"feedbackMarkdown\": \"Helpful feedback after answering...\",\n  \"answeringType\": \"Multiple\",\n  \"shuffleAlternatives\": true\n}\n```",
        "operationId": "AddKnowledgeTestQuestion",
        "parameters": [
          {
            "name": "knowledgeTestModuleId",
            "in": "path",
            "description": "The unique identifier of the Knowledge Test module to which the question will be added.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The question payload (title, alternatives, correctness, feedback, etc.).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKnowledgeTestQuestionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddKnowledgeTestQuestionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddKnowledgeTestQuestionInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The question was successfully added to the module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddKnowledgeTestQuestionResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided payload is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The specified module was not found, or it is not a Knowledge Test module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/knowledgeTest/{knowledgeTestModuleId}/questions/{questionId}": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Updates a question in a Knowledge Test module.",
        "operationId": "UpdateKnowledgeTestQuestion",
        "parameters": [
          {
            "name": "knowledgeTestModuleId",
            "in": "path",
            "description": "The unique identifier of the Knowledge Test module containing the question.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionId",
            "in": "path",
            "description": "The unique identifier of the question to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The updated question data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKnowledgeTestQuestionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKnowledgeTestQuestionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateKnowledgeTestQuestionInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The question was successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateKnowledgeTestQuestionResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided payload is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The specified module or question was not found, or it is not a Knowledge Test module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Deletes a question from a Knowledge Test module.",
        "operationId": "DeleteKnowledgeTestQuestion",
        "parameters": [
          {
            "name": "knowledgeTestModuleId",
            "in": "path",
            "description": "The unique identifier of the Knowledge Test module containing the question.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionId",
            "in": "path",
            "description": "The unique identifier of the question to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The question was successfully deleted."
          },
          "404": {
            "description": "The specified module or question was not found, or it is not a Knowledge Test module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/knowledgeTest/{knowledgeTestModuleId}/publish-preview": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Previews the impact of publishing current knowledge test template corrections\nto existing course instances. Does not mutate any instance or participant result.",
        "operationId": "GetKnowledgeTestPublishPreview",
        "parameters": [
          {
            "name": "knowledgeTestModuleId",
            "in": "path",
            "description": "The template knowledge test module id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Preview generated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestPublishPreview"
                }
              }
            }
          },
          "404": {
            "description": "The specified module was not found, or it is not a Knowledge Test module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/knowledgeTest/{knowledgeTestModuleId}/publish": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Publishes current knowledge test template corrections to selected active course instances.\nDoes not downgrade already passed participant results.",
        "operationId": "PublishKnowledgeTestCorrections",
        "parameters": [
          {
            "name": "knowledgeTestModuleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/KnowledgeTestPublishRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/KnowledgeTestPublishRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/KnowledgeTestPublishRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestPublishResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/{courseModuleId}/changeQuestionOrdinal": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Changes the ordinal of a question in a knowledge test.",
        "operationId": "ChangeQuestionOrdinal",
        "parameters": [
          {
            "name": "courseModuleId",
            "in": "path",
            "description": "The unique identifier of the course module containing the knowledge test.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The mapping of question IDs to their new ordinal positions.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The question ordinal was successfully changed."
          },
          "400": {
            "description": "The provided course module ID is invalid or the ordinal map is empty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/slideShow/{slideShowModuleId}/slides": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Adds a new slide to a Slide Show module.",
        "description": "Sample request:\n```\nPOST /api/courseModules/slideShow/{slideShowModuleId}/slides\n{\n  \"contentMarkdown\": \"This is the content of the slide\"\n}\n```",
        "operationId": "AddSlideShowSlide",
        "parameters": [
          {
            "name": "slideShowModuleId",
            "in": "path",
            "description": "The unique identifier of the Slide Show module to which the slide will be added.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The slide payload (title, content, etc.).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSlideShowSlideInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSlideShowSlideInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddSlideShowSlideInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The slide was successfully added to the module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddSlideShowSlideResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided payload is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The specified module was not found, or it is not a Slide Show module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/slideShow/{slideShowModuleId}/slides/{slideId}": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Updates a slide in a Slide Show module.",
        "operationId": "UpdateSlideShowSlide",
        "parameters": [
          {
            "name": "slideShowModuleId",
            "in": "path",
            "description": "The unique identifier of the Slide Show module containing the slide.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "slideId",
            "in": "path",
            "description": "The unique identifier of the slide to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The updated slide data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSlideShowSlideInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSlideShowSlideInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSlideShowSlideInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The slide was successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateSlideShowSlideResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided payload is invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "The specified module or slide was not found, or it is not a Slide Show module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Deletes a slide from a Slide Show module.",
        "operationId": "DeleteSlideShowSlide",
        "parameters": [
          {
            "name": "slideShowModuleId",
            "in": "path",
            "description": "The unique identifier of the Slide Show module containing the slide.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "slideId",
            "in": "path",
            "description": "The unique identifier of the slide to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The slide was successfully deleted."
          },
          "404": {
            "description": "The specified module or slide was not found, or it is not a Slide Show module.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/{courseModuleId}/changeSlideOrdinal": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Changes the ordinal of a slide in a slide show.",
        "operationId": "ChangeSlideOrdinal",
        "parameters": [
          {
            "name": "courseModuleId",
            "in": "path",
            "description": "The unique identifier of the course module containing the slide show.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The mapping of slide IDs to their new ordinal positions.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The slide ordinal was successfully changed."
          },
          "400": {
            "description": "The provided course module ID is invalid or the ordinal map is empty.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/article/{articleModuleId}": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "operationId": "UpdateArticleContent",
        "parameters": [
          {
            "name": "articleModuleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleContentInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleContentInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateArticleContentInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateArticleContentResult"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/video/{videoModuleId}": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "operationId": "UpdateVideoModuleSource",
        "parameters": [
          {
            "name": "videoModuleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoModuleSourceInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoModuleSourceInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoModuleSourceInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateVideoModuleSourceResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/video/{videoModuleId}/description": {
      "put": {
        "tags": [
          "CourseModules"
        ],
        "operationId": "UpdateVideoDescription",
        "parameters": [
          {
            "name": "videoModuleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoDescriptionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoDescriptionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoDescriptionInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateVideoDescriptionResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/upload": {
      "post": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Uploads one or more training media files to the CourseMedia container.",
        "operationId": "UploadCourseMediaFiles",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "The collection of files submitted via multipart/form-data.\nEach file must include a stream, file name, and MIME type."
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Files were uploaded successfully."
          },
          "400": {
            "description": "Invalid tenant ID or upload failure."
          },
          "403": {
            "description": "User does not have sufficient permissions."
          }
        }
      }
    },
    "/CourseModules/media/getFileUrls": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Retrieves metadata and URLs for course media and media-library source files for the current tenant.",
        "operationId": "GetCourseMediaFilesInformation",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.FileTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "Filter.FilterIsActive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseMediaGetResult"
                }
              }
            }
          }
        }
      }
    },
    "/{fileIdentifier}": {
      "delete": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Soft-deletes a course media file by marking its state as inactive.",
        "operationId": "SoftDeleteCourseMediaFile",
        "parameters": [
          {
            "name": "fileIdentifier",
            "in": "path",
            "description": "The unique identifier of the media file to delete.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The file was soft-deleted successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input or missing tenant ID."
          },
          "403": {
            "description": "User does not have sufficient permissions."
          }
        }
      }
    },
    "/CourseModules/articleDummy": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Placeholder for exposing the ArticleModuleViewModel type to the swagger documentation. Should not be used for anything else.",
        "operationId": "GetDummyArticleModule",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleModuleViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/knowledgeTestDummy": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Placeholder for exposing the KnowledgeTestModuleViewModel type to the swagger documentation. Should not be used for anything else.",
        "operationId": "GetDummyKnowledgeTestModule",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestModuleViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/slideShowDummy": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Placeholder for exposing the SlideShowModuleViewModel type to the swagger documentation. Should not be used for anything else.",
        "operationId": "GetDummySlideShowModule",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlideShowModuleViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/CourseModules/videoDummy": {
      "get": {
        "tags": [
          "CourseModules"
        ],
        "summary": "Placeholder for exposing the VideoModuleViewModel type to the swagger documentation. Should not be used for anything else.",
        "operationId": "GetDummyVideoModule",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoModuleViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Courses": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Gets all course templates with pagination support.",
        "operationId": "GetCourses",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.HideUnpublished",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModelPagingDto"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Creates a new course.",
        "operationId": "CreateCourse",
        "requestBody": {
          "description": "The course input model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCourseInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/{courseId}": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Gets a specific course by its unique identifier.",
        "operationId": "GetCourse",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Courses"
        ],
        "summary": "Updates a course",
        "operationId": "UpdateCourse",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The Course",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseDetailsInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseDetailsInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseDetailsInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCourseDetailsResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCourseDetailsResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCourseDetailsResult"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Courses"
        ],
        "summary": "Deletes a course by ID.",
        "operationId": "DeleteCourse",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The ID of the course to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/Courses/modules/type": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Gets course modules by type, optionally filtered by a search term.",
        "operationId": "GetModulesByType",
        "parameters": [
          {
            "name": "courseModuleType",
            "in": "query",
            "description": "The type of course modules to retrieve.",
            "schema": {
              "$ref": "#/components/schemas/CourseModuleType"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "An optional search term used to filter the modules.",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseModuleViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseModuleViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseModuleViewModel"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/modules/coursemodules": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Retrieves a paginated, sorted, and filtered list of course modules.",
        "operationId": "GetCourseModules",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.HideUnpublished",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.Types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CourseModuleType"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the list of course modules.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModelPagingDto"
                }
              }
            }
          },
          "404": {
            "description": "No course modules were found matching the specified filter.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/partModules": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Retrieves course modules for the sidebar when adding a module to a CoursePart.",
        "description": "Pagination, sorting, and filtering are applied internally using Belay.Core.Contract.Training.CourseModels.Query.GetCourseModulesQueryParameters.",
        "operationId": "GetCoursePartModules",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term to filter course modules by name or other properties.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully retrieved the list of course modules. Returns an empty collection if no modules match the filter.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CoursePartModuleViewModel"
                }
              }
            }
          },
          "404": {
            "description": "No course modules were found matching the specified filter (optional, depending on how you handle empty results).",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/modules/{moduleId}": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Gets a course module by its unique identifier.",
        "operationId": "GetCourseModule",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The unique identifier of the course module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Courses"
        ],
        "summary": "Deletes a course module by its ID and type.",
        "operationId": "DeleteCourseModule",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The unique identifier of the course module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseModuleType",
            "in": "query",
            "description": "The type of the course module.",
            "schema": {
              "$ref": "#/components/schemas/CourseModuleType"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/Courses/modules/{moduleId}/analytics/questions": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Retrieves aggregated analytics for each question in a knowledge test module template, including\nper-question success metrics, precision/recall, and per-alternative selection statistics.",
        "operationId": "GetKnowledgeTestModuleQuestionAnalytics",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "Knowledge test module template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "description": "Optional course context. When provided, results are scoped to module instances that ran within the specified course,\nwhich is helpful if the module is reused across several courses.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "description": "Determines how strictly participant answers must match the current module revision before being included in the stats.\nUse Belay.Core.Domain.Training.Courses.Analytics.QuestionMatchMode.Strict for exact content matches or relax it when evaluating iterations.",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAlternativeAnalyticsViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAlternativeAnalyticsViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAlternativeAnalyticsViewModel"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/modules/{moduleId}/analytics/ai-suggestions": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Retrieves AI-authored improvement suggestions for knowledge test questions whose observed performance deviates\nfrom expectations (for example, low precision or confusing alternatives).",
        "operationId": "GetKnowledgeTestModuleQuestionAiSuggestions",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "Knowledge test module template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "description": "Optional course scope to focus the analysis on a particular audience.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "description": "Controls how strictly historical attempts must match the current module definition.",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAiSuggestionViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAiSuggestionViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuestionAiSuggestionViewModel"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/modules/{moduleId}/analytics/knowledge-gap": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Runs a thematic knowledge-gap analysis for a knowledge test module template, clustering questions into themes,\nhighlighting knowledge gaps, and recommending focus areas for remediation.",
        "operationId": "GetKnowledgeTestModuleKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "Knowledge test module template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "description": "Optional course context to restrict the analysis to the learners of a specific course.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "description": "Controls whether semantic drift is allowed when matching historical attempts to the current module definition.",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeGapAnalysisViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeGapAnalysisViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeGapAnalysisViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Courses"
        ],
        "operationId": "DeleteKnowledgeTestModuleKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/{courseId}/analytics/knowledge-gap": {
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Aggregates knowledge-gap analysis across every knowledge test within a course template to surface cross-module themes,\nmodule highlights, and prioritized focus areas for curriculum owners.",
        "operationId": "GetCourseKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "Course template identifier.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "description": "Controls whether semantic drift is allowed when matching historical attempts to the current module definitions in the course.",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseKnowledgeGapAnalysisViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseKnowledgeGapAnalysisViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseKnowledgeGapAnalysisViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Courses"
        ],
        "operationId": "DeleteCourseKnowledgeGapAnalysis",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "matchMode",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/QuestionMatchMode"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/{courseId}/parts": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Adds a new course part to a specified course.",
        "description": "Sample request:\n  POST /api/courses/{courseId}/parts\n {\n  \"name\": \"Introduction to C#\",\n  \"ordinal\": 1\n }",
        "operationId": "AddCoursePart",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course to which the part will be added.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The input model containing the details of the course part to be added.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The course part was successfully added.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartResult"
                }
              }
            }
          },
          "400": {
            "description": "The input model is invalid."
          }
        }
      }
    },
    "/Courses/parts/{coursePartId}": {
      "put": {
        "tags": [
          "Courses"
        ],
        "summary": "Updates an existing course part.",
        "description": "Sample request:\n PUT /api/courses/parts/{coursePartId}\n {\n  \"name\": \"Updated Course Part Name\"\n }",
        "operationId": "UpdateCoursePart",
        "parameters": [
          {
            "name": "coursePartId",
            "in": "path",
            "description": "The unique identifier of the course part to be updated.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The input model containing the updated details of the course part.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCoursePartInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCoursePartInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCoursePartInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The course part was successfully updated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCoursePartResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCoursePartResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateCoursePartResult"
                }
              }
            }
          },
          "400": {
            "description": "The input model is invalid."
          }
        }
      },
      "delete": {
        "tags": [
          "Courses"
        ],
        "summary": "Removes a course part by its unique identifier.",
        "description": "Sample request:\n  DELETE /api/courses/parts/{coursePartId}",
        "operationId": "RemoveCoursePart",
        "parameters": [
          {
            "name": "coursePartId",
            "in": "path",
            "description": "The unique identifier of the course part to be removed.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course part was successfully removed."
          },
          "400": {
            "description": "The provided course part ID is invalid."
          }
        }
      }
    },
    "/Courses/parts/modules": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Adds a module to a specific course part.",
        "description": "Sample request:\nPOST /api/courses/parts/modules\n{\n  \"coursePartId\": \"guid-of-the-course-part\",\n \"moduleId\": \"guid-of-the-module\",\n}",
        "operationId": "AddCoursePartModule",
        "requestBody": {
          "description": "The input model containing the details of the module to\n            be added to the course part.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartModuleInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartModuleInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddCoursePartModuleInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The module was successfully added to the course part.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartModuleResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartModuleResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AddCoursePartModuleResult"
                }
              }
            }
          },
          "400": {
            "description": "The input model is invalid."
          }
        }
      }
    },
    "/Courses/parts/modules/{coursePartModuleId}": {
      "delete": {
        "tags": [
          "Courses"
        ],
        "summary": "Removes a module from a course part by its unique identifier.",
        "description": "Sample request:\n DELETE /api/courses/parts/modules/{coursePartModuleId}",
        "operationId": "RemoveCoursePartModule",
        "parameters": [
          {
            "name": "coursePartModuleId",
            "in": "path",
            "description": "The unique identifier of the course part module to be removed.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course part module was successfully removed."
          },
          "400": {
            "description": "The provided course part module ID is invalid."
          }
        }
      }
    },
    "/Courses/{courseId}/parts/ordinals": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Changes the ordinals of course parts within a specified course.",
        "description": "Sample request:\nPOST /api/courses/{courseId}/parts/ordinals",
        "operationId": "ChangeCoursePartOrdinal",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course whose parts' ordinals are to be changed.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The mapping of course part IDs to their new ordinals.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The ordinals were successfully changed or already set."
          },
          "400": {
            "description": "The provided course ID or ordinal map is invalid."
          }
        }
      }
    },
    "/Courses/{coursePartId}/parts/modules/ordinals": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Changes the ordinals of modules within a specified course part.",
        "description": "Sample request:\nPOST /api/courses/parts/{coursePartId}/modules/ordinals",
        "operationId": "ChangeCoursePartModuleOrdinal",
        "parameters": [
          {
            "name": "coursePartId",
            "in": "path",
            "description": "The unique identifier of the course part whose modules' ordinals are to be changed.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The mapping of course part module IDs to their new ordinals.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/OrdinalMapInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The ordinals were successfully changed or already set."
          },
          "400": {
            "description": "The provided course part ID or ordinal map is invalid."
          }
        }
      }
    },
    "/Courses/export/{courseId}": {
      "get": {
        "tags": [
          "Courses"
        ],
        "operationId": "ExportCourseJson",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/import/json": {
      "post": {
        "tags": [
          "Courses"
        ],
        "operationId": "ImportCourseJson",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "file": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/{id}/instructions": {
      "put": {
        "tags": [
          "Courses"
        ],
        "operationId": "UpdateCourseInstructions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseInstructionsInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseInstructionsInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCourseInstructionsInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Courses/{courseId}/publish": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Publishes a course, making it available for users to access.",
        "description": "Sample request:\n  POST /api/courses/{courseId}/publish",
        "operationId": "PublishCourse",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course to be published.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course was successfully published.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided course ID is invalid."
          }
        }
      }
    },
    "/Courses/{courseId}/unpublish": {
      "post": {
        "tags": [
          "Courses"
        ],
        "summary": "Unpublishes a course, making it unavailable for users to access.",
        "description": "Sample request:\n POST /api/courses/{courseId}/unpublish",
        "operationId": "UnpublishCourse",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course to be unpublished.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The course was successfully unpublished.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishCourseResult"
                }
              }
            }
          },
          "400": {
            "description": "The provided course ID is invalid."
          }
        }
      }
    },
    "/Courses/certificate/{courseId}": {
      "put": {
        "tags": [
          "Courses"
        ],
        "summary": "Creates or updates the certificate information for a given course.",
        "description": "This endpoint uses `multipart/form-data` and accepts uploaded logo/signature files.\nExample request:\n```\nPUT /api/courses/certificate/{courseId}/{certificateId}\nContent-Type: multipart/form-data\n```",
        "operationId": "UpdateCourseCertificate",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course whose certificate is being created or updated.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "LogoSvg"
                ],
                "type": "object",
                "properties": {
                  "Id": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "CertificationDescription": {
                    "type": "string"
                  },
                  "LogoSvg": {
                    "type": "string",
                    "format": "binary"
                  },
                  "SignatureSvg": {
                    "type": "string",
                    "format": "binary"
                  },
                  "SignatureString": {
                    "type": "string"
                  },
                  "ShouldGenerateQrCode": {
                    "type": "boolean"
                  }
                }
              },
              "encoding": {
                "Id": {
                  "style": "form"
                },
                "CertificationDescription": {
                  "style": "form"
                },
                "LogoSvg": {
                  "style": "form"
                },
                "SignatureSvg": {
                  "style": "form"
                },
                "SignatureString": {
                  "style": "form"
                },
                "ShouldGenerateQrCode": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseCertificateInformationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseCertificateInformationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseCertificateInformationViewModel"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "Courses"
        ],
        "summary": "Generates and returns a PDF preview of the course certificate for the specified course.",
        "operationId": "GetCourseCertificatePreview",
        "parameters": [
          {
            "name": "courseId",
            "in": "path",
            "description": "The unique identifier of the course for which to generate the certificate preview.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the generated course certificate PDF file.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/Courses/certificate/{courseCertificateId}": {
      "delete": {
        "tags": [
          "Courses"
        ],
        "operationId": "DeleteCourseCertificate",
        "parameters": [
          {
            "name": "courseCertificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Customers/{customerId}": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Gets a specific customer.",
        "operationId": "GetCustomer",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Customers"
        ],
        "summary": "Deletes a customer.",
        "operationId": "DeleteCustomer",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Customers/{customerId}/branding": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Gets the branding settings for a specific customer.",
        "operationId": "GetCustomerBranding",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBrandingViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Customers"
        ],
        "summary": "Updates the branding settings for a specific customer.",
        "operationId": "PutCustomerBranding",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The customer branding input model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerBrandingInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerBrandingInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerBrandingInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerBrandingViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/Customers": {
      "get": {
        "tags": [
          "Customers"
        ],
        "summary": "Retrieves a paged list of customers.",
        "operationId": "GetCustomers",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.EnvironmentTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/CustomerEnvironmentType"
              }
            }
          },
          {
            "name": "Filter.BillingStatuses",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/BillingStatus"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerViewModelPagingDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Customers"
        ],
        "summary": "Inserts or updates a customer.",
        "operationId": "PutCustomer",
        "requestBody": {
          "description": "The customer input model.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/Customers/{customerId}/security-policy": {
      "get": {
        "tags": [
          "Customers"
        ],
        "operationId": "GetCustomerSecurityPolicy",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSecurityPolicyViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Customers"
        ],
        "operationId": "PutCustomerSecurityPolicy",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSecurityPolicyInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSecurityPolicyInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSecurityPolicyInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerSecurityPolicyViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/Customers/{customerId}/resync-task-index": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Triggers a task index resync for a specific customer.",
        "operationId": "ResyncCustomerTaskIndex",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Customers/{customerId}/resync-identity-provider-projection": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Triggers a scoped identity provider projection reconciliation for a specific customer.",
        "operationId": "ResyncIdentityProviderProjection",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderProjectionReconciliationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Customers/{customerId}/impersonate": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Impersonates a customer for support work: you work in that organisation's context as internal support, not as a specific end user there.\nUse when you need the customer's context (for example layout, settings, or general review), not a particular person's view.",
        "operationId": "ImpersonateCustomer",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer to impersonate.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Customers/{customerId}/impersonate/users/{userId}": {
      "post": {
        "tags": [
          "Customers"
        ],
        "summary": "Impersonates a user's session at the customer: menus, access, and behaviour match how that person uses the product.\nUse when you need to reproduce or investigate something that depends on that person's role or data.",
        "operationId": "ImpersonateUser",
        "parameters": [
          {
            "name": "customerId",
            "in": "path",
            "description": "The customer the user belongs to.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "description": "The user to impersonate.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/EnterpriseConnections": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Lists enterprise connections from the identity environment.",
        "operationId": "GetEnterpriseConnections",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EnterpriseConnectionViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}/diagnostics/summary": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Gets summary counts and linked customers for an enterprise connection detail page.",
        "operationId": "GetEnterpriseConnectionDetailSummary",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionDetailSummaryViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}/diagnostics/idp-users": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Lists identity-provider users on an enterprise connection with Belay match status.",
        "operationId": "GetEnterpriseConnectionIdpUsers",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "matchStatus",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "all"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionIdpUserViewModelPagingDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}/diagnostics/belay-users": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Lists Belay users for customers assigned to an enterprise connection, optionally only SSO mismatches.",
        "operationId": "GetEnterpriseConnectionBelayUsers",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mismatchOnly",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionBelayUserViewModelPagingDto"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}": {
      "delete": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Deletes an enterprise connection from the identity environment.",
        "operationId": "DeleteEnterpriseConnection",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "force",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "affectedCustomerIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}/scim": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Gets SCIM setup information for an enterprise connection.",
        "operationId": "GetScimConfiguration",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionScimConfigurationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      },
      "post": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Enables SCIM for an enterprise connection.",
        "operationId": "EnableScimConfiguration",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionScimConfigurationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/EnterpriseConnections/{enterpriseConnectionId}/scim/tokens": {
      "post": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Creates a SCIM token for an enterprise connection.",
        "operationId": "CreateScimToken",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionScimTokenViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/EnterpriseConnections/self-service-tickets": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Lists locally stored self-service ticket records.",
        "operationId": "GetSelfServiceTickets",
        "parameters": [
          {
            "name": "enterpriseConnectionId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelfServiceTicketViewModel"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Creates a one-time self-service ticket for creating or editing an enterprise connection.",
        "operationId": "CreateSelfServiceTicket",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSelfServiceTicketInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSelfServiceTicketInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSelfServiceTicketInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelfServiceTicketViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/EnterpriseConnections/self-service-tickets/{ticketId}": {
      "get": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Gets a locally stored self-service ticket record.",
        "operationId": "GetSelfServiceTicket",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelfServiceTicketViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "EnterpriseConnections"
        ],
        "summary": "Archives a locally stored self-service ticket record and revokes the external ticket when possible.",
        "operationId": "ArchiveSelfServiceTicket",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/Forms/formdocumentworkable/{id}": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "Gets a specific form",
        "operationId": "GetFormDocumentWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The form id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocument/{id}": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "Gets a specific form",
        "operationId": "GetFormDocument",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The form id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocuments": {
      "get": {
        "tags": [
          "Forms"
        ],
        "summary": "Gets forms where name matches provided search term.",
        "operationId": "GetFormDocuments",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "formIds",
            "in": "query",
            "description": "Form ids to filter on",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "showInactive",
            "in": "query",
            "description": "Should search result contain inactive forms",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/isformusedintemplate/{id}": {
      "get": {
        "tags": [
          "Forms"
        ],
        "operationId": "IsFormUsedInTemplate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/qatemplates": {
      "get": {
        "tags": [
          "Forms"
        ],
        "operationId": "GetQATemplates",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocument": {
      "put": {
        "tags": [
          "Forms"
        ],
        "summary": "Inserts or updates a form",
        "operationId": "PutFormDocument",
        "requestBody": {
          "description": "The form",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocumentworkable": {
      "put": {
        "tags": [
          "Forms"
        ],
        "summary": "Inserts or updates a form",
        "operationId": "PutFormDocumentWorkable",
        "requestBody": {
          "description": "The form",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentWorkableInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentWorkableInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentWorkableInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocumentworkable/{id}/approve": {
      "get": {
        "tags": [
          "Forms"
        ],
        "operationId": "ApproveFormDocumentWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocumentworkable/{id}/disapprove": {
      "get": {
        "tags": [
          "Forms"
        ],
        "operationId": "DisapproveFormDocumentWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocuments/{id}": {
      "delete": {
        "tags": [
          "Forms"
        ],
        "summary": "Delete a form document",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Forms/formdocuments/import": {
      "put": {
        "tags": [
          "Forms"
        ],
        "summary": "Import a form document",
        "operationId": "ImportFormDocument",
        "requestBody": {
          "description": "The form",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/FormDocumentInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Grades/query": {
      "get": {
        "tags": [
          "Grades"
        ],
        "summary": "Gets grades that match the provided query parameters.",
        "operationId": "GetGrades",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.Groups",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.Collections",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.GradeValues",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/GradeValue"
              }
            }
          },
          {
            "name": "Filter.QATemplates",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.QualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.IncludeGradesWithNoGrp",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GradeViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradeViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GradeViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Grades/collections": {
      "get": {
        "tags": [
          "Grades"
        ],
        "summary": "Get grade collections.",
        "operationId": "GetCollections",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term for collection name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Grades/collections/byId": {
      "get": {
        "tags": [
          "Grades"
        ],
        "summary": "Get grade collections by ids.",
        "operationId": "GetCollectionsById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "description": "Collection ids to retrieve",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/Grades/collections/manual": {
      "get": {
        "tags": [
          "Grades"
        ],
        "summary": "Get manual grade collections.\nOnly collections without a quality activity task connection are included.",
        "operationId": "GetManualCollections",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term for collection name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeCollectionViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Grades/qatemplates": {
      "get": {
        "tags": [
          "Grades"
        ],
        "operationId": "GetQATemplates",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Grades/qatemplates/byId": {
      "get": {
        "tags": [
          "Grades"
        ],
        "operationId": "GetQATemplatesById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GradeQATemplateViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Grades/gradehistory/{subjectActivityTaskId}": {
      "get": {
        "tags": [
          "Grades"
        ],
        "operationId": "GetSubjectGradeHistory",
        "parameters": [
          {
            "name": "subjectActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Grades": {
      "put": {
        "tags": [
          "Grades"
        ],
        "summary": "Creates or updates a grade",
        "operationId": "Put",
        "requestBody": {
          "description": "The grade input",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradeInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GradeInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GradeInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CreateGradeResponseViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateGradeResponseViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateGradeResponseViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/Grades/{id}": {
      "delete": {
        "tags": [
          "Grades"
        ],
        "summary": "Delete a grade",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Grades/export": {
      "put": {
        "tags": [
          "Grades"
        ],
        "summary": "Create an excel export from user selection",
        "operationId": "Export",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Grades/byresponsible": {
      "get": {
        "tags": [
          "Grades"
        ],
        "summary": "Gets groups and deleted groups for grade filter",
        "operationId": "GetGroupsByResponsible",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term for group name",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupFilterViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupFilterViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupFilterViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/GroupDataCollection/{id}": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Gets a specific GroupDataCollection",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The GroupDataCollection id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "GroupDataCollection"
        ],
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/{id}/overview": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Gets overview of a specific GroupDataCollection",
        "operationId": "GetOverview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The GroupDataCollection id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Gets GroupDataCollection where matches provided search term.",
        "operationId": "Get",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "description": "Quality years to filter by",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Inserts or updates a GroupDataCollection",
        "operationId": "Put",
        "requestBody": {
          "description": "The GroupDataCollection",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupDataCollectionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupDataCollectionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupDataCollectionInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/unitsforcollection": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "operationId": "GetUnitsForCollection",
        "parameters": [
          {
            "name": "collectionId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "showCompleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/units/{id}": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Get group data collection unit based on id.",
        "operationId": "GetCollectionUnit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Group data collection unit id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/units/{id}/approve": {
      "post": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Approve collection unit",
        "operationId": "ApproveCollectionUnit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unit id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/units/{id}/open": {
      "post": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Open collection unit",
        "operationId": "OpenCollectionUnit",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Unit id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/units/{unitId}/instances/{collectableId}": {
      "get": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Gets a specific collection instance",
        "operationId": "GetCollectionInstance",
        "parameters": [
          {
            "name": "unitId",
            "in": "path",
            "description": "The unit id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "collectableId",
            "in": "path",
            "description": "The instance collectable id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/instances/{id}/confirm": {
      "post": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Confirms collection instance",
        "operationId": "ConfirmCollectionInstance",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Instance id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/instances/{id}/disprove": {
      "post": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Disprove collection instance",
        "operationId": "DisproveCollectionInstance",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Instance id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/extenddeadline": {
      "put": {
        "tags": [
          "GroupDataCollection"
        ],
        "summary": "Extends specific collection unit",
        "operationId": "ExtendDeadline",
        "requestBody": {
          "description": "ExtendDeadlineInputModel",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendCollectionUnitInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendCollectionUnitInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendCollectionUnitInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupDataCollection/{id}/setqualityyear": {
      "put": {
        "tags": [
          "GroupDataCollection"
        ],
        "operationId": "SetQualityYear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/GroupRoles": {
      "get": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "GetDefinitions",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "CreateDefinition",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/GroupRoles/{id}": {
      "get": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "GetDefinition",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "UpdateDefinition",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleDefinitionInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleDefinitionViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "DeleteDefinition",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/GroupRoles/assignments": {
      "get": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "GetAssignments",
        "parameters": [
          {
            "name": "roleIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "groupIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "userIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 50
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModelPagingDto"
                }
              }
            }
          }
        }
      }
    },
    "/GroupRoles/{roleDefinitionId}/groups/{groupId}": {
      "put": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "SetAssignment",
        "parameters": [
          {
            "name": "roleDefinitionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleAssignmentInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleAssignmentInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupRoleAssignmentInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupRoleAssignmentViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/GroupRoles/assignments/{assignmentId}": {
      "delete": {
        "tags": [
          "GroupRoles"
        ],
        "operationId": "DeleteAssignment",
        "parameters": [
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Groups/{id}": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Gets a specific group",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The group id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Groups"
        ],
        "summary": "Delete a group",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups/byresponsible": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Gets all groups in simple format",
        "operationId": "GetAll",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Groups/groupswithcontext": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Gets groups paginated (with no hierarchy) where name matches provided search term.",
        "operationId": "GetGroupsWithContext",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "description": "Tags to base sort on",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "excludeIncomplete",
            "in": "query",
            "description": "Should groups with no members and/or reviewer be included",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeMembers",
            "in": "query",
            "description": "Should groups members be loaded and returned",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeCollections",
            "in": "query",
            "description": "Should collections be loaded and returned",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeInactiveMembers",
            "in": "query",
            "description": "Should groups members that are inactive or is inspector be included",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeGroupBranchId",
            "in": "query",
            "description": "Should groups with this parent id be excluded",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups": {
      "get": {
        "tags": [
          "Groups"
        ],
        "operationId": "GetGroups",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "excludeIncomplete",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeMembers",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "includeCollections",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeInactiveMembers",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeGroupBranchId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/GroupViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "put": {
        "tags": [
          "Groups"
        ],
        "summary": "Inserts or updates a group",
        "operationId": "Put",
        "requestBody": {
          "description": "The group",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups/byId": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Get groups based on id.",
        "operationId": "GetGroupsById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/GroupViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Groups/roots": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Gets all root groups and their first level children.",
        "operationId": "GetRoots",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups/{groupId}/children": {
      "get": {
        "tags": [
          "Groups"
        ],
        "summary": "Gets children for given group",
        "operationId": "GetChildren",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The group id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups/collectionresponsiblechangewilloccur": {
      "get": {
        "tags": [
          "Groups"
        ],
        "operationId": "GroupCollectionResponsibleChangeWillOccur",
        "parameters": [
          {
            "name": "groupId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "responsibleId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Groups/{groupId}/members/{userId}": {
      "delete": {
        "tags": [
          "Groups"
        ],
        "summary": "Remove group member",
        "operationId": "RemoveGroupMember",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Groups"
        ],
        "summary": "Add group member",
        "operationId": "AddGroupMember",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "userId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/organization/excel/downloadtemplate": {
      "get": {
        "tags": [
          "Import"
        ],
        "summary": "Generates an Excel template for groups and users",
        "operationId": "DownloadImportOrganizationTemplate",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/grades/excel/downloadtemplate": {
      "get": {
        "tags": [
          "Import"
        ],
        "summary": "Generates an Excel template for grades",
        "operationId": "DownloadImportGradeTemplate",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/organization/excel/uploadtemplate": {
      "post": {
        "tags": [
          "Import"
        ],
        "operationId": "UploadImportOrganizationTemplate",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/grades/excel/uploadtemplate": {
      "post": {
        "tags": [
          "Import"
        ],
        "operationId": "UploadImportGradeTemplate",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/organization/excel/import/{token}": {
      "post": {
        "tags": [
          "Import"
        ],
        "summary": "Imports groups and users that has been previously uploaded",
        "operationId": "ImportOrganization",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Import/grades/excel/import/{token}": {
      "post": {
        "tags": [
          "Import"
        ],
        "summary": "Imports grades that has been previously uploaded",
        "operationId": "ImportGrades",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ImprovementPlans": {
      "get": {
        "tags": [
          "ImprovementPlans"
        ],
        "summary": "Gets improvement plans with paging and filters.",
        "operationId": "GetImprovementPlans",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Skip count.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Take count.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Sorting property.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Sorting direction.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "description": "Optional quality years filter.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "qualityActivities",
            "in": "query",
            "description": "Optional quality activities filter.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ImprovementPlans/{id}": {
      "get": {
        "tags": [
          "ImprovementPlans"
        ],
        "summary": "Gets a specific improvement plan.",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The improvement plan id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "ImprovementPlans"
        ],
        "summary": "Deletes an improvement plan.",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The plan id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ImprovementPlans/improvements/{id}/respond": {
      "put": {
        "tags": [
          "ImprovementPlans"
        ],
        "operationId": "RespondMeasureTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ActionPerformedEnumInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/ImprovementPlans/{id}/approve": {
      "put": {
        "tags": [
          "ImprovementPlans"
        ],
        "operationId": "ApprovePlan",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Login/complete": {
      "put": {
        "tags": [
          "Login"
        ],
        "summary": "Completes sign-in after the external identity provider redirects back. Updates the user's metadata with tenant and roles.",
        "operationId": "CompleteLogin",
        "requestBody": {
          "description": "Login parameters containing the token and the state.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginParameters"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginParameters"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginParameters"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The user is successfully logged in.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "The user is not authorized or token is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/LoginErrorResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginErrorResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/LoginErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/Login/branding": {
      "get": {
        "tags": [
          "Login"
        ],
        "summary": "Gets branding for login by subdomain.",
        "operationId": "GetBranding",
        "parameters": [
          {
            "name": "subdomain",
            "in": "header",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BrandingParameters"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandingParameters"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BrandingParameters"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Logs/external": {
      "get": {
        "tags": [
          "Logs"
        ],
        "summary": "Gets external system logs with pagination and filtering",
        "operationId": "GetExternalLogs",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.Email",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.System",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.Status",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.Days",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the paged list of logs",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LogEntryViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not a SysAdmin",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Macros": {
      "get": {
        "tags": [
          "Macros"
        ],
        "operationId": "GetMacros",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Name"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Macros"
        ],
        "operationId": "PutMacro",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MacroInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/MacroInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/MacroInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Macros/{id}": {
      "get": {
        "tags": [
          "Macros"
        ],
        "operationId": "GetMacro",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Macros"
        ],
        "operationId": "DeleteMacro",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Macros/getall": {
      "get": {
        "tags": [
          "Macros"
        ],
        "summary": "Get all macros for the current tenant",
        "operationId": "GetAllMacros",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MacroViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MacroViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MacroViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Macros/apply": {
      "put": {
        "tags": [
          "Macros"
        ],
        "operationId": "ApplyMacroToUser",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyMacroInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyMacroInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ApplyMacroInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Macros/actiontypes": {
      "get": {
        "tags": [
          "Macros"
        ],
        "operationId": "GetActionTypes",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/MediaLibrary/items/init-upload": {
      "post": {
        "tags": [
          "MediaLibrary"
        ],
        "summary": "Starts a resumable video upload and returns credentials for direct blob upload.",
        "description": "Creates a media library item in `Uploading` state and returns a time-limited SAS URL\nplus recommended chunk size. The client uploads blocks directly to blob storage using that\nURL, then calls upload/complete to commit the blob and queue HLS transcoding on the worker.\nNo processing message is sent from this endpoint.",
        "operationId": "InitUpload",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitMediaUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitMediaUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitMediaUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InitMediaUploadResponse"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}/upload/complete": {
      "post": {
        "tags": [
          "MediaLibrary"
        ],
        "summary": "Finalizes a resumable upload after the client has written all blocks to blob storage.",
        "description": "Commits the uploaded block list into the source blob, marks the media item as uploaded,\nand publishes a processing message to the media-processing topic so the worker can\ntranscode the file to HLS. Chunk uploads go directly to blob storage via SAS URLs from\ninit-upload; transcoding is not queued until this endpoint succeeds.",
        "operationId": "CompleteUpload",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMediaUploadRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMediaUploadRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CompleteMediaUploadRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteMediaUploadResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}/upload/status": {
      "get": {
        "tags": [
          "MediaLibrary"
        ],
        "operationId": "GetUploadStatus",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaUploadStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items": {
      "get": {
        "tags": [
          "MediaLibrary"
        ],
        "operationId": "ListItems",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MediaLibraryListItemResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}": {
      "get": {
        "tags": [
          "MediaLibrary"
        ],
        "operationId": "GetItem",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaLibraryItemResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "MediaLibrary"
        ],
        "summary": "Removes a video from the media library without deleting blob storage,\nso enrolled course instances that already reference the item can keep playing it.",
        "operationId": "DeleteItem",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}/processing/retry": {
      "post": {
        "tags": [
          "MediaLibrary"
        ],
        "operationId": "RetryProcessing",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}/upload/abort": {
      "post": {
        "tags": [
          "MediaLibrary"
        ],
        "operationId": "AbortUpload",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/items/{mediaItemId}/playback": {
      "get": {
        "tags": [
          "MediaLibrary"
        ],
        "summary": "Returns a short-lived HLS manifest URL for a ready media library video.",
        "description": "The returned URL points back to the media library playlist endpoint. That\nendpoint rewrites private Blob playlist and segment references into URLs\nthe browser can play without making the media container public.",
        "operationId": "GetPlaybackManifest",
        "parameters": [
          {
            "name": "mediaItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoPlaybackManifestResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/MediaLibrary/playback/playlist/{playlistPath}": {
      "get": {
        "tags": [
          "MediaLibrary"
        ],
        "summary": "Serves a rewritten HLS playlist for a previously issued playback token.",
        "description": "This endpoint serves only small .m3u8 playlist files. Video segment bytes\nare still downloaded directly from Azure Blob Storage using scoped SAS\nURLs generated during playlist rewriting.",
        "operationId": "GetPlaybackPlaylist",
        "parameters": [
          {
            "name": "playlistPath",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "token",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.apple.mpegurl": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/vnd.apple.mpegurl": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.apple.mpegurl": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Pdf/export/form/{id}": {
      "put": {
        "tags": [
          "Pdf"
        ],
        "operationId": "ExportFormWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/policies": {
      "get": {
        "tags": [
          "Policies"
        ],
        "operationId": "List",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/policies/mine": {
      "get": {
        "tags": [
          "Policies"
        ],
        "operationId": "ListMine",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              }
            }
          }
        }
      }
    },
    "/policies/due-for-renewal": {
      "get": {
        "tags": [
          "Policies"
        ],
        "operationId": "ListDueForRenewal",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyListResponse"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/policies/{id}": {
      "get": {
        "tags": [
          "Policies"
        ],
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Policies"
        ],
        "operationId": "Upsert",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyUpsertRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyUpsertRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyUpsertRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Policies"
        ],
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/policies/{id}/status": {
      "post": {
        "tags": [
          "Policies"
        ],
        "operationId": "SetStatus",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicySetStatusRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicySetStatusRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicySetStatusRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/policies/{id}/renew": {
      "post": {
        "tags": [
          "Policies"
        ],
        "operationId": "Renew",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyRenewRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyRenewRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyRenewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/policies/{id}/acknowledge": {
      "post": {
        "tags": [
          "Policies"
        ],
        "operationId": "Acknowledge",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          }
        }
      }
    },
    "/QualityActivities/getactivity/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Gets a specific QualityActivity",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The QualityActivityV id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Gets all quality activity templates.",
        "operationId": "Get",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Inserts or updates a QualityActivity",
        "operationId": "Put",
        "requestBody": {
          "description": "The QualityActivity",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityActivityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityActivityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityActivityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/byresponsible": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Gets all quality activity templates filtered by group responsible.\nFilter is based on the group responsibility of the current user and the tasks and groups associated with the quality activity.",
        "operationId": "GetByResponsible",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/taskbyresponsible": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Gets all quality activity tasks filtered by group responsible.\nFilter is based on the group responsibility of the current user and the tasks and groups associated with the quality activity.",
        "operationId": "GetTaskByResponsible",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/taskbyimprovementplan": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Retrieves quality activity tasks that are linked to improvement plans.",
        "description": "- Administrators and Inspectors receive all tasks.\n- Other users (e.g., Group Responsibles) only receive tasks",
        "operationId": "GetTaskByImprovementPlan",
        "responses": {
          "200": {
            "description": "Returns the list of tasks successfully."
          },
          "401": {
            "description": "User is not authorized."
          },
          "403": {
            "description": "User does not have permission to access this endpoint."
          }
        }
      }
    },
    "/QualityActivities/{id}": {
      "delete": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Delete a QA Template",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/tasks/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetQualityActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Delete a quality activity task",
        "operationId": "DeleteQualityActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectactivitytasks": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetSubjectActivityTasks",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "showCompleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "groups",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "groupSnapshots",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectactivitytask/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetSubjectActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectactivitytasks/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetSubjectActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectactivitytask/{subjectActivityTaskId}/history": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetSubjectActivityTaskHistory",
        "parameters": [
          {
            "name": "subjectActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/tasks": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetTasks",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "qualityActivities",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "includeArchived",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "excludeCompleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/tasks/{id}/setqualityyear": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "SetQualityYear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/EntityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/implementormapsusersqa/{qualityActivityId}": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetImplementorMapsForUsersQA",
        "parameters": [
          {
            "name": "qualityActivityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/implementormapsgroupsqa/{qualityActivityId}": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetImplementorMapsForGroupsQA",
        "parameters": [
          {
            "name": "qualityActivityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/initqualityactivitytask": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Inserts or updates a QualityActivity",
        "operationId": "InitQualityActivityTask",
        "requestBody": {
          "description": "The QualityActivity",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InitQualityActivityTaskInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InitQualityActivityTaskInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InitQualityActivityTaskInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/addsubjectqualityactivitytask": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Add subject to QualityActivityTask",
        "operationId": "AddSubjectQualityActivityTask",
        "requestBody": {
          "description": "The AddSubjectQualityActivityTaskInputModel",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSubjectQualityActivityTaskInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSubjectQualityActivityTaskInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/AddSubjectQualityActivityTaskInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/initworkablesforsubject/{id}/{referenceid}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "InitWorkablesForSubject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/implementormapsusersubject/{taskId}": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetImplementorMapsForUserSubject",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserSubjectWithContextInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/implementormapsgroupsubject/{taskId}": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetImplementorMapsForGroupSubject",
        "parameters": [
          {
            "name": "taskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GroupSubjectWithContextInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/mostrelevanttimeframes/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "GetMostRelevantTimeFrames",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/approveelementtask/{elementId}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ApproveElementTask",
        "parameters": [
          {
            "name": "elementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/activityelemeninstructionsread/{activityElementId}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ActivityElementInstructionsRead",
        "parameters": [
          {
            "name": "activityElementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/disapproveelementtask/{elementId}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "DisapproveElementTask",
        "parameters": [
          {
            "name": "elementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ProveElementInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/approvesubjectactivitytask/{id}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ApproveSubjectActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/{qualityActivityId}/activityEntities/{activityEntityId}/properties": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "PutActivityEntityProperties",
        "parameters": [
          {
            "name": "qualityActivityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "activityEntityId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "text/json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "object",
                "additionalProperties": { }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectActivityTasks/{subjectActivityTaskId}/workables/{workableTaskId}/grade": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "SetGrade",
        "parameters": [
          {
            "name": "subjectActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "workableTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GradeWorkableInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GradeWorkableInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GradeWorkableInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/activityelementtasks/{id}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Gets a specific ActivityElementTask",
        "operationId": "GetActivityElementTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ActivityElementTask id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/extenddeadline": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ExtendDeadline",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendQAInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendQAInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExtendQAInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/changeimplementor": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ChangeImplementor",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeImplementorInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeImplementorInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeImplementorInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/qualityactivitysubjects/{id}": {
      "delete": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Delete a specific QualityActivitySubject",
        "operationId": "DeleteQualityActivitySubject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The QualityActivitySubject id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/archive/{qualityActivityTaskId}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "ArchiveQATask",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/unarchive/{qualityActivityTaskId}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "UnArchiveQATask",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/retrievesubjectsuser/{token}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Imports quality activities that has been previously uploaded",
        "operationId": "ParseQualityActivitiesUserSubjects",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "The token that was generated when the file was uploaded",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/retrievesubjectsgroup/{token}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Imports quality activities that has been previously uploaded",
        "operationId": "ParseQualityActivitiesGroupSubjects",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "The token that was generated when the file was uploaded",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/uploadtemplate/{subjectType}": {
      "post": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "UploadInitQATemplate",
        "parameters": [
          {
            "name": "subjectType",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SubjectType"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/downloadtemplate/{subjectType}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Generates an Excel template for quality subjects",
        "operationId": "DownloadImportQualitySubjectTemplate",
        "parameters": [
          {
            "name": "subjectType",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SubjectType"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/{id}/has-template-errors": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Checks if a qualityactivitytemplate has an error int it.",
        "operationId": "HasTemplateErrors",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityActivities/subjectActivityTasks/{id}/export": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Exports a subject activity task and its related data as a ZIP archive.",
        "description": "This endpoint generates a ZIP file containing various exports related to the subject activity task.\nIf the provided id is empty or invalid, a `400 Bad Request` response is returned.\nIf the task is not found, a `404 Not Found` response is returned.",
        "operationId": "ExportSubjectActivityTask",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the subject activity task to be exported.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the ZIP archive.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid ID provided."
          },
          "404": {
            "description": "Task not found."
          }
        }
      }
    },
    "/QualityActivities/tasks/{qualityActivityTaskId}/subjectActivityTasks/{subjectActivityTaskId}/documentVerifications/{workableId}": {
      "get": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Generates and returns a PDF document that summarizes the verification of a quality activity form.",
        "operationId": "GetQualityActivityDocumentVerification",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "path",
            "description": "The quality activity task id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subjectActivityTaskId",
            "in": "path",
            "description": "The subject activity task id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "workableId",
            "in": "path",
            "description": "The document verification workable id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceId",
            "in": "query",
            "description": "The subject reference id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "anonymized",
            "in": "query",
            "description": "Whether the returned PDF should be anonymized.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the generated PDF document.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "If the input parameters are null or invalid."
          },
          "404": {
            "description": "If the required resources are not found."
          },
          "500": {
            "description": "if any exception happens at creation of verification."
          }
        }
      },
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "operationId": "UpdateQualityActivityDocumentVerification",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "subjectActivityTaskId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "workableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "anonymized",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request"
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/QualityActivities/changesubjectactivitytaskrefid/{id}": {
      "put": {
        "tags": [
          "QualityActivities"
        ],
        "summary": "Updates the reference ID of a SubjectActivityTask/>.",
        "operationId": "ChangeSubjectActivityTaskRefId",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The unique identifier of the SubjectActivityTask/> to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "referenceId",
            "in": "query",
            "description": "The new reference ID to assign.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/quality-items/{itemId}/comments": {
      "get": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "GetQualityItemComments",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "CreateQualityItemComment",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/comments/{commentId}": {
      "put": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "EditQualityItemComment",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "commentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "DeleteQualityItemComment",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "commentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/comments": {
      "get": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "GetQualityManagementComments",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentListViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "CreateQualityManagementComment",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/comments/{commentId}": {
      "put": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "EditQualityManagementComment",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "commentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityCollaborationCommentWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityCollaboration"
        ],
        "operationId": "DeleteQualityManagementComment",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "commentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/evaluation-overview": {
      "get": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Returns the current evaluation, bounded history, summary, and blockers.",
        "operationId": "GetQualityManagementEvaluationOverview",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationOverviewViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationOverviewViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationOverviewViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/evaluation-items": {
      "get": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Returns the handled deficiencies, the items reported as not applicable, and the items flagged\nin an audit, for the evaluator to review.",
        "operationId": "GetQualityManagementEvaluationItems",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationItemsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationItemsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationItemsViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/evaluation.pdf": {
      "get": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Returns the evaluation as a PDF document.",
        "operationId": "GetQualityManagementEvaluationPdf",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/evaluation": {
      "put": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Creates or updates the current evaluation for the management.",
        "operationId": "PutQualityManagementEvaluation",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementEvaluationWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementEvaluationWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementEvaluationWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}:complete": {
      "post": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Completes the management after evaluation prerequisites are satisfied.",
        "operationId": "CompleteQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}:reopen": {
      "post": {
        "tags": [
          "QualityEvaluation"
        ],
        "summary": "Reopens a completed management so reporting and evaluation can continue.",
        "operationId": "ReopenQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementEvaluationMutationViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-frameworks": {
      "get": {
        "tags": [
          "QualityFrameworks"
        ],
        "operationId": "ListQualityFrameworks",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkListViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkListViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkListViewModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityFrameworks"
        ],
        "operationId": "CreateQualityFramework",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-frameworks/{id}": {
      "put": {
        "tags": [
          "QualityFrameworks"
        ],
        "operationId": "UpdateQualityFramework",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkUpdateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkUpdateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityFrameworkUpdateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityFrameworkViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/items": {
      "get": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Returns direct live children under the management root.",
        "operationId": "GetQualityManagementItems",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Creates a quality item under the given parent.",
        "operationId": "CreateQualityManagementItem",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/children": {
      "get": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Returns direct live children under the given quality item.",
        "operationId": "GetQualityItemChildren",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemChildrenViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/parents": {
      "get": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Returns all direct live parents of the given quality item.",
        "operationId": "GetQualityItemParents",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemParentsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemParentsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemParentsViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}:link": {
      "post": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Adds a parent edge to the item.",
        "operationId": "LinkQualityItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemLinkInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemLinkInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemLinkInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}:unlink": {
      "post": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Removes a parent edge from the item.",
        "operationId": "UnlinkQualityItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemUnlinkInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemUnlinkInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemUnlinkInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}:move": {
      "post": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Moves the item between parents.",
        "operationId": "MoveQualityItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemMoveInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemMoveInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemMoveInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}:reorder": {
      "post": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Reorders the direct children of the route item.",
        "operationId": "ReorderQualityItemChildren",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReorderInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReorderInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReorderInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}": {
      "patch": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Patches display details for a quality item.",
        "operationId": "PatchQualityItemDetails",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemDetailsPatchInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemDetailsPatchInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemDetailsPatchInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityHierarchy"
        ],
        "summary": "Deletes a quality item from the management hierarchy.",
        "operationId": "DeleteQualityItem",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "qualityManagementId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemHierarchyMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns item context including root state, current report, responsibility, and allowed actions.",
        "operationId": "GetQualityItemContext",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskRootItemId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemContextViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemContextViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemContextViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/import/template": {
      "get": {
        "tags": [
          "QualityImport"
        ],
        "summary": "Downloads the workbook template used for an import.",
        "operationId": "DownloadImportTemplate",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/import/upload": {
      "post": {
        "tags": [
          "QualityImport"
        ],
        "summary": "Uploads and validates a workbook before import apply.",
        "operationId": "UploadAndValidateImport",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportUploadViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportUploadViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportUploadViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/import": {
      "post": {
        "tags": [
          "QualityImport"
        ],
        "summary": "Applies a validated import using its source token.",
        "operationId": "ApplyImport",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityImportApplyInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityImportApplyInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityImportApplyInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportApplyViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportApplyViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityImportApplyViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{qualityItemId}/policy-links": {
      "get": {
        "tags": [
          "QualityItemPolicyLinks"
        ],
        "operationId": "List",
        "parameters": [
          {
            "name": "qualityItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedPolicyProgressResponse"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedPolicyProgressResponse"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedPolicyProgressResponse"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualityItemPolicyLinks"
        ],
        "operationId": "Replace",
        "parameters": [
          {
            "name": "qualityItemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyQualityItemLinksRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyQualityItemLinksRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PolicyQualityItemLinksRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/report": {
      "post": {
        "tags": [
          "QualityItemReport"
        ],
        "summary": "Submits the first report for an active item.",
        "operationId": "SubmitQualityItemReport",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskRootItemId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualityItemReport"
        ],
        "summary": "Replaces the current report in place.",
        "operationId": "ReplaceQualityItemReport",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskRootItemId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemReportWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityItemReport"
        ],
        "summary": "Removes the current report from the item.",
        "operationId": "DeleteQualityItemReport",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "taskRootItemId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemReportMutationViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items": {
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns a filtered, paginated flat list of visible quality items.",
        "operationId": "GetQualityItems",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "itemTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemTypeFilter"
              }
            }
          },
          {
            "name": "itemStates",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemStateFilter"
              }
            }
          },
          {
            "name": "states",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemStateFilter"
              }
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "qualityYearId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "qualityManagementIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "managementIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "responsibleUserIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "unassignedResponsible",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "unassignedQualityManagement",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "resolutionTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemResolutionFilter"
              }
            }
          },
          {
            "name": "conclusionTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemConclusionFilter"
              }
            }
          },
          {
            "name": "queryTemplates",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemListViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemListViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemListViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/risk-distribution": {
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns scored risks for the distribution report, capped at the read bound.",
        "operationId": "GetQualityRiskDistribution",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskDistributionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskDistributionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskDistributionViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/activity-links": {
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns the item's linked activity tasks with their template and state.",
        "operationId": "GetQualityItemActivityLinks",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemActivityLinkDetailsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemActivityLinkDetailsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemActivityLinkDetailsViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Replaces activity-task links on a quality item. Requires If-Match on the item version.",
        "operationId": "PutQualityItemActivityLinks",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemActivityLinksWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemActivityLinksWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemActivityLinksWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/selectable": {
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns items that can be linked as a parent or countermeasure inside one quality management.",
        "operationId": "GetQualitySelectableItems",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "itemTypes",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QualityItemTypeFilter"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualitySelectableItemsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualitySelectableItemsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualitySelectableItemsViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{taskRootId}/work-area": {
      "get": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Returns the assigned work area rooted at the given item, including progress.",
        "operationId": "GetQualityItemWorkArea",
        "parameters": [
          {
            "name": "taskRootId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeAncestors",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkAreaViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkAreaViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkAreaViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/responsibility": {
      "put": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Assigns or clears direct responsibility on a quality item. Requires If-Match on the item version.",
        "operationId": "PutQualityItemResponsibility",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/responsibilities": {
      "put": {
        "tags": [
          "QualityItems"
        ],
        "summary": "Assigns or clears the same direct responsibility on several items. Each item carries the ETag it\nwas read with; items in one management change together or not at all.",
        "operationId": "PutQualityItemResponsibilities",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityBatchWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityBatchWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityBatchWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/audits": {
      "get": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "List",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "Create",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-audits/{auditId}": {
      "get": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "GetById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "UpdateById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "DeleteById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-audits/{auditId}/items": {
      "put": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "UpdateItemsById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditItemsPatchInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditItemsPatchInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditItemsPatchInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditDetailViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-audits/{auditId}/complete": {
      "post": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "CompleteById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCompleteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCompleteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementAuditCompleteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-audits/{auditId}/reopen": {
      "post": {
        "tags": [
          "QualityManagementAudits"
        ],
        "operationId": "ReopenById",
        "parameters": [
          {
            "name": "auditId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementAuditViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements": {
      "get": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Gets the quality management roots visible to the current user.",
        "operationId": "GetQualityManagements",
        "parameters": [
          {
            "name": "Search",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "QualityYearId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "QualityFrameworkId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Status",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "ResponsibleUserId",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "UnassignedResponsible",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Evaluated",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Locked",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Sort",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Direction",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "IncludeProgress",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModelPagingDto"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Creates an empty quality management root.",
        "operationId": "CreateQualityManagement",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}": {
      "get": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Gets a quality management root by id.",
        "operationId": "GetQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Updates quality management root details. Requires If-Match.",
        "operationId": "UpdateQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementDetailsPatchInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementDetailsPatchInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementDetailsPatchInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Deletes a non-template quality management root. Requires If-Match.",
        "operationId": "DeleteQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/workbook.xlsx": {
      "get": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Dumps one quality management to a workbook for further work outside the application.",
        "operationId": "GetQualityManagementWorkbook",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/tree": {
      "get": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Gets the complete bounded hierarchy snapshot for a quality management page.",
        "operationId": "GetQualityManagementTree",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTreeSnapshotViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTreeSnapshotViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTreeSnapshotViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/risk-assessment": {
      "get": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Gets the bounded objective and risk snapshot for the assessment page.",
        "operationId": "GetRiskAssessmentSnapshot",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskAssessmentSnapshotViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskAssessmentSnapshotViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityRiskAssessmentSnapshotViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/memberships": {
      "put": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Replaces memberships on the management root. Requires If-Match on the management version.",
        "operationId": "PutQualityManagementMemberships",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementMembershipWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementMembershipWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementMembershipWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}/responsibility": {
      "put": {
        "tags": [
          "QualityManagements"
        ],
        "summary": "Assigns or clears direct responsibility on a management root. Requires If-Match on the root version.",
        "operationId": "PutQualityManagementResponsibility",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityResponsibilityWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-items/{itemId}/schedule": {
      "get": {
        "tags": [
          "QualitySchedule"
        ],
        "summary": "Returns the effective schedule for the quality item.",
        "operationId": "GetQualityItemSchedule",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualitySchedule"
        ],
        "summary": "Replaces the explicit schedule start for the quality item.",
        "operationId": "PutQualityItemSchedule",
        "parameters": [
          {
            "name": "itemId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemScheduleWriteInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemScheduleWriteInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityItemScheduleWriteInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityItemScheduleViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "412": {
            "description": "Precondition Failed",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          },
          "428": {
            "description": "Precondition Required",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-templates": {
      "get": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Lists templates visible to the current actor.",
        "operationId": "GetQualityManagementTemplates",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateListViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateListViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateListViewModel"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Creates a template definition and optionally publishes its first version.",
        "operationId": "CreateQualityManagementTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-templates/{templateId}": {
      "get": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Returns template metadata for the given template id.",
        "operationId": "GetQualityManagementTemplate",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-templates/{templateId}/versions": {
      "post": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Creates and optionally publishes a new template version.",
        "operationId": "CreateTemplateVersion",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateVersionCreateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateVersionCreateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementTemplateVersionCreateInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-templates/{templateId}/versions/{versionId}": {
      "get": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Returns a specific template version.",
        "operationId": "GetTemplateVersion",
        "parameters": [
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "versionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements:initialize": {
      "post": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Creates a management from a published template version.",
        "operationId": "InitializeQualityManagementFromTemplate",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementInitializeInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementInitializeInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementInitializeInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-managements/{qualityManagementId}:copy": {
      "post": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Copies an existing management into a new management root.",
        "operationId": "CopyQualityManagement",
        "parameters": [
          {
            "name": "qualityManagementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCopyInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCopyInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityManagementCopyInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementInitializeCopyViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/quality-management-operations/{operationId}": {
      "get": {
        "tags": [
          "QualityTemplates"
        ],
        "summary": "Returns status and outcome for an initialize or copy operation.",
        "operationId": "GetQualityManagementOperation",
        "parameters": [
          {
            "name": "operationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateOperationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateOperationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityManagementTemplateOperationViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/my-quality-work": {
      "get": {
        "tags": [
          "QualityWork"
        ],
        "operationId": "GetMyQualityWork",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkSnapshotViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkSnapshotViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QualityWorkSnapshotViewModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ApiProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/QualityYears": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "Get",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "Put",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityYearInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QualityYearInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QualityYearInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityYears/active": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "summary": "Gets the active quality years.",
        "operationId": "GetActive",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/QualityYears/{id}": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityYears/byId": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "summary": "Gets quality years by ids.",
        "operationId": "GetById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "description": "Quality year ids to retrieve",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityYearViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/QualityYears/next": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "GetNext",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityYears/previous": {
      "get": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "GetPrevious",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityYears/{id}/open": {
      "put": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "OpenYear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/QualityYears/{id}/close": {
      "put": {
        "tags": [
          "QualityYears"
        ],
        "operationId": "CloseYear",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Reports/cpd": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Gets the CPD fulfillment report for the selected scope.",
        "operationId": "GetCpdReport",
        "parameters": [
          {
            "name": "PeriodStart",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PeriodEnd",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "TitleIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "TrainingRequirementIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "GroupIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the CPD report.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CpdReportViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpdReportViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CpdReportViewModel"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated."
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    },
    "/Reports/cpd/excel": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Exports the CPD fulfillment report for the selected scope to Excel.",
        "operationId": "ExportCpdReportExcel",
        "parameters": [
          {
            "name": "PeriodStart",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "PeriodEnd",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "TitleIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "TrainingRequirementIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "GroupIds",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "SortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the CPD report Excel file.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated."
          },
          "403": {
            "description": "If the user is not allowed to access the selected scope."
          }
        }
      }
    },
    "/Reports/responsereport": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves the response report based on the provided filter.",
        "description": "This endpoint generates a response report using the provided filter. The result is wrapped in a\nBelay.Core.Contract.Reports.ResponseDistributionReport.ResponseDistributionReportViewModel for presentation.",
        "operationId": "GetResponseReport",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel containing the filter criteria for the response report, such as question groups,\nquestions, answering alternatives, and subject forms.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The response report was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseDistributionReportViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseDistributionReportViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResponseDistributionReportViewModel"
                }
              }
            }
          },
          "400": {
            "description": "The provided filter is invalid."
          }
        }
      }
    },
    "/Reports/responsereport/excelexport": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Exports the response report to an Excel file based on the provided filter criteria.",
        "description": "This endpoint generates an Excel file for the response report using the provided filter.\nThe file is returned for download.",
        "operationId": "ExportResponseReportExcel",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel containing the filter criteria for the response report,\nsuch as question groups, questions, answering alternatives, and subject forms.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResponseReportInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The Excel file was successfully generated and returned."
          },
          "400": {
            "description": "The provided filter is invalid."
          }
        }
      }
    },
    "/Reports/qualityactivities/affiliatedforms": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves a list of all quality activity selectors that contain selectors the current user is affiliated with, either as an admin or responsible.\nThese selectors can be used to filter the report returned from M:Belay.Core.Api.Controllers.ReportsController.GetResponseReport(Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel).",
        "description": "This endpoint returns a list of Belay.Core.Contract.Reports.ViewModel.QualityActivityReportSelectorViewModel for quality activities related to forms that the\ncurrent user is affiliated with. The affiliation is determined by the user's role (admin or responsible). These selectors are used\nto filter the response report data in M:Belay.Core.Api.Controllers.ReportsController.GetResponseReport(Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel).",
        "operationId": "GetAffiliatedQualityActivityTasks",
        "parameters": [
          {
            "name": "activityYearId",
            "in": "query",
            "description": "An optional System.Guid representing the activity year to filter the results by.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of affiliated quality activity selectors was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityActivityReportSelectorViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityActivityReportSelectorViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QualityActivityReportSelectorViewModel"
                  }
                }
              }
            }
          },
          "404": {
            "description": "No affiliated quality activity selectors were found."
          }
        }
      }
    },
    "/Reports/formreportdata": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves form selector data for a specific quality activity task and a set of form document IDs.\nThis selector data can be used to filter the report returned from M:Belay.Core.Api.Controllers.ReportsController.GetResponseReport(Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel).",
        "description": "This endpoint returns form selector data based on the provided quality activity task and form document IDs. If the user is not\nan administrator or inspector, the results are filtered by the subject IDs the user is responsible for. The returned data can\nbe used to filter the response report data in M:Belay.Core.Api.Controllers.ReportsController.GetResponseReport(Belay.Core.Contract.Reports.ResponseDistributionReport.ResponseReportInputModel).",
        "operationId": "GetFormReportData",
        "parameters": [
          {
            "name": "qualityActivityTaskId",
            "in": "query",
            "description": "The System.Guid of the quality activity task for which to retrieve form selector data.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "formDocumentIds",
            "in": "query",
            "description": "A collection of System.Guid representing the form document IDs for which to retrieve selector data.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The form selector data was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": { }
                }
              }
            }
          },
          "404": {
            "description": "The requested form selector data could not be found."
          }
        }
      }
    },
    "/Reports/subjectreport": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves a subject report based on the provided filter criteria.",
        "description": "This endpoint generates a subject report based on the provided filter. The filter includes the question ID and subject forms.\nThe returned report is wrapped in a Belay.Core.Contract.Reports.ViewModel.SubjectResponseReportViewModel.",
        "operationId": "GetSubjectReport",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.ResponseDistributionReport.SubjectReportInputModel containing the filter criteria for the report, including the question ID and subject forms.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The subject report was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectResponseReportViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectResponseReportViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubjectResponseReportViewModel"
                }
              }
            }
          },
          "400": {
            "description": "The provided filter is invalid."
          }
        }
      }
    },
    "/Reports/reporttemplates": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves a list of report templates based on the provided model.",
        "description": "This endpoint retrieves a list of report templates filtered by the provided quality activity IDs. If no templates are found,\nan empty list is returned.",
        "operationId": "GetReportTemplates",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.ReportTemplates.GetReportTemplatesModel containing the list of quality activity IDs to filter the report templates.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportTemplatesModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportTemplatesModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/GetReportTemplatesModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The report templates were successfully retrieved, or an empty list if no templates match the criteria.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The provided filter is invalid."
          }
        }
      }
    },
    "/Reports/reporttemplate": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Saves a report template based on the provided input model.",
        "description": "This endpoint allows users to create or update a report template.\n- If the input template ID is provided, it updates the existing template.",
        "operationId": "SaveReportTemplate",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.ReportTemplates.ReportTemplateInputModel containing the details of the report template to be saved.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportTemplateInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ReportTemplateInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ReportTemplateInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The report template was successfully saved, returning the updated list of templates.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ReportTemplateViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "The input is null or invalid."
          },
          "401": {
            "description": "User is unauthorized to save the template."
          }
        }
      }
    },
    "/Reports/reporttemplate/{id}": {
      "delete": {
        "tags": [
          "Reports"
        ],
        "summary": "Deletes a report template based on the specified template ID.",
        "description": "This endpoint allows users to delete a report template.\nOnly the creator of the template or a system administrator can delete the template.\nIf the provided ID is empty, a `422 Unprocessable Entity` response is returned.\nIf the template or user does not exist, a `404 Not Found` response is returned.\nIf the user does not have the required permissions, a `401 Unauthorized` response is returned.",
        "operationId": "DeleteReportTemplate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "A System.Guid representing the unique identifier of the report template to be deleted.\nThis value must not be empty.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The report template was successfully deleted."
          },
          "401": {
            "description": "User is unauthorized to delete the template."
          },
          "404": {
            "description": "The template or user was not found."
          },
          "422": {
            "description": "The provided ID is empty or invalid."
          }
        }
      }
    },
    "/Reports/exportsubjectreport": {
      "post": {
        "tags": [
          "Reports"
        ],
        "summary": "Exports a subject report based on the provided subject selectors.",
        "description": "This endpoint generates and returns a report based on the provided subjects.\nIf the request body is missing or invalid, a `400 Bad Request` response is returned.\nIf the user is not authenticated, a `401 Unauthorized` response is returned.",
        "operationId": "ExportSubjectReport",
        "requestBody": {
          "description": "A Belay.Core.Contract.Reports.InputModel.SubjectReportRequestInputModel containing the quality activity task ID and subject selectors.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportRequestInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportRequestInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectReportRequestInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the generated report file.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body."
          },
          "401": {
            "description": "User is unauthorized."
          }
        }
      }
    },
    "/Reports/qualityactivityreport/qualityActivityReportSelectors": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves quality activity report selectors based on the specified quality year and user permissions.",
        "description": "This endpoint fetches available quality activity report selectors.\nIf the user is not an administrator or inspector, the results are filtered based on the subjects they are responsible for.\nIf the user is not authenticated, a `401 Unauthorized` response is returned.",
        "operationId": "GetQualityActivityReportSelectors",
        "parameters": [
          {
            "name": "qualityYearId",
            "in": "query",
            "description": "An optional System.Guid representing the quality year filter.\nIf provided, the results will be filtered to match the given quality year.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of quality activity report selectors.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "User is unauthorized."
          }
        }
      }
    },
    "/Reports/qualityactivityreport/subjectSelectors": {
      "get": {
        "tags": [
          "Reports"
        ],
        "summary": "Retrieves subject selectors based on the specified quality activity task selector ID.",
        "description": "This endpoint fetches subject selectors related to a specific quality activity task.\nIf the provided selector ID is invalid or does not match any records, an empty collection is returned.",
        "operationId": "GetSubjectSelectors",
        "parameters": [
          {
            "name": "qualityActivityTaskSelectorId",
            "in": "query",
            "description": "A System.String representing the quality activity task selector ID.\nThis value is used to filter the subject selectors.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "completedOnly",
            "in": "query",
            "description": "A System.Boolean indicating whether to filter by completed tasks only.",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of subject selectors.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SelectorViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid or missing selector ID."
          }
        }
      }
    },
    "/": {
      "get": {
        "tags": [
          "Root"
        ],
        "operationId": "GetRoot",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/SelfService/scim-flow/tickets/{ticketId}": {
      "get": {
        "tags": [
          "SelfService"
        ],
        "operationId": "GetScimSetup",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SelfServiceScimSetupViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/SelfService/scim-flow/tickets/{ticketId}/tokens": {
      "post": {
        "tags": [
          "SelfService"
        ],
        "operationId": "CreateScimToken",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnterpriseConnectionScimTokenViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "502": {
            "description": "Bad Gateway"
          }
        }
      }
    },
    "/SelfService/scim-flow/tickets/{ticketId}/done": {
      "post": {
        "tags": [
          "SelfService"
        ],
        "operationId": "CompleteScimSetup",
        "parameters": [
          {
            "name": "ticketId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Tags/{id}": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Gets a specific tag",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The tag id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "delete": {
        "tags": [
          "Tags"
        ],
        "summary": "Delete a tag",
        "operationId": "Delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Tags": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Gets tags where name or description matches provided search term.",
        "operationId": "GetTags",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TagViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TagViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "put": {
        "tags": [
          "Tags"
        ],
        "summary": "Inserts or updates a tag",
        "operationId": "Put",
        "requestBody": {
          "description": "The tag",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TagInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TagInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Tags/byId": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Get tags based on id.",
        "operationId": "GetTagsById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Tags/all": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Gets all tags in simple format",
        "operationId": "GetAll",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TagViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Tags/types": {
      "get": {
        "tags": [
          "Tags"
        ],
        "summary": "Gets all available tag types",
        "operationId": "GetTagTypes",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Tasks/myTasks": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get all tasks for current user",
        "operationId": "GetMyTasks",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaskType"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "showExpired",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskResultViewModel"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Tasks/myActiveCount": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get all active tasks for current user",
        "operationId": "GetMyActiveCount",
        "parameters": [
          {
            "name": "includeExpired",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Tasks/myTaskBundles": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get bundles of all tasks and upcoming tasks for current user",
        "operationId": "GetMyTaskBundles",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaskType"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "onlyCompleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "qualityYears",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBundleViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBundleViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskBundleViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Tasks/myContextBundles": {
      "get": {
        "tags": [
          "Tasks"
        ],
        "summary": "Get context bundles of all tasks and upcoming tasks for current user",
        "operationId": "GetMyContextBundles",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "types",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/TaskType"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "onlyCompleted",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContextBundleViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextBundleViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContextBundleViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Tenants/settings": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Get customer settings",
        "operationId": "GetCustomerSettings",
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "put": {
        "tags": [
          "Tenants"
        ],
        "summary": "Put customer settings",
        "operationId": "PutCustomerSettings",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSettings"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSettings"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CustomerSettings"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Tenants/feature-flags": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Get customer feature flags",
        "operationId": "GetCustomerFeatureFlags",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerFeatureFlagsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerFeatureFlagsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CustomerFeatureFlagsViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Tenants/feature-flags/names": {
      "get": {
        "tags": [
          "Tenants"
        ],
        "summary": "Get available customer feature flags",
        "operationId": "GetCustomerFeatureFlagNames",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerFeatureFlag"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerFeatureFlag"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CustomerFeatureFlag"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Training/stats": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Gets active course statistics for the current user.\nIncludes active course count and next deadline.",
        "operationId": "GetMyActiveCourseStats",
        "responses": {
          "200": {
            "description": "Returns the active course statistics.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveCourseStatsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveCourseStatsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActiveCourseStatsViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/requirement-stats": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Gets the current user's training requirement progress.\nReturns the requirement that applies to the user's title and their progress towards it.",
        "operationId": "GetMyTrainingRequirementStats",
        "responses": {
          "200": {
            "description": "Returns the training requirement statistics.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementStatsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementStatsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementStatsViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/participation": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "/// Gets all course instances that the current user is enrolled in.",
        "operationId": "GetMyCourseParticipation",
        "responses": {
          "200": {
            "description": "Returns the user's course instances.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseParticipationOverviewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseParticipationOverviewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CourseParticipationOverviewModel"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Training/participation/{courseProgressId}": {
      "get": {
        "tags": [
          "Training"
        ],
        "operationId": "GetCourseParticipation",
        "parameters": [
          {
            "name": "courseProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseParticipationViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/modules/{moduleAttemptId}": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Gets a specific course module participation",
        "operationId": "GetCourseModuleParticipation",
        "parameters": [
          {
            "name": "moduleAttemptId",
            "in": "path",
            "description": "Module attempt id.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The module participation was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseModuleParticipationViewModel"
                }
              }
            }
          },
          "404": {
            "description": "The specified module participation was not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/modules/{moduleId}/slideShow": {
      "get": {
        "tags": [
          "Training"
        ],
        "operationId": "GetSlideShowModuleInstance",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SlideShowModuleParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlideShowModuleParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SlideShowModuleParticipationViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/modules/{moduleId}/article": {
      "get": {
        "tags": [
          "Training"
        ],
        "operationId": "GetArticleModuleInstance",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleModuleParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleModuleParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArticleModuleParticipationViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/modules/{moduleId}/knowledgeTest": {
      "get": {
        "tags": [
          "Training"
        ],
        "operationId": "GetKnowledgeTestModuleInstance",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestModuleParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestModuleParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestModuleParticipationViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/modules/{moduleId}/video": {
      "get": {
        "tags": [
          "Training"
        ],
        "operationId": "GetVideoModuleInstance",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/VideoModuleParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoModuleParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/VideoModuleParticipationViewModel"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courses/{moduleId}/question/{questionId}/courseProgress:{knowledgeTestProgressId}": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Gets a specific knowledge test question instance from a course module.",
        "operationId": "GetQuestionInstanceWithUserProgress",
        "parameters": [
          {
            "name": "moduleId",
            "in": "path",
            "description": "The unique identifier of the course module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionId",
            "in": "path",
            "description": "The unique identifier of the question within the module.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the knowledgeTestProgress.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The question instance was successfully retrieved.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestQuestionParticipationViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestQuestionParticipationViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestQuestionParticipationViewModel"
                }
              }
            }
          },
          "404": {
            "description": "The specified question instance was not found."
          }
        }
      }
    },
    "/Training/progress/article/{articleProgressId}": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Marks a specific article as viewed for a given article progress (user/session progress).",
        "operationId": "PutArticleProgress",
        "parameters": [
          {
            "name": "articleProgressId",
            "in": "path",
            "description": "The unique identifier of the user's article progress.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successfully marked the article as viewed.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              }
            }
          },
          "404": {
            "description": "If the article progress or article instance could not be found."
          }
        }
      }
    },
    "/Training/progress/video/{videoProgressId}": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "PutVideoProgress",
        "parameters": [
          {
            "name": "videoProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoProgressInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoProgressInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVideoProgressInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitVideoProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitVideoProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitVideoProgressResult"
                }
              }
            }
          }
        }
      }
    },
    "/Training/progress/video/{videoProgressId}/complete": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "PutVideoModuleComplete",
        "parameters": [
          {
            "name": "videoProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitArticleProgressResult"
                }
              }
            }
          }
        }
      }
    },
    "/Training/progress/slide-show/{slideShowProgressId}": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Advances the slide progress for a specific slide in a slide show for a given user/session.",
        "operationId": "PutSlideShowProgress",
        "parameters": [
          {
            "name": "slideShowProgressId",
            "in": "path",
            "description": "The unique identifier of the slide show progress (user/session progress).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The unique identifier of the slide instance to advance.",
          "content": {
            "application/json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            },
            "text/json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully advanced the slide progress.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitSlideProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitSlideProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitSlideProgressResult"
                }
              }
            }
          },
          "404": {
            "description": "If the slide progress could not be found or advanced."
          }
        }
      }
    },
    "/Training/progress/knowledge-test/{knowledgeTestProgressId}": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Submits or updates the answer progress for a specific question in a knowledge test attempt.\nIf toggled successfully returns true",
        "operationId": "PutKnowledgeTestProgress",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the knowledge test progress (the current attempt/session).",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The input model containing the question instance, the selected answer alternative,\nand whether the user has answered.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionProgressInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionProgressInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/QuestionProgressInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successfully submitted the answer progress.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              }
            }
          },
          "400": {
            "description": "If the request body or identifiers are invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the progress could not be found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courses/{questionId}/{knowledgeTestProgressId}/correct-question": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Corrects a specific question for a participant and returns the score.",
        "operationId": "CorrectKnowledgeTestQuestion",
        "parameters": [
          {
            "name": "questionId",
            "in": "path",
            "description": "The unique identifier of the question.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the participant.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionScore"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionScore"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionScore"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courses/{testModuleInstanceId}/{knowledgeTestProgressId}/correct-exam": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Corrects the entire knowledge test for a participant and returns the overall score.",
        "operationId": "CorrectKnowledgeTest",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the participant.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "testModuleInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the exam result.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TestScore"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestScore"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TestScore"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courses/{knowledgeTestProgressId}/init-new-test-attempt": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Initializes a new test attempt for a participant by creating a new knowledge test progress record.",
        "operationId": "InitNewTestAttemptForParticipant",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the existing knowledge test progress.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the new knowledge test progress.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestAttemptViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestAttemptViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/KnowledgeTestAttemptViewModel"
                }
              }
            }
          },
          "404": {
            "description": "If the existing knowledge test progress is not found."
          }
        }
      }
    },
    "/Training/admin/knowledge-tests/{knowledgeTestProgressId}/extra-attempt": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "StartExtraTestAttempt",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdminKnowledgeTestAttemptResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminKnowledgeTestAttemptResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdminKnowledgeTestAttemptResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/knowledge-tests/{knowledgeTestProgressId}/reset-attempt": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "ResetTestAttempt",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ResetKnowledgeTestAttemptResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetKnowledgeTestAttemptResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ResetKnowledgeTestAttemptResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/knowledge-tests/{knowledgeTestProgressId}/questions/{questionInstanceId}/reset-answer": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "ResetQuestionAnswer",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "questionInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitTestQuestionProgressResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/participations/{courseProgressId}/unlock": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "UnlockParticipation",
        "parameters": [
          {
            "name": "courseProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCourseParticipationResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCourseParticipationResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCourseParticipationResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/modules/{moduleProgressId}/complete": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "ForceCompleteModule",
        "parameters": [
          {
            "name": "moduleProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/course-parts/{coursePartInstanceId}/participants/{courseProgressId}/complete": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "ForceCompleteCoursePart",
        "parameters": [
          {
            "name": "coursePartInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForceModuleCompletionResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/modules/{moduleProgressId}/cancel": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "CancelModule",
        "parameters": [
          {
            "name": "moduleProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CancelModuleResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelModuleResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelModuleResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/course-parts/{coursePartInstanceId}/participants/{courseProgressId}/cancel": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "CancelCoursePart",
        "parameters": [
          {
            "name": "coursePartInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CancelCoursePartResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelCoursePartResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelCoursePartResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/modules/{moduleProgressId}/unlock": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "UnlockModule",
        "parameters": [
          {
            "name": "moduleProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockModuleResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockModuleResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockModuleResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/admin/course-parts/{coursePartInstanceId}/participants/{courseProgressId}/unlock": {
      "post": {
        "tags": [
          "Training"
        ],
        "operationId": "UnlockCoursePart",
        "parameters": [
          {
            "name": "coursePartInstanceId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseProgressId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCoursePartResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCoursePartResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnlockCoursePartResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courses/{knowledgeTestProgressId}/canStartNewAttempt": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Checks if a participant can start a new attempt for a specific module instance.",
        "operationId": "CanStartNewAttempt",
        "parameters": [
          {
            "name": "knowledgeTestProgressId",
            "in": "path",
            "description": "The unique identifier of the module instance.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns true if a new attempt can be started; otherwise, false.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "If the provided identifiers are invalid."
          }
        }
      }
    },
    "/Training/participation/{courseProgressId}/canComplete": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Checks if a training participation can be completed.",
        "operationId": "CanCompleteParticipation",
        "parameters": [
          {
            "name": "courseProgressId",
            "in": "path",
            "description": "The unique identifier of the training participation.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns true if the training participation can be completed; otherwise, false.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "boolean"
                }
              },
              "application/json": {
                "schema": {
                  "type": "boolean"
                }
              },
              "text/json": {
                "schema": {
                  "type": "boolean"
                }
              }
            }
          },
          "400": {
            "description": "If the provided identifiers are invalid."
          },
          "404": {
            "description": "If the participation is not found."
          }
        }
      }
    },
    "/Training/participation/{courseProgressId}/complete": {
      "post": {
        "tags": [
          "Training"
        ],
        "summary": "Completes a training participation if all requirements are met.",
        "operationId": "CompleteParticipation",
        "parameters": [
          {
            "name": "courseProgressId",
            "in": "path",
            "description": "The unique identifier of the training participation.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The participation was successfully completed Belay.Core.Contract.Training.CourseParticipation.CourseTrainingProgressViewModel.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the provided identifiers are invalid."
          },
          "409": {
            "description": "If the participation cannot be completed due to unmet requirements."
          },
          "404": {
            "description": "If the participation is not found."
          }
        }
      }
    },
    "/Training/certificate/{courseInstanceId}/{courseProgressId}": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Generates and returns the final course certificate PDF for the specified course instance\nand participant progress.",
        "operationId": "GetCourseCertificate",
        "parameters": [
          {
            "name": "courseInstanceId",
            "in": "path",
            "description": "The unique identifier of the course instance containing the participant's progress.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "courseProgressId",
            "in": "path",
            "description": "The unique identifier of the participant's course progress entry.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the generated course certificate PDF file.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/Training/courseMediaSasToken": {
      "get": {
        "tags": [
          "Training"
        ],
        "summary": "Generates scoped SAS query strings for course media and media-library containers in the current tenant.",
        "operationId": "GetCourseMediaSasToken",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSasTokensResponse"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSasTokensResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaSasTokensResponse"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Gets the training records registered for the authenticated user.",
        "operationId": "GetMyTrainingRecords",
        "responses": {
          "200": {
            "description": "Returns the user's training records ordered by newest training date.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Creates a manual training record for the authenticated user.",
        "operationId": "CreateMyTrainingRecord",
        "requestBody": {
          "description": "The manual training record values. If `RecordedById` is omitted, the authenticated user is recorded as the creator.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the newly created training record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/stats": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Gets total and verifiable training hours for the authenticated user.",
        "operationId": "GetMyTrainingRecordStats",
        "responses": {
          "200": {
            "description": "Returns total hours and verifiable hours calculated from the user's records.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordStatsViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordStatsViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordStatsViewModel"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/names": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Searches distinct training names from existing training records.",
        "operationId": "SearchTrainingRecordNames",
        "parameters": [
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term used to filter training names.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Maximum number of names to return.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns matching training names visible to the current user.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/certificate/analyze": {
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Analyzes an uploaded certificate and suggests training record values.",
        "operationId": "AnalyzeCertificate",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "File": {
                    "type": "string",
                    "format": "binary"
                  }
                }
              },
              "encoding": {
                "File": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns suggested values for manual review.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordCertificateExtractionViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordCertificateExtractionViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordCertificateExtractionViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the uploaded file is missing or invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/excel/downloadtemplate": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Generates an Excel template for importing non-verifiable training records for the authenticated user.",
        "operationId": "DownloadTrainingRecordImportTemplate",
        "responses": {
          "200": {
            "description": "Returns an Excel template with the required columns.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/excel/uploadtemplate": {
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Uploads and validates an Excel or CSV file containing non-verifiable training records.",
        "operationId": "UploadTrainingRecordImportTemplate",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "The uploaded Excel or CSV file."
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the validation result.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelValidationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelValidationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelValidationResult"
                }
              }
            }
          },
          "400": {
            "description": "If no file was attached.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/excel/import/{token}": {
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Imports non-verifiable training records for the authenticated user from a previously validated upload.",
        "operationId": "ImportTrainingRecords",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "The token returned by the upload validation endpoint.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the import result.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelImportResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelImportResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExcelImportResult"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/{id}/certificate": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Downloads the PDF certificate stored on a training record.",
        "operationId": "GetTrainingRecordCertificate",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training record whose certificate should be downloaded.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the certificate bytes with the stored content type and file name.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the caller is neither the record owner nor an administrator or group responsible user.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training record does not exist or has no stored certificate.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/{id}": {
      "put": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Updates a training record.",
        "operationId": "UpdateTrainingRecord",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training record to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The updated training record values.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated training record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the caller is not allowed to update the training record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training record is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Deletes a training record.",
        "operationId": "DeleteTrainingRecord",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training record to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The training record was successfully deleted."
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the caller is neither an administrator nor the user who recorded the training record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training record is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/user/{userId}": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Gets training records for a specific user.",
        "operationId": "GetUserTrainingRecords",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The ID of the user whose training records should be returned.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the specified user's training records ordered by newest training date.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to view the records.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the user is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Creates a manual training record for a specific user.",
        "operationId": "CreateUserTrainingRecord",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The ID of the user who should receive the training record.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The manual training record values. If `RecordedById` is omitted, the authenticated user is recorded as creator.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the newly created training record.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRecordViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to create records for this user.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the user is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/user/{userId}/period-export": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Exports training records for a period as one PDF, with a cover page and stored certificates appended.",
        "operationId": "ExportUserTrainingRecordPeriod",
        "parameters": [
          {
            "name": "userId",
            "in": "path",
            "description": "The ID of the user whose training records should be exported.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "periodStart",
            "in": "query",
            "description": "Inclusive start date. Both bounds are required to limit the period.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "periodEnd",
            "in": "query",
            "description": "Inclusive end date. Both bounds are required to limit the period.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the PDF export.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the caller cannot access the user's training records.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the user is not found.",
            "content": {
              "application/pdf": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/group/{groupId}": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Gets training records for all users in a specific group.",
        "operationId": "GetGroupTrainingRecords",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The ID of the group.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the list of training records.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRecordViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to view the group's records.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the group is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Creates training records for all users in a specific group.",
        "operationId": "CreateGroupTrainingRecords",
        "parameters": [
          {
            "name": "groupId",
            "in": "path",
            "description": "The ID of the group.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The training record data and optional list of specific user IDs.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the count of created training records.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to create records for this group.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the group is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/batch": {
      "post": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Creates training records for multiple specific users (batch operation).",
        "operationId": "CreateBatchTrainingRecords",
        "requestBody": {
          "description": "The shared training record values and the user IDs that should receive a record.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRecordBatchInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the count of created training records.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid or no users specified.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to create records for any of the specified users.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRecords/groups": {
      "get": {
        "tags": [
          "TrainingRecords"
        ],
        "summary": "Gets a summary of training records for all users the current user has access to.\nReturns aggregated data suitable for table display.",
        "operationId": "GetAllTrainingRecordsSummary",
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "description": "Page number (0-based).",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "description": "Number of items per page.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 20
            }
          },
          {
            "name": "sortKey",
            "in": "query",
            "description": "Property to sort by.",
            "schema": {
              "type": "string",
              "default": "UserName"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Sort direction (Asc/Desc).",
            "schema": {
              "type": "string",
              "default": "Asc"
            }
          },
          {
            "name": "groupIds",
            "in": "query",
            "description": "Optional filter by group IDs.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "Optional search term for user name/email.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "qualityYearIds",
            "in": "query",
            "description": "Optional filter by quality year IDs.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "titleIds",
            "in": "query",
            "description": "Optional filter by title IDs.",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the paginated list of training record summaries.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserTrainingRecordsSummaryViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserTrainingRecordsSummaryViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserTrainingRecordsSummaryViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRequirements": {
      "get": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Gets all training requirements.",
        "operationId": "GetAllTrainingRequirements",
        "responses": {
          "200": {
            "description": "Returns the list of training requirements.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRequirementListViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRequirementListViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TrainingRequirementListViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user doesn't have permission to list training requirements.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Creates a new training requirement.",
        "operationId": "CreateTrainingRequirement",
        "requestBody": {
          "description": "The training requirement data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Returns the newly created training requirement.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not an administrator.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRequirements/{id}": {
      "get": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Gets a specific training requirement by ID.",
        "operationId": "GetTrainingRequirement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training requirement.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the training requirement.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not an administrator.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training requirement is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Updates an existing training requirement.",
        "operationId": "UpdateTrainingRequirement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training requirement to update.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The updated training requirement data.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingRequirementInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Returns the updated training requirement.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingRequirementViewModel"
                }
              }
            }
          },
          "400": {
            "description": "If the input data is invalid.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not an administrator.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training requirement is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Deletes a training requirement.",
        "operationId": "DeleteTrainingRequirement",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training requirement to delete.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The training requirement was successfully deleted."
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not an administrator.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training requirement is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/TrainingRequirements/{id}/affected-count": {
      "get": {
        "tags": [
          "TrainingRequirements"
        ],
        "summary": "Gets the count of users affected by a specific training requirement.\nThis endpoint is used for async loading of affected user counts in the list view.",
        "operationId": "GetAffectedUsersCount",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the training requirement.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns the count of affected users.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "application/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              },
              "text/json": {
                "schema": {
                  "type": "integer",
                  "format": "int32"
                }
              }
            }
          },
          "401": {
            "description": "If the user is not authenticated.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "If the user is not an administrator.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "If the training requirement is not found.",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/Users/{id}/resync-task-index": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Triggers a task index resync for a specific user.",
        "operationId": "ResyncTaskIndex",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/{id}/resync-identity-provider-projection": {
      "post": {
        "tags": [
          "Users"
        ],
        "summary": "Triggers a scoped identity provider projection reconciliation for a specific user.",
        "operationId": "ResyncIdentityProviderProjection",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The user ID.",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderProjectionReconciliationResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderProjectionReconciliationResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderProjectionReconciliationResult"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          }
        }
      }
    },
    "/Users/{id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Delete a user",
        "operationId": "DeleteUser",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets a specific user",
        "operationId": "GetUser",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The user id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Users": {
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Inserts or updates a user",
        "operationId": "Put",
        "requestBody": {
          "description": "The user",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UserInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UserInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets customer members where name matches provided search term.",
        "operationId": "GetUsers",
        "parameters": [
          {
            "name": "Pagination.Page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination.PageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Sorting.SortKey",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Sorting.SortDirection",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/SortDirection"
            }
          },
          {
            "name": "Filter.Tags",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.Groups",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.Titles",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "Filter.SearchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Filter.ShowInactive",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.ShowInspector",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.FilterBySubjectIds",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.MissingSsoIdentity",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "Filter.MissingIdentityProfile",
            "in": "query",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Users/enterprise-sync-domains": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the domains that are currently governed by enterprise user sync for the active tenant.",
        "operationId": "GetEnterpriseSyncDomains",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/Users/userswithcontext": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "GetUsersWithSubjectContext",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "groups",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "titles",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "showInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "showInspector",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/responsible-for/with-context": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets users with context that the current user is responsible for.\nAdmins see all users, GroupResponsible users see only users they are responsible for.",
        "operationId": "GetUsersIAmResponsibleFor",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tags",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "groups",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "titles",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "showInactive",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/titles": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets titles where name matches provided search term.",
        "operationId": "GetTitles",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "description": "Number of items to skip",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "description": "Number of items to take",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "description": "Property to base sort on",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "description": "Asc/Desc/Ascending/Descending (default = DESC)",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "description": "The search term",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/TitleViewModelPagingDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TitleViewModelPagingDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/TitleViewModelPagingDto"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      },
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Inserts or updates a title",
        "operationId": "PutTitle",
        "requestBody": {
          "description": "The title",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TitleInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/TitleInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/TitleInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/titles/all": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets all titles in simple format",
        "operationId": "GetAllTitles",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        }
      }
    },
    "/Users/titles/byId": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get titles based on id.",
        "operationId": "GetTitlesById",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TitleViewModel"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "string"
                }
              },
              "text/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/Users/titles/{id}": {
      "delete": {
        "tags": [
          "Users"
        ],
        "summary": "Delete a title",
        "operationId": "DeleteTitle",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/export": {
      "put": {
        "tags": [
          "Users"
        ],
        "summary": "Create an excel export from user selection",
        "operationId": "ExportUsers",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ExportEntityInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/subjects": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "GetSubjects",
        "parameters": [
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "take",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "sortProperty",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sortDirection",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchTerm",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/subjects/resolve-from-email-file/downloadtemplate": {
      "get": {
        "tags": [
          "Users"
        ],
        "operationId": "DownloadEmailSubjectImportTemplate",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        }
      }
    },
    "/Users/subjects/resolve-from-email-file": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "ResolveSubjectsFromEmailFile",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "files": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              },
              "encoding": {
                "files": {
                  "style": "form"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSubjectImportResultViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSubjectImportResultViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailSubjectImportResultViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/Users/{id}/sendnotificationmail": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "SendNotificationMail",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/{id}/send-login-mail": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "SendLoginMail",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/sendnotificationemails": {
      "post": {
        "tags": [
          "Users"
        ],
        "operationId": "SendNotificationEmails",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDailyMailInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SendDailyMailInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SendDailyMailInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/Users/identity-profile-summaries": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets identity-profile summaries for the users list (SysAdmin).\nUses stored projection state and customer policy, not a live identity-provider lookup.",
        "operationId": "GetUserIdentityProfileSummaries",
        "parameters": [
          {
            "name": "ids",
            "in": "query",
            "description": "Belay user ids on the current page",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserIdentityProfileListSummaryViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserIdentityProfileListSummaryViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserIdentityProfileListSummaryViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          }
        }
      }
    },
    "/Users/{id}/identity-profile": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets the identity profile for a Belay user (SysAdmin).",
        "operationId": "GetUserIdentityProfile",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The Belay user id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Identity profile retrieved successfully",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderUserProfileViewModel"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderUserProfileViewModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityProviderUserProfileViewModel"
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "User not found"
          }
        }
      }
    },
    "/Users/{id}/logs/auth": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Gets sign-in related audit logs for a user.",
        "operationId": "GetUserAuthLogs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The user id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Number of days to look back (default: 30, max: 90)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Logs retrieved successfully",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "User not found"
          }
        }
      }
    },
    "/Users/{id}/logs/mail": {
      "get": {
        "tags": [
          "Users"
        ],
        "summary": "Get email delivery logs for a user from SendGrid/Log Analytics",
        "operationId": "GetUserMailLogs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The user id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "days",
            "in": "query",
            "description": "Number of days to look back (default: 30, max: 90)",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 30
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Logs retrieved successfully",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LogEntryViewModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input"
          },
          "404": {
            "description": "User not found"
          }
        }
      }
    },
    "/WorkableTask/getworkable/{id}": {
      "get": {
        "tags": [
          "WorkableTask"
        ],
        "summary": "Gets a specific workable task",
        "operationId": "Get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The workable id",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/connectfile/{id}": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "ConnectFileToWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkableFileInputModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkableFileInputModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/WorkableFileInputModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/disconnectfile/{id}": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "DisconnectFileFromWorkable",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/verifydocumentverification/{workableId}": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "VerifyDocumentVerification",
        "parameters": [
          {
            "name": "workableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/removedocumentverification/{workableId}": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "RemoveDocumentVerification",
        "parameters": [
          {
            "name": "workableId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/toggleoptional/{id}": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "ToggleOptional",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/WorkableTask/{id}/approve/force": {
      "put": {
        "tags": [
          "WorkableTask"
        ],
        "operationId": "ForceApprove",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "includeForm",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ActionPerformed": {
        "enum": [
          "undefined",
          "yes",
          "no"
        ],
        "type": "string"
      },
      "ActionPerformedEnumInputModel": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ActionPerformed"
          }
        },
        "additionalProperties": false
      },
      "ActionPlan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "groupSubject": {
            "$ref": "#/components/schemas/Group"
          },
          "groupSubjectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "actionSubject": {
            "$ref": "#/components/schemas/User"
          },
          "actionSubjectId": {
            "type": "string",
            "format": "uuid"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GovernedAction"
            },
            "nullable": true
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subjectActions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GovernedAction"
            },
            "nullable": true,
            "readOnly": true
          },
          "isGroupSubjectPlan": {
            "type": "boolean",
            "readOnly": true
          },
          "actionState": {
            "$ref": "#/components/schemas/ActionState"
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approved": {
            "type": "boolean",
            "readOnly": true
          },
          "stakeHolderIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "subjectActivityTask": {
            "$ref": "#/components/schemas/SubjectActivityTask"
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "fullyInitiated": {
            "type": "boolean"
          },
          "reviewer": {
            "$ref": "#/components/schemas/User"
          },
          "reviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reviewerActions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GovernedAction"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasReviewerWork": {
            "type": "boolean",
            "readOnly": true
          },
          "isSelfAssessment": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ActionState": {
        "enum": [
          "undefined",
          "active",
          "reported",
          "approved",
          "expired"
        ],
        "type": "string"
      },
      "ActiveCourseStatsViewModel": {
        "required": [
          "activeCoursesCount"
        ],
        "type": "object",
        "properties": {
          "activeCoursesCount": {
            "type": "integer",
            "format": "int32"
          },
          "nextDeadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityDeadLineInputModel": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ActivityElement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "taskDescription": {
            "type": "string",
            "nullable": true
          },
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityEntity"
            },
            "nullable": true
          },
          "qualityActivity": {
            "$ref": "#/components/schemas/QualityActivity"
          },
          "qualityActivityId": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTask"
            },
            "nullable": true
          },
          "taskType": {
            "$ref": "#/components/schemas/ElementTaskType"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "readInstructionsRequired": {
            "type": "boolean"
          },
          "isPrivate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityElementInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityEntityInputModel"
            },
            "nullable": true
          },
          "qualityActivityId": {
            "type": "string",
            "format": "uuid"
          },
          "taskType": {
            "$ref": "#/components/schemas/ElementTaskType"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "taskDescription": {
            "type": "string",
            "nullable": true
          },
          "readInstructionsRequired": {
            "type": "boolean"
          },
          "isPrivate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityElementTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityTask"
            },
            "nullable": true
          },
          "tasksOrdered": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "activityElement": {
            "$ref": "#/components/schemas/ActivityElement"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectActivityTask": {
            "$ref": "#/components/schemas/SubjectActivityTask"
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "taskType": {
            "$ref": "#/components/schemas/ElementTaskType"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "implementorMap": {
            "$ref": "#/components/schemas/ImplementorMap"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrame"
          },
          "timeFrameId": {
            "type": "string",
            "format": "uuid"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taskDescription": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "nextElementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "previousElement": {
            "$ref": "#/components/schemas/ActivityElementTask"
          },
          "previousElementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "invitations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Invitation"
            },
            "nullable": true
          },
          "halted": {
            "type": "boolean"
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "instructionsRead": {
            "type": "boolean"
          },
          "readInstructionsRequired": {
            "type": "boolean"
          },
          "isPrivate": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean",
            "readOnly": true
          },
          "implementorId": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "restrictedView": {
            "type": "boolean"
          },
          "readOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "isEligibleForReminder": {
            "type": "boolean",
            "readOnly": true
          },
          "workableTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "workableTasksOrdered": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "pipeState": {
            "$ref": "#/components/schemas/PipeState"
          },
          "isApproved": {
            "type": "boolean",
            "readOnly": true
          },
          "approveable": {
            "type": "boolean",
            "readOnly": true
          },
          "isFirstElement": {
            "type": "boolean",
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "formDocumentWorkableIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ActivityElementTaskDataInputModel": {
        "type": "object",
        "properties": {
          "elementTimeFrames": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ElementTimeFrameInputModel"
            },
            "nullable": true
          },
          "implementorMaps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImplementorMapInputModel"
            },
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityElementTaskViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityTaskViewModel"
            },
            "nullable": true
          },
          "activityElement": {
            "$ref": "#/components/schemas/ActivityElementViewModel"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "taskType": {
            "$ref": "#/components/schemas/ElementTaskType"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "groupImplementorMap": {
            "$ref": "#/components/schemas/GroupImplementorMapViewModel"
          },
          "userImplementorMap": {
            "$ref": "#/components/schemas/UserImplementorMapViewModel"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrameViewModel"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean"
          },
          "taskDescription": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "pipeState": {
            "$ref": "#/components/schemas/PipeState"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "approveable": {
            "type": "boolean"
          },
          "readInstructionsRequired": {
            "type": "boolean"
          },
          "instructionsRead": {
            "type": "boolean"
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isPrivate": {
            "type": "boolean"
          },
          "restrictedView": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityElementViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "activities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityEntityViewModel"
            },
            "nullable": true
          },
          "activityElementTask": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTaskViewModel"
            },
            "nullable": true
          },
          "taskType": {
            "$ref": "#/components/schemas/ElementTaskType"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "taskDescription": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "readInstructionsRequired": {
            "type": "boolean"
          },
          "isPrivate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityEntity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityElement": {
            "$ref": "#/components/schemas/ActivityElement"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityTask"
            },
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityEntityInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityEntityViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityTaskViewModel"
            },
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityReminder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "reminderMailId": {
            "type": "string",
            "nullable": true
          },
          "reminderSentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reminderSent": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ActivityReminderViewModel": {
        "type": "object",
        "properties": {
          "deadline": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ActivityTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityEntity": {
            "$ref": "#/components/schemas/ActivityEntity"
          },
          "activityEntityId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityElementTask": {
            "$ref": "#/components/schemas/ActivityElementTask"
          },
          "activityElementTaskId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workableTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrame"
          },
          "timeFrameId": {
            "type": "string",
            "format": "uuid"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "notPerformed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "implementors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "isFulfilled": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ActivityTaskViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityEntity": {
            "$ref": "#/components/schemas/ActivityEntityViewModel"
          },
          "activityEntityId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workableTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTaskViewModel"
            },
            "nullable": true
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrameViewModel"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "readOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "implementors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserViewModel"
            },
            "nullable": true
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ActivityTimeFrame": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "activityReminders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityReminder"
            },
            "nullable": true
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "isEligibleForReminder": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ActivityTimeFrameInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "deadlines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityDeadLineInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ActivityTimeFrameViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "activityReminders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityReminderViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddCoursePartInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "AddCoursePartModuleInputModel": {
        "required": [
          "coursePartId",
          "moduleId"
        ],
        "type": "object",
        "properties": {
          "coursePartId": {
            "type": "string",
            "format": "uuid"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "AddCoursePartModuleResult": {
        "required": [
          "coursePartId",
          "moduleId",
          "ordinal"
        ],
        "type": "object",
        "properties": {
          "coursePartModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "coursePartId": {
            "type": "string",
            "format": "uuid"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AddCoursePartResult": {
        "required": [
          "courseId",
          "coursePartId",
          "name",
          "ordinal"
        ],
        "type": "object",
        "properties": {
          "coursePartId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AddGroupParticipationInputModel": {
        "required": [
          "groupIds"
        ],
        "type": "object",
        "properties": {
          "groupIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "AddKnowledgeTestQuestionInputModel": {
        "required": [
          "answeringType",
          "shuffleAlternatives",
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "feedbackMarkdown": {
            "type": "string",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          },
          "shuffleAlternatives": {
            "type": "boolean"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddKnowledgeTestQuestionResult": {
        "required": [
          "answeringAlternatives",
          "knowledgeTestModuleId",
          "ordinal",
          "questionId"
        ],
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "knowledgeTestModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "AddSlideShowSlideInputModel": {
        "required": [
          "contentMarkdown"
        ],
        "type": "object",
        "properties": {
          "contentMarkdown": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddSlideShowSlideResult": {
        "required": [
          "ordinal",
          "slideId",
          "slideShowModuleId"
        ],
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "format": "uuid"
          },
          "slideShowModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AddSubjectQualityActivityTaskInputModel": {
        "type": "object",
        "properties": {
          "activityElementTaskData": {
            "$ref": "#/components/schemas/ActivityElementTaskDataInputModel"
          },
          "qualityActivityTaskId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "AddUserParticipationInputModel": {
        "required": [
          "userIds"
        ],
        "type": "object",
        "properties": {
          "userIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AddUserParticipationParticipantInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AddUserParticipationParticipantInputModel": {
        "required": [
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminAlternativeRankingViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "alternativeId": {
            "type": "string",
            "format": "uuid"
          },
          "alternativeText": {
            "type": "string",
            "nullable": true
          },
          "selectionRate": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AdminDifficultyVariationPointViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "avgPercent": {
            "type": "number",
            "format": "double"
          },
          "stdDevPercent": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AdminHistogramBucketViewModel": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestAlternativeViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "alternativeId": {
            "type": "string",
            "format": "uuid"
          },
          "alternativeOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "alternativeText": {
            "type": "string",
            "nullable": true
          },
          "isCorrect": {
            "type": "boolean"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "selectedCount": {
            "type": "integer",
            "format": "int32"
          },
          "selectionRate": {
            "type": "number",
            "format": "double"
          },
          "correctSelections": {
            "type": "integer",
            "format": "int32"
          },
          "correctSelectionRate": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestAttemptResultViewModel": {
        "required": [
          "attempt",
          "created"
        ],
        "type": "object",
        "properties": {
          "created": {
            "type": "boolean"
          },
          "attempt": {
            "$ref": "#/components/schemas/KnowledgeTestAttemptViewModel"
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestQuestionViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "questionOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "itemStats": {
            "$ref": "#/components/schemas/QuestionItemStatsViewModel"
          },
          "outcomeStats": {
            "$ref": "#/components/schemas/QuestionOutcomeStatsViewModel"
          },
          "passGivenCorrect": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "passGivenWrong": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "lift": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dominantIncorrectSelectionRate": {
            "type": "number",
            "format": "double"
          },
          "activeDistractorCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestStatisticsChartSeriesViewModel": {
        "type": "object",
        "properties": {
          "difficultyVsVariation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminDifficultyVariationPointViewModel"
            },
            "nullable": true
          },
          "avgPercentHistogram": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminHistogramBucketViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestStatisticsRankingsViewModel": {
        "type": "object",
        "properties": {
          "lowestAvgPercent": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminQuestionRankingViewModel"
            },
            "nullable": true
          },
          "highestStdDev": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminQuestionRankingViewModel"
            },
            "nullable": true
          },
          "highestWrongSelectionRate": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminAlternativeRankingViewModel"
            },
            "nullable": true
          },
          "highestLift": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminQuestionRankingViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestStatisticsReportMetadataViewModel": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "moduleName": {
            "type": "string",
            "nullable": true
          },
          "attemptCount": {
            "type": "integer",
            "format": "int32"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestStatisticsReportViewModel": {
        "type": "object",
        "properties": {
          "metadata": {
            "$ref": "#/components/schemas/AdminKnowledgeTestStatisticsReportMetadataViewModel"
          },
          "summary": {
            "$ref": "#/components/schemas/AdminKnowledgeTestStatisticsSummaryViewModel"
          },
          "chartSeries": {
            "$ref": "#/components/schemas/AdminKnowledgeTestStatisticsChartSeriesViewModel"
          },
          "rankings": {
            "$ref": "#/components/schemas/AdminKnowledgeTestStatisticsRankingsViewModel"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminKnowledgeTestQuestionViewModel"
            },
            "nullable": true
          },
          "alternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AdminKnowledgeTestAlternativeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AdminKnowledgeTestStatisticsSummaryViewModel": {
        "type": "object",
        "properties": {
          "questionCount": {
            "type": "integer",
            "format": "int32"
          },
          "attemptCount": {
            "type": "integer",
            "format": "int32"
          },
          "avgPercentMean": {
            "type": "number",
            "format": "double"
          },
          "avgPercentMedian": {
            "type": "number",
            "format": "double"
          },
          "stdDevMean": {
            "type": "number",
            "format": "double"
          },
          "stdDevMedian": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AdminQuestionRankingViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AlternativeAiSuggestionViewModel": {
        "type": "object",
        "properties": {
          "targetAlternativeId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetAlternative": {
            "$ref": "#/components/schemas/AnswerAlternativeAnalyticsViewModel"
          },
          "suggestedText": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnswerAlternativeAnalyticsViewModel": {
        "type": "object",
        "properties": {
          "alternativeId": {
            "type": "string",
            "format": "uuid"
          },
          "alternativeText": {
            "type": "string",
            "nullable": true
          },
          "alternativeOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "isCorrect": {
            "type": "boolean"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "selectedCount": {
            "type": "integer",
            "format": "int32"
          },
          "correctSelections": {
            "type": "integer",
            "format": "int32"
          },
          "selectionRate": {
            "type": "number",
            "format": "double"
          },
          "correctSelectionRate": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "AnsweringAlternative": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "requireMeasure": {
            "type": "boolean"
          },
          "requireMotivation": {
            "type": "boolean"
          },
          "requireAttachments": {
            "type": "boolean"
          },
          "requirePriorityFactor": {
            "type": "boolean"
          },
          "requireImprovement": {
            "type": "boolean"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "answer": {
            "type": "string",
            "nullable": true
          },
          "answered": {
            "type": "boolean",
            "readOnly": true
          },
          "isFreeText": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "AnsweringAlternativeInputModel": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "requireMeasure": {
            "type": "boolean"
          },
          "requireImprovement": {
            "type": "boolean"
          },
          "requireMotivation": {
            "type": "boolean"
          },
          "requireAttachments": {
            "type": "boolean"
          },
          "requirePriorityFactor": {
            "type": "boolean"
          },
          "documentVerification": {
            "type": "boolean"
          },
          "answer": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnsweringAlternativeViewModel": {
        "type": "object",
        "properties": {
          "answeringAlternative": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "percentage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "AnsweringType": {
        "enum": [
          "undefined",
          "multiChoice",
          "shortAnswer",
          "paragraph",
          "numeric"
        ],
        "type": "string"
      },
      "ApiProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "title": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "detail": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "instance": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "code": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "traceId": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "errors": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "nullable": true
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ApplyMacroInputModel": {
        "type": "object",
        "properties": {
          "macroId": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "ArchiveContainer": {
        "enum": [
          "undefined",
          "groups",
          "users",
          "qualityActivity",
          "policies",
          "formAttachments",
          "qualityManagement",
          "governedAction",
          "improvement",
          "documentVerification"
        ],
        "type": "string"
      },
      "ArticleModule": {
        "required": [
          "estimatedHours"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "publishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean",
            "readOnly": true
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "coursePartModules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartModule"
            },
            "nullable": true
          },
          "courseModuleInstances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleInstance"
            },
            "nullable": true
          },
          "contentMarkdown": {
            "type": "string",
            "nullable": true
          },
          "requireReadingAcknowledgement": {
            "type": "boolean"
          },
          "articleModuleInstances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleModuleInstance"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ArticleModuleInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "coursePartInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "coursePartInstance": {
            "$ref": "#/components/schemas/CoursePartInstance"
          },
          "moduleProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleProgress"
            },
            "nullable": true
          },
          "courseModuleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseModule": {
            "$ref": "#/components/schemas/CourseModule"
          },
          "typedProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ArticleProgress"
            },
            "nullable": true,
            "readOnly": true
          },
          "wordCount": {
            "type": "integer",
            "format": "int32"
          },
          "articleModuleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "articleModule": {
            "$ref": "#/components/schemas/ArticleModule"
          },
          "contentMarkdown": {
            "type": "string",
            "nullable": true
          },
          "requireReadingAcknowledgement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ArticleModuleParticipationViewModel": {
        "required": [
          "allowForceComplete",
          "changedDate",
          "contentMarkdown",
          "courseTrainingProgress",
          "createdDate",
          "isReadonly",
          "moduleInstanceId",
          "name",
          "ordinal",
          "progress",
          "requireReadingAcknowledgement",
          "type"
        ],
        "type": "object",
        "properties": {
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "isReadonly": {
            "type": "boolean"
          },
          "allowForceComplete": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "contentMarkdown": {
            "minLength": 1,
            "type": "string"
          },
          "progress": {
            "$ref": "#/components/schemas/ArticleProgress"
          },
          "requireReadingAcknowledgement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ArticleModuleViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "estimatedHours",
          "id",
          "isPublished",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "wordCount": {
            "type": "integer",
            "format": "int32"
          },
          "contentMarkdown": {
            "type": "string",
            "nullable": true
          },
          "requireReadingAcknowledgement": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ArticleProgress": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseModuleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseModuleInstance": {
            "$ref": "#/components/schemas/ArticleModuleInstance"
          },
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "participant": {
            "$ref": "#/components/schemas/CourseParticipant"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "courseProgress": {
            "$ref": "#/components/schemas/CourseProgress"
          },
          "totalUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelled": {
            "type": "boolean"
          },
          "attemptOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "isViewed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Assembly": {
        "type": "object",
        "properties": {
          "definedTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TypeInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "exportedTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            },
            "nullable": true,
            "readOnly": true
          },
          "codeBase": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "deprecated": true
          },
          "entryPoint": {
            "$ref": "#/components/schemas/MethodInfo"
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "imageRuntimeVersion": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isDynamic": {
            "type": "boolean",
            "readOnly": true
          },
          "location": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "reflectionOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "isFullyTrusted": {
            "type": "boolean",
            "readOnly": true
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "escapedCodeBase": {
            "type": "string",
            "nullable": true,
            "readOnly": true,
            "deprecated": true
          },
          "manifestModule": {
            "$ref": "#/components/schemas/Module"
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Module"
            },
            "nullable": true,
            "readOnly": true
          },
          "globalAssemblyCache": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          },
          "hostContext": {
            "type": "integer",
            "format": "int64",
            "readOnly": true
          },
          "securityRuleSet": {
            "$ref": "#/components/schemas/SecurityRuleSet"
          }
        },
        "additionalProperties": false
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AttachmentInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AutomationHistoryFailureInsightsViewModel": {
        "type": "object",
        "properties": {
          "latestError": {
            "$ref": "#/components/schemas/LogEventViewModel"
          },
          "mostFailingJobTaskName": {
            "type": "string",
            "nullable": true
          },
          "mostFailingJobFailures": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "mostFailingJobLatestFailureTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "AutomationHistorySummaryViewModel": {
        "type": "object",
        "properties": {
          "runs": {
            "type": "integer",
            "format": "int32"
          },
          "success": {
            "type": "integer",
            "format": "int32"
          },
          "failures": {
            "type": "integer",
            "format": "int32"
          },
          "failureInsights": {
            "$ref": "#/components/schemas/AutomationHistoryFailureInsightsViewModel"
          }
        },
        "additionalProperties": false
      },
      "AutomationHistoryTimeWindow": {
        "enum": [
          "undefined",
          "day",
          "thisWeek",
          "week",
          "month",
          "year"
        ],
        "type": "string"
      },
      "AutomationTaskViewModel": {
        "required": [
          "description",
          "id",
          "name",
          "settings"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "minLength": 1,
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/TaskSettingsViewModel"
          },
          "lastRun": {
            "type": "string",
            "format": "date-time"
          },
          "nextRun": {
            "type": "string",
            "format": "date-time"
          },
          "sevenDaySchedule": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "date-time"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BasicUser": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingLineType": {
        "enum": [
          "undefined",
          "standard",
          "custom"
        ],
        "type": "string"
      },
      "BillingStatus": {
        "enum": [
          "automatic",
          "stopped",
          "notConfigured"
        ],
        "type": "string"
      },
      "BillingTemplateInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItemInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingTemplateViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "country": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItemViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BillingUnit": {
        "enum": [
          "undefined",
          "users",
          "inactiveUsers",
          "unit",
          "singleCharge",
          "hours"
        ],
        "type": "string"
      },
      "BrandingParameters": {
        "required": [
          "hideWatermark",
          "logoUrl",
          "primaryColor",
          "serviceName",
          "subdomain"
        ],
        "type": "object",
        "properties": {
          "logoUrl": {
            "minLength": 1,
            "type": "string"
          },
          "primaryColor": {
            "minLength": 1,
            "type": "string"
          },
          "subdomain": {
            "minLength": 1,
            "type": "string"
          },
          "serviceName": {
            "minLength": 1,
            "type": "string"
          },
          "hideWatermark": {
            "type": "boolean"
          },
          "faviconUrl": {
            "type": "string",
            "nullable": true
          },
          "emailLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "organizationName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BundleProperty": {
        "type": "object",
        "properties": {
          "propertyName": {
            "type": "string",
            "nullable": true
          },
          "propertyValue": { }
        },
        "additionalProperties": false
      },
      "CallingConventions": {
        "enum": [
          "standard",
          "varArgs",
          "any",
          "hasThis",
          "explicitThis"
        ],
        "type": "string"
      },
      "CancelCourseInstanceParticipantResultViewModel": {
        "type": "object",
        "properties": {
          "participant": {
            "$ref": "#/components/schemas/CourseParticipantViewModel"
          },
          "cancelled": {
            "type": "boolean"
          },
          "alreadyCompleted": {
            "type": "boolean"
          },
          "cancelledModules": {
            "type": "integer",
            "format": "int32"
          },
          "preservedCompletedModules": {
            "type": "integer",
            "format": "int32"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CancelCourseInstanceResultViewModel": {
        "type": "object",
        "properties": {
          "cancelledParticipants": {
            "type": "integer",
            "format": "int32"
          },
          "preservedCompletedParticipants": {
            "type": "integer",
            "format": "int32"
          },
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CancelCourseInstanceParticipantResultViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CancelCoursePartResultViewModel": {
        "required": [
          "alreadyCancelledModules",
          "cancelledModules",
          "courseClosed",
          "isCourseComplete",
          "preservedCompletedModules",
          "progressPercentage",
          "result",
          "state"
        ],
        "type": "object",
        "properties": {
          "cancelledModules": {
            "type": "integer",
            "format": "int32"
          },
          "preservedCompletedModules": {
            "type": "integer",
            "format": "int32"
          },
          "alreadyCancelledModules": {
            "type": "integer",
            "format": "int32"
          },
          "courseClosed": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CancelModuleResultViewModel": {
        "required": [
          "alreadyCancelled",
          "alreadyCompleted",
          "cancelled",
          "courseClosed",
          "isCourseComplete",
          "progressPercentage",
          "result",
          "state"
        ],
        "type": "object",
        "properties": {
          "cancelled": {
            "type": "boolean"
          },
          "alreadyCompleted": {
            "type": "boolean"
          },
          "alreadyCancelled": {
            "type": "boolean"
          },
          "courseClosed": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "ChangeImplementorInputModel": {
        "type": "object",
        "properties": {
          "elementId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "CollectionReminder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "sentDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CollectionStatus": {
        "enum": [
          "created",
          "active",
          "collected",
          "completed",
          "expired",
          "approved",
          "removed"
        ],
        "type": "string"
      },
      "Comment": {
        "required": [
          "authorId",
          "content",
          "createdDate"
        ],
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "authorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "author": {
            "$ref": "#/components/schemas/User"
          },
          "isPrivate": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "commentCreationRoot": {
            "$ref": "#/components/schemas/CommentCreationRootEnum"
          },
          "authorName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "encryptComment": {
            "type": "boolean"
          },
          "basicUser": {
            "$ref": "#/components/schemas/BasicUser"
          }
        },
        "additionalProperties": false
      },
      "CommentCreationRootEnum": {
        "enum": [
          "undefined",
          "form",
          "action",
          "improvement"
        ],
        "type": "string"
      },
      "CommentInputModel": {
        "type": "object",
        "properties": {
          "createdDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "changedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "authorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isPrivate": {
            "type": "boolean"
          },
          "encryptComment": {
            "type": "boolean"
          },
          "hasChanged": {
            "type": "boolean"
          },
          "commentCreationRoot": {
            "$ref": "#/components/schemas/CommentCreationRootEnum"
          }
        },
        "additionalProperties": false
      },
      "CompleteCourseInstanceParticipantResultViewModel": {
        "type": "object",
        "properties": {
          "participant": {
            "$ref": "#/components/schemas/CourseParticipantViewModel"
          },
          "courseCompleted": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "requiresKnowledgeTestCompletion": {
            "type": "boolean"
          },
          "incompleteKnowledgeTestModules": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CompleteCourseInstanceParticipantsInputModel": {
        "required": [
          "participantIds"
        ],
        "type": "object",
        "properties": {
          "participantIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      },
      "CompleteCourseInstanceParticipantsResultViewModel": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompleteCourseInstanceParticipantResultViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompleteMediaUploadRequest": {
        "type": "object",
        "properties": {
          "blockIdsInOrder": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "declaredByteSize": {
            "type": "integer",
            "format": "int64"
          },
          "contentType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CompleteMediaUploadResponse": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "uploadStatus": {
            "$ref": "#/components/schemas/MediaUploadStatus"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/MediaProcessingStatus"
          }
        },
        "additionalProperties": false
      },
      "ConclusionType": {
        "enum": [
          "undefined",
          "withRemark",
          "withoutRemark"
        ],
        "type": "string"
      },
      "ConstructorInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "attributes": {
            "$ref": "#/components/schemas/MethodAttributes"
          },
          "methodImplementationFlags": {
            "$ref": "#/components/schemas/MethodImplAttributes"
          },
          "callingConvention": {
            "$ref": "#/components/schemas/CallingConventions"
          },
          "isAbstract": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructor": {
            "type": "boolean",
            "readOnly": true
          },
          "isFinal": {
            "type": "boolean",
            "readOnly": true
          },
          "isHideBySig": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isStatic": {
            "type": "boolean",
            "readOnly": true
          },
          "isVirtual": {
            "type": "boolean",
            "readOnly": true
          },
          "isAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyAndAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyOrAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructedGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethodDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "containsGenericParameters": {
            "type": "boolean",
            "readOnly": true
          },
          "methodHandle": {
            "$ref": "#/components/schemas/RuntimeMethodHandle"
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          }
        },
        "additionalProperties": false
      },
      "ConsumerAuthorizationClaim": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "resourceType": {
            "$ref": "#/components/schemas/ResourceType"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid"
          },
          "authorizationType": {
            "$ref": "#/components/schemas/ResourceAuthorizationType"
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "resourceDerivationType": {
            "$ref": "#/components/schemas/ResourceDerivationType"
          },
          "externallyDerivedFromId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "externallyDerived": {
            "type": "boolean",
            "readOnly": true
          },
          "inheritedFromId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "inherited": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ConsumerDerivationType": {
        "enum": [
          "undefined",
          "memberOfGroup",
          "responsible",
          "reviewer"
        ],
        "type": "string"
      },
      "ContextBundleViewModel": {
        "type": "object",
        "properties": {
          "bundleProperty": {
            "$ref": "#/components/schemas/BundleProperty"
          },
          "taskBundles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBundleViewModel"
            },
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/State"
          },
          "miscBundle": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ContextBundleViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContextBundleViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Course": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "publishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePart"
            },
            "nullable": true
          },
          "courseInstances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseInstance"
            },
            "nullable": true
          },
          "courseCertificateInformation": {
            "$ref": "#/components/schemas/CourseCertificateInformation"
          },
          "calculatedEstimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true,
            "readOnly": true
          },
          "isPublished": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CourseCertificateInformation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "certificationDescription": {
            "type": "string",
            "nullable": true
          },
          "logoSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureString": {
            "type": "string",
            "nullable": true
          },
          "shouldGenerateQrCode": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CourseCertificateInformationInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "certificateDescription": {
            "type": "string",
            "nullable": true
          },
          "logoSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureString": {
            "type": "string",
            "nullable": true
          },
          "shouldGenerateQrCode": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CourseCertificateInformationViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "certificationDescription": {
            "type": "string",
            "nullable": true
          },
          "logoSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureSvg": {
            "type": "string",
            "nullable": true
          },
          "signatureString": {
            "type": "string",
            "nullable": true
          },
          "shouldGenerateQrCode": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CourseInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          },
          "courseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "course": {
            "$ref": "#/components/schemas/Course"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "courseName": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "activationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseParticipant"
            },
            "nullable": true
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartInstance"
            },
            "nullable": true
          },
          "courseProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseProgress"
            },
            "nullable": true
          },
          "courseCertificate": {
            "$ref": "#/components/schemas/CourseCertificateInformationInstance"
          }
        },
        "additionalProperties": false
      },
      "CourseInstanceActivationResult": {
        "required": [
          "activated",
          "state"
        ],
        "type": "object",
        "properties": {
          "activated": {
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          }
        },
        "additionalProperties": false
      },
      "CourseInstanceViewModel": {
        "required": [
          "courseName",
          "id",
          "isActive",
          "name",
          "state"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "courseName": {
            "minLength": 1,
            "type": "string"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartInstanceViewModel"
            },
            "nullable": true
          },
          "completionPercentage": {
            "type": "number",
            "format": "double"
          },
          "totalParticipants": {
            "type": "integer",
            "format": "int32"
          },
          "completedParticipants": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CourseInstanceViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseInstanceViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseKnowledgeGapAnalysisViewModel": {
        "type": "object",
        "properties": {
          "globalSummary": {
            "type": "string",
            "nullable": true
          },
          "themes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseKnowledgeGapThemeViewModel"
            },
            "nullable": true
          },
          "moduleHighlights": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseKnowledgeGapModuleHighlightViewModel"
            },
            "nullable": true
          },
          "suggestedFocusAreas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeGapFocusAreaViewModel"
            },
            "nullable": true
          },
          "metadata": {
            "$ref": "#/components/schemas/KnowledgeGapAnalysisMetadataViewModel"
          }
        },
        "additionalProperties": false
      },
      "CourseKnowledgeGapModuleHighlightViewModel": {
        "type": "object",
        "properties": {
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "moduleName": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseKnowledgeGapThemeViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "number",
            "format": "double"
          },
          "moduleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "questionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseMediaGetResult": {
        "type": "object",
        "properties": {
          "mediaFileInformation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaFileInformation"
            },
            "nullable": true
          },
          "mediaLibraryPlaybackInformation": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MediaLibraryPlaybackInformation"
            },
            "nullable": true
          },
          "fileExtensions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseModule": {
        "required": [
          "estimatedHours"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "publishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean",
            "readOnly": true
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "coursePartModules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartModule"
            },
            "nullable": true
          },
          "courseModuleInstances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleInstance"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseModuleInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "coursePartInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "coursePartInstance": {
            "$ref": "#/components/schemas/CoursePartInstance"
          },
          "moduleProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleProgress"
            },
            "nullable": true
          },
          "courseModuleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseModule": {
            "$ref": "#/components/schemas/CourseModule"
          }
        },
        "additionalProperties": false
      },
      "CourseModuleInstanceViewModel": {
        "required": [
          "canStartNewAttempt",
          "id",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "moduleProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleProgressViewModel"
            },
            "nullable": true
          },
          "completionPercentage": {
            "type": "number",
            "format": "double"
          },
          "canStartNewAttempt": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CourseModuleParticipationOverviewModel": {
        "required": [
          "allowForceComplete",
          "courseTrainingProgress",
          "moduleAttemptId",
          "moduleInstanceId",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "moduleAttemptId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "allowForceComplete": {
            "type": "boolean"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "CourseModuleParticipationViewModel": {
        "required": [
          "allowForceComplete",
          "changedDate",
          "courseTrainingProgress",
          "createdDate",
          "isReadonly",
          "moduleInstanceId",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "isReadonly": {
            "type": "boolean"
          },
          "allowForceComplete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CourseModuleType": {
        "enum": [
          "undefined",
          "slideShow",
          "article",
          "knowledgeTest",
          "video"
        ],
        "type": "string"
      },
      "CourseModuleViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "estimatedHours",
          "id",
          "isPublished",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CourseModuleViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoursePart": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "course": {
            "$ref": "#/components/schemas/Course"
          },
          "coursePartInstances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartInstance"
            },
            "nullable": true
          },
          "coursePartModules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartModule"
            },
            "nullable": true
          },
          "calculatedEstimatedHours": {
            "type": "number",
            "format": "double",
            "readOnly": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CoursePartInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleInstance"
            },
            "nullable": true
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstance": {
            "$ref": "#/components/schemas/CourseInstance"
          },
          "coursePartId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "coursePart": {
            "$ref": "#/components/schemas/CoursePart"
          }
        },
        "additionalProperties": false
      },
      "CoursePartInstanceViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleInstanceViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoursePartModule": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "coursePartId": {
            "type": "string",
            "format": "uuid"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "coursePart": {
            "$ref": "#/components/schemas/CoursePart"
          },
          "module": {
            "$ref": "#/components/schemas/CourseModule"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CoursePartModuleViewModel": {
        "required": [
          "id",
          "moduleId",
          "name",
          "ordinal",
          "partId",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "moduleId": {
            "type": "string",
            "format": "uuid"
          },
          "partId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          }
        },
        "additionalProperties": false
      },
      "CoursePartModuleViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartModuleViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CoursePartParticipationViewModel": {
        "required": [
          "id",
          "modules",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseModuleParticipationOverviewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "CoursePartViewModel": {
        "required": [
          "id",
          "modules",
          "name",
          "ordinal"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "calculatedEstimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "modules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartModuleViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "CourseParticipant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstance": {
            "$ref": "#/components/schemas/CourseInstance"
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          },
          "courseProgress": {
            "$ref": "#/components/schemas/CourseProgress"
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CourseParticipantViewModel": {
        "required": [
          "courseTrainingProgress"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "user": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          },
          "courseInstance": {
            "$ref": "#/components/schemas/CourseInstanceViewModel"
          },
          "courseResult": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "CourseParticipantViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseParticipantViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseParticipationOverviewModel": {
        "required": [
          "courseInstanceName",
          "courseTrainingProgress",
          "id",
          "isActive"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstanceName": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "estimatedCourseHours": {
            "type": "number",
            "format": "double"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "CourseParticipationViewModel": {
        "required": [
          "courseInstanceId",
          "courseInstanceName",
          "courseParts",
          "courseProgressId",
          "courseTrainingProgress",
          "estimatedCourseHours",
          "isActive",
          "isReadonly",
          "participantName",
          "state"
        ],
        "type": "object",
        "properties": {
          "participantUserId": {
            "type": "string",
            "format": "uuid"
          },
          "participantName": {
            "minLength": 1,
            "type": "string"
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstanceName": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "estimatedCourseHours": {
            "type": "number",
            "format": "double"
          },
          "courseParts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartParticipationViewModel"
            }
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "hasCourseCertificateInformation": {
            "type": "boolean"
          },
          "isReadonly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CourseProgress": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseParticipantId": {
            "type": "string",
            "format": "uuid"
          },
          "courseParticipant": {
            "$ref": "#/components/schemas/CourseParticipant"
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstance": {
            "$ref": "#/components/schemas/CourseInstance"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "courseResult": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "estimatedCourseHours": {
            "type": "number",
            "format": "double"
          },
          "totalUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedUnits": {
            "type": "integer",
            "format": "int32"
          },
          "moduleProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleProgress"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseResult": {
        "enum": [
          "undefined",
          "notGraded",
          "passed",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "CourseState": {
        "enum": [
          "undefined",
          "draft",
          "upcoming",
          "active",
          "completed",
          "expired",
          "cancelled"
        ],
        "type": "string"
      },
      "CourseTrainingProgressViewModel": {
        "required": [
          "isComplete",
          "progressPercentage",
          "result",
          "state"
        ],
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "isComplete": {
            "type": "boolean"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CourseViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "id",
          "isPublished",
          "name",
          "parts"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "isPublished": {
            "type": "boolean"
          },
          "parts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CoursePartViewModel"
            }
          },
          "calculatedEstimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseCertificateInformation": {
            "$ref": "#/components/schemas/CourseCertificateInformationViewModel"
          }
        },
        "additionalProperties": false
      },
      "CourseViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CourseViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CpdReportChartsViewModel": {
        "required": [
          "hoursDistribution",
          "medianHours",
          "populationFulfillmentPercentage",
          "populationMedianHours",
          "progressCurve"
        ],
        "type": "object",
        "properties": {
          "medianHours": {
            "type": "number",
            "format": "double"
          },
          "populationFulfillmentPercentage": {
            "type": "number",
            "format": "double"
          },
          "populationMedianHours": {
            "type": "number",
            "format": "double"
          },
          "hoursDistribution": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpdReportHoursDistributionBucketViewModel"
            }
          },
          "progressCurve": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpdReportProgressCurvePointViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "CpdReportGroupSummaryViewModel": {
        "required": [
          "averageProgressPercentage",
          "fulfillmentPercentage",
          "groupId",
          "groupName",
          "totalHours",
          "userCount",
          "usersMeetingRequirements",
          "usersNotMeetingRequirements",
          "usersWithoutRequirements",
          "verifiableHours"
        ],
        "type": "object",
        "properties": {
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "groupName": {
            "minLength": 1,
            "type": "string"
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          },
          "usersMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "usersNotMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "usersWithoutRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "fulfillmentPercentage": {
            "type": "number",
            "format": "double"
          },
          "averageProgressPercentage": {
            "type": "number",
            "format": "double"
          },
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "verifiableHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CpdReportHoursDistributionBucketViewModel": {
        "required": [
          "label",
          "minHours",
          "userCount"
        ],
        "type": "object",
        "properties": {
          "label": {
            "minLength": 1,
            "type": "string"
          },
          "minHours": {
            "type": "number",
            "format": "double"
          },
          "maxHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "userCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CpdReportProgressCurvePointViewModel": {
        "required": [
          "actualProgressPercentage",
          "date",
          "expectedProgressPercentage",
          "label"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "label": {
            "minLength": 1,
            "type": "string"
          },
          "expectedProgressPercentage": {
            "type": "number",
            "format": "double"
          },
          "actualProgressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CpdReportRequirementSummaryViewModel": {
        "required": [
          "affectedUsers",
          "averageProgressPercentage",
          "requirementId",
          "requirementName",
          "totalHoursCompleted",
          "totalHoursRequired",
          "usersMeetingRequirements",
          "usersNotMeetingRequirements",
          "verifiableHoursCompleted",
          "verifiableHoursRequired"
        ],
        "type": "object",
        "properties": {
          "requirementId": {
            "type": "string",
            "format": "uuid"
          },
          "requirementName": {
            "minLength": 1,
            "type": "string"
          },
          "affectedUsers": {
            "type": "integer",
            "format": "int32"
          },
          "usersMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "usersNotMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "averageProgressPercentage": {
            "type": "number",
            "format": "double"
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "totalHoursCompleted": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursCompleted": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CpdReportSummaryViewModel": {
        "required": [
          "fulfillmentPercentage",
          "totalHours",
          "totalUsers",
          "usersMeetingRequirements",
          "usersNotMeetingRequirements",
          "usersWithoutRequirements",
          "verifiableHours"
        ],
        "type": "object",
        "properties": {
          "totalUsers": {
            "type": "integer",
            "format": "int32"
          },
          "usersMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "usersNotMeetingRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "usersWithoutRequirements": {
            "type": "integer",
            "format": "int32"
          },
          "fulfillmentPercentage": {
            "type": "number",
            "format": "double"
          },
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "verifiableHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CpdReportUserDetailViewModel": {
        "required": [
          "groups",
          "nonVerifiableHours",
          "progressPercentage",
          "requirementStatus",
          "titles",
          "totalHours",
          "trainingRequirements",
          "userEmail",
          "userId",
          "userName",
          "verifiableHours"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "userName": {
            "minLength": 1,
            "type": "string"
          },
          "userEmail": {
            "minLength": 1,
            "type": "string"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "verifiableHours": {
            "type": "number",
            "format": "double"
          },
          "nonVerifiableHours": {
            "type": "number",
            "format": "double"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "requirementStatus": {
            "$ref": "#/components/schemas/TrainingRequirementStatus"
          },
          "lastRecordDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "trainingRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrainingRequirementProgressItemViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "CpdReportUserDetailViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpdReportUserDetailViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CpdReportViewModel": {
        "required": [
          "charts",
          "groups",
          "requirements",
          "summary",
          "users"
        ],
        "type": "object",
        "properties": {
          "periodStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "periodEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "searchTerm": {
            "type": "string",
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/CpdReportSummaryViewModel"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpdReportGroupSummaryViewModel"
            }
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CpdReportRequirementSummaryViewModel"
            }
          },
          "charts": {
            "$ref": "#/components/schemas/CpdReportChartsViewModel"
          },
          "users": {
            "$ref": "#/components/schemas/CpdReportUserDetailViewModelPagingDto"
          }
        },
        "additionalProperties": false
      },
      "CreateCourseInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "instructions": {
            "type": "string",
            "nullable": true
          },
          "allowManualRecordRegistration": {
            "type": "boolean"
          },
          "allowEditOnManualRegistration": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CreateCourseInstanceInputModel": {
        "required": [
          "courseId",
          "name"
        ],
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateCourseModuleInputModel": {
        "required": [
          "estimatedHours",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "CreateDirectoryInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "reference": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateGradeResponseViewModel": {
        "type": "object",
        "properties": {
          "grade": {
            "$ref": "#/components/schemas/GradeViewModel"
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CreateSelfServiceTicketInputModel": {
        "type": "object",
        "properties": {
          "enterpriseConnectionId": {
            "type": "string",
            "nullable": true
          },
          "ticketType": {
            "$ref": "#/components/schemas/EnterpriseConnectionSelfServiceTicketType"
          },
          "enterpriseConnectionName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomAttributeData": {
        "type": "object",
        "properties": {
          "attributeType": {
            "$ref": "#/components/schemas/Type"
          },
          "constructor": {
            "$ref": "#/components/schemas/ConstructorInfo"
          },
          "constructorArguments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeTypedArgument"
            },
            "nullable": true,
            "readOnly": true
          },
          "namedArguments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeNamedArgument"
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CustomAttributeNamedArgument": {
        "type": "object",
        "properties": {
          "memberInfo": {
            "$ref": "#/components/schemas/MemberInfo"
          },
          "typedValue": {
            "$ref": "#/components/schemas/CustomAttributeTypedArgument"
          },
          "memberName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isField": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "CustomAttributeTypedArgument": {
        "type": "object",
        "properties": {
          "argumentType": {
            "$ref": "#/components/schemas/Type"
          },
          "value": { }
        },
        "additionalProperties": false
      },
      "CustomGroupRoleViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "grantsGroupResponsibility": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Customer": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "customerNumber": {
            "type": "string",
            "nullable": true
          },
          "identityProviderId": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          },
          "settings": {
            "$ref": "#/components/schemas/CustomerSettings"
          },
          "securityPolicy": {
            "$ref": "#/components/schemas/CustomerSecurityPolicy"
          },
          "featureFlags": {
            "$ref": "#/components/schemas/CustomerFeatureFlags"
          },
          "environmentType": {
            "$ref": "#/components/schemas/CustomerEnvironmentType"
          },
          "branding": {
            "$ref": "#/components/schemas/CustomerBranding"
          },
          "enterpriseConnectionAssignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEnterpriseConnectionAssignment"
            },
            "nullable": true
          },
          "billingInformation": {
            "$ref": "#/components/schemas/CustomerBillingInformation"
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingInformation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "format": "uuid"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "fortnoxCustomerNumber": {
            "type": "string",
            "nullable": true
          },
          "customerCountry": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "invoiceIntervalMonths": {
            "type": "integer",
            "format": "int32"
          },
          "invoiceStartDate": {
            "type": "string",
            "format": "date"
          },
          "nextInvoiceDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "latestInvoiceDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "amountInvoicesGenerated": {
            "type": "integer",
            "format": "int32"
          },
          "pauseInvoiceGeneration": {
            "type": "boolean"
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItem"
            },
            "nullable": true
          },
          "billingTemplateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "billingTemplate": {
            "$ref": "#/components/schemas/CustomerBillingTemplate"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "appendInvoiceIntervalToInvoiceNote": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingInformationViewModel": {
        "type": "object",
        "properties": {
          "customerName": {
            "type": "string",
            "nullable": true
          },
          "fortnoxCustomerNumber": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "customerCountry": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItemViewModel"
            },
            "nullable": true
          },
          "invoiceStartDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "invoiceIntervalMonths": {
            "type": "integer",
            "format": "int32"
          },
          "amountInvoicesGenerated": {
            "type": "integer",
            "format": "int32"
          },
          "shouldIncludeOnboarding": {
            "type": "boolean"
          },
          "onboardingPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "pauseInvoiceGeneration": {
            "type": "boolean"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "hasBilling": {
            "type": "boolean"
          },
          "appendInvoiceIntervalToInvoiceNote": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customerBillingInformationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "billingInformation": {
            "$ref": "#/components/schemas/CustomerBillingInformation"
          },
          "lineType": {
            "$ref": "#/components/schemas/BillingLineType"
          },
          "standardCode": {
            "$ref": "#/components/schemas/StandardBillingCode"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "basePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "active": {
            "type": "boolean"
          },
          "totalInvoicedAmount": {
            "type": "integer",
            "format": "int32"
          },
          "billingUnit": {
            "$ref": "#/components/schemas/BillingUnit"
          },
          "billingTemplateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "billingTemplate": {
            "$ref": "#/components/schemas/CustomerBillingTemplate"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingItemInputModel": {
        "required": [
          "name",
          "price"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lineType": {
            "$ref": "#/components/schemas/BillingLineType"
          },
          "standardCode": {
            "$ref": "#/components/schemas/StandardBillingCode"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "basePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "billingUnit": {
            "$ref": "#/components/schemas/BillingUnit"
          },
          "active": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lineType": {
            "$ref": "#/components/schemas/BillingLineType"
          },
          "standardCode": {
            "$ref": "#/components/schemas/StandardBillingCode"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "basePrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "quantity": {
            "type": "number",
            "format": "double"
          },
          "billingUnit": {
            "$ref": "#/components/schemas/BillingUnit"
          },
          "active": {
            "type": "boolean"
          },
          "totalInvoicedAmount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "CustomerBillingTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "customers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingInformation"
            },
            "nullable": true
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItem"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "CustomerBranding": {
        "type": "object",
        "properties": {
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "nullable": true
          },
          "subdomain": {
            "type": "string",
            "nullable": true
          },
          "serviceName": {
            "type": "string",
            "nullable": true
          },
          "hideWatermark": {
            "type": "boolean"
          },
          "faviconUrl": {
            "type": "string",
            "nullable": true
          },
          "emailLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerBrandingInputModel": {
        "type": "object",
        "properties": {
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "primaryColor": {
            "type": "string",
            "nullable": true
          },
          "subdomain": {
            "type": "string",
            "nullable": true
          },
          "serviceName": {
            "type": "string",
            "nullable": true
          },
          "hideWatermark": {
            "type": "boolean"
          },
          "faviconUrl": {
            "type": "string",
            "nullable": true
          },
          "emailLogoUrl": {
            "type": "string",
            "nullable": true
          },
          "fromName": {
            "type": "string",
            "nullable": true
          },
          "fromEmail": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerBrandingViewModel": {
        "required": [
          "emailLogoUrl",
          "faviconUrl",
          "fromEmail",
          "fromName",
          "hideWatermark",
          "logoUrl",
          "primaryColor",
          "serviceName",
          "subdomain"
        ],
        "type": "object",
        "properties": {
          "logoUrl": {
            "type": "string"
          },
          "primaryColor": {
            "type": "string"
          },
          "subdomain": {
            "type": "string"
          },
          "serviceName": {
            "type": "string"
          },
          "hideWatermark": {
            "type": "boolean"
          },
          "faviconUrl": {
            "type": "string"
          },
          "emailLogoUrl": {
            "type": "string"
          },
          "fromName": {
            "type": "string"
          },
          "fromEmail": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CustomerEnterpriseConnectionAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "customerId": {
            "type": "string",
            "format": "uuid"
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "externalConnectionId": {
            "maxLength": 450,
            "type": "string",
            "nullable": true
          },
          "externalConnectionName": {
            "maxLength": 450,
            "type": "string",
            "nullable": true
          },
          "syncUsersFromConnection": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerEnterpriseConnectionAssignmentViewModel": {
        "type": "object",
        "properties": {
          "externalConnectionId": {
            "type": "string",
            "nullable": true
          },
          "syncUsersFromConnection": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerEnterpriseConnectionMatchViewModel": {
        "type": "object",
        "properties": {
          "externalConnectionId": {
            "type": "string",
            "nullable": true
          },
          "externalConnectionName": {
            "type": "string",
            "nullable": true
          },
          "syncUsersFromConnection": {
            "type": "boolean"
          },
          "hasIdentityOnConnection": {
            "type": "boolean"
          },
          "matchedIdentityUserId": {
            "type": "string",
            "nullable": true
          },
          "matchedProvider": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerEnvironmentType": {
        "enum": [
          "undefined",
          "test",
          "production"
        ],
        "type": "string"
      },
      "CustomerFeatureFlag": {
        "enum": [
          "trainingModuleEnabled",
          "trainingRecordRegistrationEnabled",
          "qualityRiskAssessmentEnabled",
          "qualityManagementReviewEnabled"
        ],
        "type": "string"
      },
      "CustomerFeatureFlags": {
        "type": "object",
        "properties": {
          "trainingModuleEnabled": {
            "type": "boolean"
          },
          "trainingRecordRegistrationEnabled": {
            "type": "boolean"
          },
          "qualityRiskAssessmentEnabled": {
            "type": "boolean"
          },
          "qualityManagementReviewEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerFeatureFlagsInputModel": {
        "type": "object",
        "properties": {
          "trainingModuleEnabled": {
            "type": "boolean"
          },
          "trainingRecordRegistrationEnabled": {
            "type": "boolean"
          },
          "qualityRiskAssessmentEnabled": {
            "type": "boolean"
          },
          "qualityManagementReviewEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerFeatureFlagsViewModel": {
        "type": "object",
        "properties": {
          "trainingModuleEnabled": {
            "type": "boolean"
          },
          "trainingRecordRegistrationEnabled": {
            "type": "boolean"
          },
          "qualityRiskAssessmentEnabled": {
            "type": "boolean"
          },
          "qualityManagementReviewEnabled": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "customerNumber": {
            "type": "string",
            "nullable": true
          },
          "environmentType": {
            "$ref": "#/components/schemas/CustomerEnvironmentType"
          },
          "featureFlags": {
            "$ref": "#/components/schemas/CustomerFeatureFlagsInputModel"
          }
        },
        "additionalProperties": false
      },
      "CustomerMarket": {
        "enum": [
          "undefined",
          "sweden",
          "norway",
          "unitedKingdom",
          "denmark"
        ],
        "type": "string"
      },
      "CustomerSecurityPolicy": {
        "type": "object",
        "properties": {
          "allowPasswordlessLogin": {
            "type": "boolean"
          },
          "allowPasswordLogin": {
            "type": "boolean"
          },
          "requireMFAForPasswordLogin": {
            "type": "boolean"
          },
          "allowEnterpriseSso": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerSecurityPolicyInputModel": {
        "required": [
          "allowEnterpriseSso",
          "allowPasswordlessLogin",
          "allowPasswordLogin",
          "requireMFAForPasswordLogin"
        ],
        "type": "object",
        "properties": {
          "allowPasswordlessLogin": {
            "type": "boolean"
          },
          "allowPasswordLogin": {
            "type": "boolean"
          },
          "requireMFAForPasswordLogin": {
            "type": "boolean"
          },
          "allowEnterpriseSso": {
            "type": "boolean"
          },
          "enterpriseConnectionIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerSecurityPolicyViewModel": {
        "required": [
          "allowEnterpriseSso",
          "allowPasswordlessLogin",
          "allowPasswordLogin",
          "requireMFAForPasswordLogin"
        ],
        "type": "object",
        "properties": {
          "allowPasswordlessLogin": {
            "type": "boolean"
          },
          "allowPasswordLogin": {
            "type": "boolean"
          },
          "requireMFAForPasswordLogin": {
            "type": "boolean"
          },
          "allowEnterpriseSso": {
            "type": "boolean"
          },
          "enterpriseConnectionIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "enterpriseConnectionAssignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEnterpriseConnectionAssignmentViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerSettings": {
        "type": "object",
        "properties": {
          "filterOrganisation": {
            "type": "boolean"
          },
          "mailIntroduction": {
            "type": "string",
            "nullable": true
          },
          "useReferenceId": {
            "type": "boolean"
          },
          "allowGroupResponsibleQualityActivityInit": {
            "type": "boolean"
          },
          "automaticallyCreateQualityYear": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "CustomerViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "customerNumber": {
            "type": "string",
            "nullable": true
          },
          "identityProviderId": {
            "type": "string",
            "nullable": true
          },
          "logoUrl": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "environmentType": {
            "$ref": "#/components/schemas/CustomerEnvironmentType"
          },
          "billingStatus": {
            "$ref": "#/components/schemas/BillingStatus"
          },
          "featureFlags": {
            "$ref": "#/components/schemas/CustomerFeatureFlagsViewModel"
          },
          "allowsPasswordLogin": {
            "type": "boolean"
          },
          "allowsPasswordlessLogin": {
            "type": "boolean"
          },
          "allowsEnterpriseSso": {
            "type": "boolean"
          },
          "requiresMfaForPasswordLogin": {
            "type": "boolean"
          },
          "enterpriseConnectionNames": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CustomerViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DataCollectionInstanceInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "collectableId": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollectionUnitId": {
            "type": "string",
            "format": "uuid"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "DateTimeNullableValueWithConfidenceViewModel": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DbEntityInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DecimalNullableValueWithConfidenceViewModel": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "DeleteFileInputModel": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "reference": {
            "type": "string",
            "nullable": true
          },
          "isContainer": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ElementTaskType": {
        "enum": [
          "undefined",
          "form",
          "fileUpload",
          "grade",
          "documentVerification"
        ],
        "type": "string"
      },
      "ElementTimeFrameInputModel": {
        "type": "object",
        "properties": {
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrameInputModel"
          }
        },
        "additionalProperties": false
      },
      "EmailSubjectImportResultViewModel": {
        "type": "object",
        "properties": {
          "subjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmailSubjectViewModel"
            },
            "nullable": true
          },
          "invalidEmails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "missingEmails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "duplicateEmails": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "totalRows": {
            "type": "integer",
            "format": "int32"
          },
          "resolvedCount": {
            "type": "integer",
            "format": "int32"
          },
          "isValid": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "EmailSubjectViewModel": {
        "required": [
          "id",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionBelayUserViewModel": {
        "type": "object",
        "properties": {
          "belayUserId": {
            "type": "string",
            "format": "uuid"
          },
          "belayUserName": {
            "type": "string",
            "nullable": true
          },
          "belayUserEmail": {
            "type": "string",
            "nullable": true
          },
          "belayCustomerId": {
            "type": "string",
            "format": "uuid"
          },
          "belayCustomerName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isEnterpriseManaged": {
            "type": "boolean"
          },
          "identityProviderId": {
            "type": "string",
            "nullable": true
          },
          "hasSsoOnConnection": {
            "type": "boolean"
          },
          "matchedIdentityProviderUserId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionBelayUserViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnterpriseConnectionBelayUserViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionDetailSummaryViewModel": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "nullable": true
          },
          "connectionName": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "scimEnabled": {
            "type": "boolean"
          },
          "linkedCustomers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnterpriseConnectionLinkedCustomerViewModel"
            },
            "nullable": true
          },
          "idpUserCount": {
            "type": "integer",
            "format": "int32"
          },
          "matchedCount": {
            "type": "integer",
            "format": "int32"
          },
          "missingBelayCount": {
            "type": "integer",
            "format": "int32"
          },
          "belayMissingSsoCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionIdpUserViewModel": {
        "type": "object",
        "properties": {
          "identityProviderUserId": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "givenName": {
            "type": "string",
            "nullable": true
          },
          "familyName": {
            "type": "string",
            "nullable": true
          },
          "blocked": {
            "type": "boolean",
            "nullable": true
          },
          "hasBelayUser": {
            "type": "boolean"
          },
          "belayUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "belayUserName": {
            "type": "string",
            "nullable": true
          },
          "belayUserEmail": {
            "type": "string",
            "nullable": true
          },
          "belayCustomerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "belayCustomerName": {
            "type": "string",
            "nullable": true
          },
          "connectionIdentityRawJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionIdpUserViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EnterpriseConnectionIdpUserViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionLinkedCustomerViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionScimConfigurationViewModel": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          },
          "endpointUrl": {
            "type": "string",
            "nullable": true
          },
          "userIdAttribute": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionScimTokenViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "token": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EnterpriseConnectionSelfServiceTicketType": {
        "enum": [
          "sso",
          "scim"
        ],
        "type": "string"
      },
      "EnterpriseConnectionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "displayName": {
            "type": "string",
            "nullable": true
          },
          "strategy": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "scimEnabled": {
            "type": "boolean"
          },
          "linkedCustomerIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EntityInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "EventAttributes": {
        "enum": [
          "none",
          "specialName",
          "rTSpecialName"
        ],
        "type": "string"
      },
      "EventInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "attributes": {
            "$ref": "#/components/schemas/EventAttributes"
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "addMethod": {
            "$ref": "#/components/schemas/MethodInfo"
          },
          "removeMethod": {
            "$ref": "#/components/schemas/MethodInfo"
          },
          "raiseMethod": {
            "$ref": "#/components/schemas/MethodInfo"
          },
          "isMulticast": {
            "type": "boolean",
            "readOnly": true
          },
          "eventHandlerType": {
            "$ref": "#/components/schemas/Type"
          }
        },
        "additionalProperties": false
      },
      "EventStatus": {
        "enum": [
          "success",
          "error"
        ],
        "type": "string"
      },
      "ExcelImportResult": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "entityCount": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExcelValidationResult": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationMessage"
            },
            "nullable": true,
            "readOnly": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ValidationMessage"
            },
            "nullable": true
          },
          "isValid": {
            "type": "boolean",
            "readOnly": true
          },
          "token": {
            "type": "string",
            "format": "uuid"
          },
          "entityCount": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ExportEntityInputModel": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "all": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Expression": {
        "type": "object",
        "properties": {
          "nodeType": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "type": {
            "$ref": "#/components/schemas/Type"
          },
          "canReduce": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ExpressionType": {
        "enum": [
          "add",
          "addChecked",
          "and",
          "andAlso",
          "arrayLength",
          "arrayIndex",
          "call",
          "coalesce",
          "conditional",
          "constant",
          "convert",
          "convertChecked",
          "divide",
          "equal",
          "exclusiveOr",
          "greaterThan",
          "greaterThanOrEqual",
          "invoke",
          "lambda",
          "leftShift",
          "lessThan",
          "lessThanOrEqual",
          "listInit",
          "memberAccess",
          "memberInit",
          "modulo",
          "multiply",
          "multiplyChecked",
          "negate",
          "unaryPlus",
          "negateChecked",
          "new",
          "newArrayInit",
          "newArrayBounds",
          "not",
          "notEqual",
          "or",
          "orElse",
          "parameter",
          "power",
          "quote",
          "rightShift",
          "subtract",
          "subtractChecked",
          "typeAs",
          "typeIs",
          "assign",
          "block",
          "debugInfo",
          "decrement",
          "dynamic",
          "default",
          "extension",
          "goto",
          "increment",
          "index",
          "label",
          "runtimeVariables",
          "loop",
          "switch",
          "throw",
          "try",
          "unbox",
          "addAssign",
          "andAssign",
          "divideAssign",
          "exclusiveOrAssign",
          "leftShiftAssign",
          "moduloAssign",
          "multiplyAssign",
          "orAssign",
          "powerAssign",
          "rightShiftAssign",
          "subtractAssign",
          "addAssignChecked",
          "multiplyAssignChecked",
          "subtractAssignChecked",
          "preIncrementAssign",
          "preDecrementAssign",
          "postIncrementAssign",
          "postDecrementAssign",
          "typeEqual",
          "onesComplement",
          "isTrue",
          "isFalse"
        ],
        "type": "string"
      },
      "ExtendCollectionUnitInputModel": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ExtendQAInputModel": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "elementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FieldAttributes": {
        "enum": [
          "privateScope",
          "private",
          "famANDAssem",
          "assembly",
          "family",
          "famORAssem",
          "public",
          "fieldAccessMask",
          "static",
          "initOnly",
          "literal",
          "notSerialized",
          "hasFieldRVA",
          "specialName",
          "rTSpecialName",
          "hasFieldMarshal",
          "pinvokeImpl",
          "hasDefault",
          "reservedMask"
        ],
        "type": "string"
      },
      "FieldInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "attributes": {
            "$ref": "#/components/schemas/FieldAttributes"
          },
          "fieldType": {
            "$ref": "#/components/schemas/Type"
          },
          "isInitOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "isLiteral": {
            "type": "boolean",
            "readOnly": true
          },
          "isNotSerialized": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          },
          "isPinvokeImpl": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isStatic": {
            "type": "boolean",
            "readOnly": true
          },
          "isAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyAndAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyOrAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          },
          "fieldHandle": {
            "$ref": "#/components/schemas/RuntimeFieldHandle"
          }
        },
        "additionalProperties": false
      },
      "ForceModuleCompletionResultViewModel": {
        "required": [
          "alreadyCompletedModules",
          "completedModules",
          "completedUnitsDelta",
          "courseCompleted",
          "isCourseComplete",
          "progressChanged",
          "progressPercentage",
          "result",
          "skippedKnowledgeTestModules",
          "state"
        ],
        "type": "object",
        "properties": {
          "progressChanged": {
            "type": "boolean"
          },
          "courseCompleted": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "completedUnitsDelta": {
            "type": "integer",
            "format": "int32"
          },
          "completedModules": {
            "type": "integer",
            "format": "int32"
          },
          "alreadyCompletedModules": {
            "type": "integer",
            "format": "int32"
          },
          "skippedKnowledgeTestModules": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "FormDocumentInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionGroupInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FormDocumentWorkable": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isTask": {
            "type": "boolean",
            "readOnly": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "isActive": {
            "type": "boolean"
          },
          "questionGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionGroup"
            },
            "nullable": true
          },
          "workableTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Question"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasUnHandledMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "hasMeasureEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "hasQualityActivityVerification": {
            "type": "boolean",
            "readOnly": true
          },
          "unHandledMeasures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "activeMeasures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "measuresWithEdit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "measures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasUnHandledImprovements": {
            "type": "boolean",
            "readOnly": true
          },
          "hasImprovementEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "unHandledImprovements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "activeImprovements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "improvementsWithEdit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "improvements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            },
            "nullable": true,
            "readOnly": true
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approveOperationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "disapproveOperationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lastAppliedOutboxStateVersion": {
            "type": "integer",
            "format": "int64"
          },
          "isComplete": {
            "type": "boolean",
            "readOnly": true
          },
          "isApproved": {
            "type": "boolean",
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectActivityTask": {
            "$ref": "#/components/schemas/SubjectActivityTask"
          },
          "idString": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FormDocumentWorkableInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionGroupInputModel"
            },
            "nullable": true
          },
          "workableTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FormSelectorViewModel": {
        "type": "object",
        "properties": {
          "formIdentifier": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "formDocumentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GenericParameterAttributes": {
        "enum": [
          "none",
          "covariant",
          "contravariant",
          "varianceMask",
          "referenceTypeConstraint",
          "notNullableValueTypeConstraint",
          "defaultConstructorConstraint",
          "specialConstraintMask",
          "allowByRefLike"
        ],
        "type": "string"
      },
      "GetReportTemplatesModel": {
        "type": "object",
        "properties": {
          "qualityActivityIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GovernedAction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subjectInteractionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "performed": {
            "$ref": "#/components/schemas/ActionPerformed"
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            },
            "nullable": true
          },
          "subjectInteracted": {
            "type": "boolean",
            "readOnly": true
          },
          "approved": {
            "type": "boolean",
            "readOnly": true
          },
          "state": {
            "$ref": "#/components/schemas/ActionState"
          },
          "actionPlanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "actionPlan": {
            "$ref": "#/components/schemas/ActionPlan"
          },
          "reviewer": {
            "$ref": "#/components/schemas/User"
          },
          "reviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "approvedBy": {
            "$ref": "#/components/schemas/User"
          },
          "approvedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "formWorkableId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GradeCollectionViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "qualityActivityTaskId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GradeInputModel": {
        "required": [
          "graderId",
          "qualityYearId",
          "setDate",
          "subjectId",
          "value"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "gradeCollectionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "gradeCollectionName": {
            "type": "string",
            "nullable": true
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "$ref": "#/components/schemas/GradeValue"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "graderId": {
            "type": "string",
            "format": "uuid"
          },
          "setDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GradeQATemplateViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "GradeValue": {
        "enum": [
          "undefined",
          "passed",
          "passedNeedsImprovement",
          "failed"
        ],
        "type": "string"
      },
      "GradeViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "value": {
            "$ref": "#/components/schemas/GradeValue"
          },
          "subject": {
            "$ref": "#/components/schemas/SubjectViewModel"
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          },
          "grader": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "graderId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "setDate": {
            "type": "string",
            "format": "date-time"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "gradeCollection": {
            "$ref": "#/components/schemas/GradeCollectionViewModel"
          },
          "subjectGroup": {
            "type": "string",
            "nullable": true
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYearViewModel"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectContext": {
            "$ref": "#/components/schemas/SubjectContextViewModel"
          },
          "subjectActivityTaskIsNull": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GradeViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GradeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GradeWorkableInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "grade": {
            "$ref": "#/components/schemas/GradeValue"
          },
          "comment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Group": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            },
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true
          },
          "indirectResponsible": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          },
          "parentId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "parent": {
            "$ref": "#/components/schemas/Group"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/User"
          },
          "reviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reviewer": {
            "$ref": "#/components/schemas/User"
          },
          "secondaryReviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "secondaryReviewer": {
            "$ref": "#/components/schemas/User"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupMembership"
            },
            "nullable": true
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollectionInstance"
            },
            "nullable": true
          },
          "groupDataCollections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollection"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityManagementMemberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            },
            "nullable": true
          },
          "memberCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "readOnly": true
          },
          "latestRegisterUpdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "allResponsible": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true,
            "readOnly": true
          },
          "qualityActivitySubjections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupSubject"
            },
            "nullable": true
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "consumerAuthorizationClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "requiredIncludes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupObjectFuncExpression"
            },
            "nullable": true,
            "readOnly": true
          },
          "needsSync": {
            "type": "boolean"
          },
          "customResponsibilityHolderIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "subjectType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "groupDataCollectionUnits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollectionUnit"
            },
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "groupsIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "groupDataCollectionUnits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollectionUnitInputModel"
            },
            "nullable": true
          },
          "completed": {
            "type": "string",
            "format": "date-time"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectable": {
            "$ref": "#/components/schemas/Group"
          },
          "collectableId": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollectionUnit": {
            "$ref": "#/components/schemas/GroupDataCollectionUnit"
          },
          "groupDataCollectionUnitId": {
            "type": "string",
            "format": "uuid"
          },
          "responsible": {
            "$ref": "#/components/schemas/User"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "removedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "addedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionInstanceViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "collectableId": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollectionUnit": {
            "$ref": "#/components/schemas/GroupDataCollectionUnitViewModel"
          },
          "groupDataCollectionUnitId": {
            "type": "string",
            "format": "uuid"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "responsible": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collected": {
            "type": "boolean"
          },
          "removedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "addedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inactivated": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "collectable": {
            "$ref": "#/components/schemas/GroupViewModel"
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionUnit": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collection": {
            "$ref": "#/components/schemas/GroupDataCollection"
          },
          "collectionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "groupDataCollection": {
            "$ref": "#/components/schemas/GroupDataCollectionInstance"
          },
          "userDataCollections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDataCollectionInstance"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reminders": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CollectionReminder"
            },
            "nullable": true
          },
          "lastReminderDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mailSent": {
            "type": "boolean",
            "readOnly": true
          },
          "userCollectableIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "collectedCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "removedCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "remainingCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "addedCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "updatedCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "awaitingReminderMail": {
            "type": "boolean",
            "readOnly": true
          },
          "remindersSent": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionUnitInputModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollection": {
            "$ref": "#/components/schemas/GroupDataCollectionInstance"
          },
          "userDataCollections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDataCollectionInstance"
            },
            "nullable": true
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "GroupDataCollectionUnitViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollection": {
            "$ref": "#/components/schemas/GroupDataCollectionInstanceViewModel"
          },
          "userDataCollections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDataCollectionInstanceViewModel"
            },
            "nullable": true
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "collectedCount": {
            "type": "integer",
            "format": "int32"
          },
          "removedCount": {
            "type": "integer",
            "format": "int32"
          },
          "remainingCount": {
            "type": "integer",
            "format": "int32"
          },
          "addedCount": {
            "type": "integer",
            "format": "int32"
          },
          "updatedCount": {
            "type": "integer",
            "format": "int32"
          },
          "start": {
            "type": "string",
            "format": "date-time"
          },
          "end": {
            "type": "string",
            "format": "date-time"
          },
          "mailSent": {
            "type": "boolean"
          },
          "isApproved": {
            "type": "boolean",
            "readOnly": true
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroupFilterViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "isDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GroupImplementorMapViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "implementor": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "context": {
            "$ref": "#/components/schemas/SubjectContextViewModel"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "subject": {
            "$ref": "#/components/schemas/GroupViewModel"
          }
        },
        "additionalProperties": false
      },
      "GroupInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupInputModel"
            },
            "nullable": true
          },
          "parent": {
            "$ref": "#/components/schemas/GroupInputModel"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "reviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "secondaryReviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserInputModel"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagInputModel"
            },
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "participantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroupMembership": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "isReadOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GroupObjectFuncExpression": {
        "type": "object",
        "properties": {
          "canReduce": {
            "type": "boolean",
            "readOnly": true
          },
          "type": {
            "$ref": "#/components/schemas/Type"
          },
          "nodeType": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "parameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParameterExpression"
            },
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "body": {
            "$ref": "#/components/schemas/Expression"
          },
          "returnType": {
            "$ref": "#/components/schemas/Type"
          },
          "tailCall": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "GroupRoleAssignmentInputModel": {
        "required": [
          "userId"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GroupRoleAssignmentViewModel": {
        "required": [
          "groupId",
          "groupName",
          "groupRoleDefinitionId",
          "groupRoleName",
          "id",
          "userId",
          "userName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupRoleDefinitionId": {
            "type": "string",
            "format": "uuid"
          },
          "groupRoleName": {
            "minLength": 1,
            "type": "string"
          },
          "grantsGroupResponsibility": {
            "type": "boolean"
          },
          "groupId": {
            "type": "string",
            "format": "uuid"
          },
          "groupName": {
            "minLength": 1,
            "type": "string"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "userName": {
            "minLength": 1,
            "type": "string"
          },
          "userEmail": {
            "type": "string",
            "nullable": true
          },
          "userIsAdministrator": {
            "type": "boolean"
          },
          "userIsActive": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "GroupRoleAssignmentViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupRoleAssignmentViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GroupRoleDefinitionInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "grantsGroupResponsibility": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GroupRoleDefinitionViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "grantsGroupResponsibility": {
            "type": "boolean"
          },
          "assignmentCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "GroupSelectorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isReadOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GroupSubject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subject": {
            "$ref": "#/components/schemas/Group"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "GroupSubjectWithContextInputModel": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "$ref": "#/components/schemas/SubjectContextInputModel"
          }
        },
        "additionalProperties": false
      },
      "GroupViewModel": {
        "required": [
          "id",
          "label",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "label": {
            "minLength": 1,
            "type": "string"
          },
          "parent": {
            "$ref": "#/components/schemas/GroupViewModel"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "indirectResponsible": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserViewModel"
            },
            "nullable": true
          },
          "reviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reviewer": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "secondaryReviewerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "secondaryReviewer": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserViewModel"
            },
            "nullable": true
          },
          "memberCount": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagViewModel"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "isResponsible": {
            "type": "boolean"
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupViewModel"
            },
            "nullable": true
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollectionInstanceViewModel"
            },
            "nullable": true
          },
          "latestRegisterUpdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isReadOnly": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "GroupViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ICustomAttributeProvider": {
        "type": "object",
        "additionalProperties": false
      },
      "IHierarchicalAuthorizedResource": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "consumerAuthorizationClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "needsSync": {
            "type": "boolean"
          },
          "currentUserPermission": {
            "$ref": "#/components/schemas/ResourceAuthorizationType"
          },
          "childResources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IHierarchicalAuthorizedResource"
            },
            "nullable": true,
            "readOnly": true
          },
          "removedClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ISubject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "subjectType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderProjectionReconciliationResult": {
        "type": "object",
        "properties": {
          "customerSyncsQueued": {
            "type": "integer",
            "format": "int32"
          },
          "principalSyncsQueued": {
            "type": "integer",
            "format": "int32"
          },
          "organizationsDeletedQueued": {
            "type": "integer",
            "format": "int32"
          },
          "membershipRemovalsQueued": {
            "type": "integer",
            "format": "int32"
          },
          "membershipEnsuresQueued": {
            "type": "integer",
            "format": "int32"
          },
          "totalQueued": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderUserIdentityViewModel": {
        "type": "object",
        "properties": {
          "connection": {
            "type": "string",
            "nullable": true
          },
          "provider": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "nullable": true
          },
          "isSocial": {
            "type": "boolean"
          },
          "isEnterpriseSso": {
            "type": "boolean"
          },
          "isDatabase": {
            "type": "boolean"
          },
          "isPasswordless": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "IdentityProviderUserProfileViewModel": {
        "type": "object",
        "properties": {
          "hasIdentityProviderUser": {
            "type": "boolean"
          },
          "identityProviderUserId": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "hasEmail": {
            "type": "boolean"
          },
          "hasDatabaseConnection": {
            "type": "boolean"
          },
          "hasPasswordlessConnection": {
            "type": "boolean"
          },
          "hasEnterpriseSsoConnection": {
            "type": "boolean"
          },
          "customerId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customerAllowsPasswordLogin": {
            "type": "boolean"
          },
          "customerAllowsPasswordlessLogin": {
            "type": "boolean"
          },
          "customerAllowsEnterpriseSso": {
            "type": "boolean"
          },
          "isEnterpriseManagedInBelay": {
            "type": "boolean"
          },
          "hasCustomerEnterpriseSsoIdentity": {
            "type": "boolean"
          },
          "lastSyncedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastSyncStatus": {
            "type": "string",
            "nullable": true
          },
          "customerEnterpriseConnections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerEnterpriseConnectionMatchViewModel"
            },
            "nullable": true
          },
          "identities": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IdentityProviderUserIdentityViewModel"
            },
            "nullable": true
          },
          "rawJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImplementorMap": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "activityElement": {
            "$ref": "#/components/schemas/ActivityElement"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "implementor": {
            "$ref": "#/components/schemas/User"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectContextId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectContext": {
            "$ref": "#/components/schemas/SubjectContext"
          },
          "isSelfAssessment": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ImplementorMapInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "context": {
            "$ref": "#/components/schemas/SubjectContextInputModel"
          }
        },
        "additionalProperties": false
      },
      "ImplementorRole": {
        "enum": [
          "undefined",
          "user",
          "responsible",
          "reviewer",
          "secondaryReviewer"
        ],
        "type": "string"
      },
      "Improvement": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "measureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementAlternative"
            },
            "nullable": true
          },
          "selectedMeasureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementAlternative"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasSelected": {
            "type": "boolean",
            "readOnly": true
          },
          "comment": {
            "$ref": "#/components/schemas/Comment"
          },
          "actionCreatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionSyncedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionCreated": {
            "type": "boolean",
            "readOnly": true
          },
          "needsActionSync": {
            "type": "boolean",
            "readOnly": true
          },
          "isComplete": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ImprovementAction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subjectInteractionDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "performed": {
            "$ref": "#/components/schemas/ActionPerformed"
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            },
            "nullable": true
          },
          "subjectInteracted": {
            "type": "boolean",
            "readOnly": true
          },
          "approved": {
            "type": "boolean",
            "readOnly": true
          },
          "state": {
            "$ref": "#/components/schemas/ActionState"
          },
          "improvementPlanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "improvementPlan": {
            "$ref": "#/components/schemas/ImprovementPlan"
          },
          "formWorkableId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "questionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImprovementAlternative": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "string",
            "nullable": true
          },
          "selected": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ImprovementAlternativeInputModel": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImprovementInputModel": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "actionCreatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionSyncedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "setChangedDate": {
            "type": "boolean"
          },
          "measureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementAlternativeInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ImprovementPlan": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "groupSubject": {
            "$ref": "#/components/schemas/Group"
          },
          "groupSubjectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "actionSubject": {
            "$ref": "#/components/schemas/User"
          },
          "actionSubjectId": {
            "type": "string",
            "format": "uuid"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementAction"
            },
            "nullable": true
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subjectActions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImprovementAction"
            },
            "nullable": true,
            "readOnly": true
          },
          "isGroupSubjectPlan": {
            "type": "boolean",
            "readOnly": true
          },
          "actionState": {
            "$ref": "#/components/schemas/ActionState"
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approved": {
            "type": "boolean",
            "readOnly": true
          },
          "stakeHolderIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "subjectActivityTask": {
            "$ref": "#/components/schemas/SubjectActivityTask"
          },
          "subjectActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "fullyInitiated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "InitMediaUploadRequest": {
        "type": "object",
        "properties": {
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "fileSizeBytes": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "InitMediaUploadResponse": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "blobPath": {
            "type": "string",
            "nullable": true
          },
          "uploadSasUrl": {
            "type": "string",
            "nullable": true
          },
          "recommendedChunkSizeBytes": {
            "type": "integer",
            "format": "int32"
          },
          "uploadSessionExpiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "InitQualityActivityTaskInputModel": {
        "type": "object",
        "properties": {
          "qualityActivityId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityElementTaskDataInputModel": {
            "$ref": "#/components/schemas/ActivityElementTaskDataInputModel"
          }
        },
        "additionalProperties": false
      },
      "IntPtr": {
        "type": "object",
        "additionalProperties": false
      },
      "Invitation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "sentDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeAnsweringType": {
        "enum": [
          "single",
          "multiple"
        ],
        "type": "string"
      },
      "KnowledgeGapAnalysisMetadataViewModel": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "generatedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isPersisted": {
            "type": "boolean"
          },
          "inputHash": {
            "type": "string",
            "nullable": true
          },
          "scopeType": {
            "type": "string",
            "nullable": true
          },
          "scopeId": {
            "type": "string",
            "format": "uuid"
          },
          "parentScopeId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "matchMode": {
            "type": "string",
            "nullable": true
          },
          "resultKind": {
            "type": "string",
            "nullable": true
          },
          "attemptCount": {
            "type": "integer",
            "format": "int32"
          },
          "questionCount": {
            "type": "integer",
            "format": "int32"
          },
          "moduleCount": {
            "type": "integer",
            "format": "int32"
          },
          "candidateCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedCourseProgressCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "participantCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "parametersJson": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeGapAnalysisViewModel": {
        "type": "object",
        "properties": {
          "globalSummary": {
            "type": "string",
            "nullable": true
          },
          "themes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeGapThemeViewModel"
            },
            "nullable": true
          },
          "suggestedFocusAreas": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeGapFocusAreaViewModel"
            },
            "nullable": true
          },
          "metadata": {
            "$ref": "#/components/schemas/KnowledgeGapAnalysisMetadataViewModel"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeGapFocusAreaViewModel": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeGapThemeViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "number",
            "format": "double"
          },
          "questionIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestAnswerAlternativeInputModel": {
        "required": [
          "isCorrect",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "isCorrect": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestAnswerAlternativeInstanceViewModel": {
        "required": [
          "isCorrect",
          "ordinal",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "isCorrect": {
            "type": "boolean"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "questionProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestQuestionProgressViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestAnswerAlternativeParticipationViewModel": {
        "required": [
          "hasBeenAnsweredCorrectly",
          "id",
          "ordinal",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "hasBeenAnsweredCorrectly": {
            "type": "boolean"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "questionProgress": {
            "$ref": "#/components/schemas/KnowledgeTestQuestionProgressViewModel"
          },
          "isCorrect": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestAnswerAlternativeViewModel": {
        "required": [
          "isCorrect",
          "ordinal",
          "text"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "text": {
            "minLength": 1,
            "type": "string"
          },
          "isCorrect": {
            "type": "boolean"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestAttemptViewModel": {
        "required": [
          "attemptOrdinal",
          "courseProgressId",
          "courseTrainingProgress",
          "isActive",
          "isPassed",
          "isReviewLocked",
          "moduleAttemptId",
          "progressPercentage",
          "scorePercentage"
        ],
        "type": "object",
        "properties": {
          "moduleAttemptId": {
            "type": "string",
            "format": "uuid"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scorePercentage": {
            "type": "number",
            "format": "double"
          },
          "isActive": {
            "type": "boolean"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPassed": {
            "type": "boolean"
          },
          "isReviewLocked": {
            "type": "boolean"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/ScoredCourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestModuleInstanceViewModel": {
        "required": [
          "canStartNewAttempt",
          "id",
          "name",
          "ordinal",
          "questions"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "moduleProgresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ModuleProgressViewModel"
            },
            "nullable": true
          },
          "completionPercentage": {
            "type": "number",
            "format": "double"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "passPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestQuestionInstanceViewModel"
            }
          },
          "shuffleQuestions": {
            "type": "boolean"
          },
          "showCorrectAnswer": {
            "type": "boolean",
            "readOnly": true
          },
          "canStartNewAttempt": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestModuleParticipationViewModel": {
        "required": [
          "allowForceComplete",
          "attempts",
          "changedDate",
          "courseTrainingProgress",
          "createdDate",
          "isReadonly",
          "moduleInstanceId",
          "name",
          "ordinal",
          "questions",
          "showCorrectAnswer",
          "shuffleQuestions",
          "type"
        ],
        "type": "object",
        "properties": {
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/ScoredCourseTrainingProgressViewModel"
          },
          "isReadonly": {
            "type": "boolean"
          },
          "allowForceComplete": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "passPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "shuffleQuestions": {
            "type": "boolean"
          },
          "showCorrectAnswer": {
            "type": "boolean"
          },
          "attempts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAttemptViewModel"
            }
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestQuestionParticipationViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestModuleViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "estimatedHours",
          "id",
          "isPublished",
          "name",
          "ordinal",
          "questions",
          "showCorrectAnswers",
          "shuffleQuestions",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "passPercentage": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "maxAttempts": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestQuestionViewModel"
            }
          },
          "shuffleQuestions": {
            "type": "boolean"
          },
          "showCorrectAnswers": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestParticipantImpact": {
        "type": "object",
        "properties": {
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "currentResult": {
            "type": "string",
            "nullable": true
          },
          "projectedResult": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishInstanceResult": {
        "type": "object",
        "properties": {
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstanceName": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "changesApplied": {
            "type": "integer",
            "format": "int32"
          },
          "passedResultsPreserved": {
            "type": "integer",
            "format": "int32"
          },
          "failedToPassed": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishPreview": {
        "type": "object",
        "properties": {
          "knowledgeTestModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "knowledgeTestModuleName": {
            "type": "string",
            "nullable": true
          },
          "totalInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "affectedInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "inSyncInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "excludedInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "neverDowngradePassedResults": {
            "type": "boolean"
          },
          "instances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestPublishPreviewInstance"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishPreviewChange": {
        "type": "object",
        "properties": {
          "changeType": {
            "type": "string",
            "nullable": true
          },
          "templateQuestionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "instanceQuestionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "currentValue": {
            "type": "string",
            "nullable": true
          },
          "templateValue": {
            "type": "string",
            "nullable": true
          },
          "willApply": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishPreviewInstance": {
        "type": "object",
        "properties": {
          "courseInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseInstanceName": {
            "type": "string",
            "nullable": true
          },
          "knowledgeTestModuleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseState": {
            "$ref": "#/components/schemas/CourseState"
          },
          "isEligibleForPublish": {
            "type": "boolean"
          },
          "hasDrift": {
            "type": "boolean"
          },
          "participants": {
            "$ref": "#/components/schemas/KnowledgeTestPublishPreviewParticipantSummary"
          },
          "changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestPublishPreviewChange"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishPreviewParticipantSummary": {
        "type": "object",
        "properties": {
          "enrolled": {
            "type": "integer",
            "format": "int32"
          },
          "withAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "withPassedResult": {
            "type": "integer",
            "format": "int32"
          },
          "passedResultsPreserved": {
            "type": "integer",
            "format": "int32"
          },
          "failedToPassed": {
            "type": "integer",
            "format": "int32"
          },
          "impacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestParticipantImpact"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishRequest": {
        "type": "object",
        "properties": {
          "courseInstanceIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestPublishResult": {
        "type": "object",
        "properties": {
          "knowledgeTestModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "neverDowngradePassedResults": {
            "type": "boolean"
          },
          "updatedInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "skippedInstanceCount": {
            "type": "integer",
            "format": "int32"
          },
          "passedResultsPreserved": {
            "type": "integer",
            "format": "int32"
          },
          "failedToPassed": {
            "type": "integer",
            "format": "int32"
          },
          "instances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestPublishInstanceResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestQuestionInstanceViewModel": {
        "required": [
          "answeringAlternatives",
          "answeringType",
          "ordinal",
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "textMarkdown": {
            "type": "string",
            "nullable": true
          },
          "feedbackMarkdown": {
            "type": "string",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeInstanceViewModel"
            }
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestQuestionParticipationViewModel": {
        "required": [
          "answeringAlternatives",
          "answeringType",
          "ordinal",
          "questionState",
          "title"
        ],
        "type": "object",
        "properties": {
          "questionInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "textMarkdown": {
            "type": "string",
            "nullable": true
          },
          "feedbackMarkdown": {
            "type": "string",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeParticipationViewModel"
            },
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "questionState": {
            "$ref": "#/components/schemas/QuestionState"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestQuestionProgressViewModel": {
        "required": [
          "answerAlternativeInstanceId",
          "answeringType",
          "id",
          "isAnswered",
          "knowledgeTestAnswerAlternativeInstanceId",
          "questionInstanceId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "isAnswered": {
            "type": "boolean"
          },
          "questionInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "questionOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "knowledgeTestAnswerAlternativeInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "answerAlternativeText": {
            "type": "string",
            "nullable": true
          },
          "answerAlternativeOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "answerAlternativeInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "allowPartialCorrectness": {
            "type": "boolean"
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          }
        },
        "additionalProperties": false
      },
      "KnowledgeTestQuestionViewModel": {
        "required": [
          "answeringAlternatives",
          "answeringType",
          "id",
          "ordinal",
          "shuffleAlternatives",
          "title"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "feedbackMarkdown": {
            "type": "string",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeViewModel"
            }
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "shuffleAlternatives": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "LanguageCode": {
        "enum": [
          "en",
          "sv",
          "nb",
          "da",
          "de"
        ],
        "type": "string"
      },
      "LayoutKind": {
        "enum": [
          "sequential",
          "explicit",
          "auto"
        ],
        "type": "string"
      },
      "LinkedPolicyProgressResponse": {
        "type": "object",
        "properties": {
          "policyId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "renewalStatus": {
            "type": "string",
            "nullable": true
          },
          "renewBy": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "acknowledgementPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "confirmedCount": {
            "type": "integer",
            "format": "int32"
          },
          "requiredCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "LogEntryViewModel": {
        "type": "object",
        "properties": {
          "timeGenerated": {
            "type": "string",
            "format": "date-time"
          },
          "system": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "eventType": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "string",
            "nullable": true
          },
          "ipAddress": {
            "type": "string",
            "nullable": true
          },
          "userAgent": {
            "type": "string",
            "nullable": true
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/EventStatus"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LogEntryViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogEntryViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LogEventViewModel": {
        "required": [
          "eventTime",
          "id",
          "status",
          "taskName"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "taskName": {
            "minLength": 1,
            "type": "string"
          },
          "eventTime": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/TaskLogEventStatus"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "exception": {
            "$ref": "#/components/schemas/TaskLogExceptionViewModel"
          }
        },
        "additionalProperties": false
      },
      "LogEventViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LogEventViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "nullable": true
          },
          "errorDescription": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginParameters": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MacroActionInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "reversible": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MacroActionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "reversible": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MacroInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MacroActionInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MacroViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string",
            "readOnly": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "actions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MacroActionViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Measure": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "measureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeasureAlternative"
            },
            "nullable": true
          },
          "selectedMeasureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeasureAlternative"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasSelected": {
            "type": "boolean",
            "readOnly": true
          },
          "comment": {
            "$ref": "#/components/schemas/Comment"
          },
          "actionCreatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionSyncedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionCreated": {
            "type": "boolean",
            "readOnly": true
          },
          "isComplete": {
            "type": "boolean",
            "readOnly": true
          },
          "needsActionSync": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MeasureAlternative": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "string",
            "nullable": true
          },
          "selected": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MeasureAlternativeInputModel": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MeasureInputModel": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "actionCreatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "actionSyncedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "setChangedDate": {
            "type": "boolean"
          },
          "measureAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MeasureAlternativeInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaFileInformation": {
        "required": [
          "fileIdentifier",
          "fileName",
          "storageContainer",
          "type",
          "url"
        ],
        "type": "object",
        "properties": {
          "fileName": {
            "minLength": 1,
            "type": "string"
          },
          "url": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "fileIdentifier": {
            "minLength": 1,
            "type": "string"
          },
          "fileExtension": {
            "type": "string",
            "nullable": true
          },
          "storageContainer": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MediaLibraryItemResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "originalFileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "actualByteSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "uploadStatus": {
            "$ref": "#/components/schemas/MediaUploadStatus"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/MediaProcessingStatus"
          },
          "processingError": {
            "type": "string",
            "nullable": true
          },
          "processingErrorCode": {
            "type": "string",
            "nullable": true
          },
          "processingStage": {
            "type": "string",
            "nullable": true
          },
          "processingProgressPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaLibraryListItemResponse": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "contentType": {
            "type": "string",
            "nullable": true
          },
          "uploadStatus": {
            "$ref": "#/components/schemas/MediaUploadStatus"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/MediaProcessingStatus"
          },
          "processingError": {
            "type": "string",
            "nullable": true
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "referenceUrl": {
            "type": "string",
            "nullable": true
          },
          "isReadyForPlayback": {
            "type": "boolean"
          },
          "thumbnailUrl": {
            "type": "string",
            "nullable": true
          },
          "processingErrorCode": {
            "type": "string",
            "nullable": true
          },
          "processingStage": {
            "type": "string",
            "nullable": true
          },
          "processingProgressPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaLibraryPlaybackInformation": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "encodedAssetId": {
            "type": "string",
            "format": "uuid"
          },
          "fileName": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          },
          "manifestUrl": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MediaProcessingStatus": {
        "enum": [
          "notRequested",
          "queued",
          "processing",
          "ready",
          "failed",
          "cancelled"
        ],
        "type": "string"
      },
      "MediaSasTokensResponse": {
        "required": [
          "courseMedia",
          "mediaLibrary"
        ],
        "type": "object",
        "properties": {
          "courseMedia": {
            "minLength": 1,
            "type": "string"
          },
          "mediaLibrary": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "MediaUploadStatus": {
        "enum": [
          "draft",
          "uploading",
          "uploaded",
          "uploadFailed",
          "uploadAborted",
          "uploadExpired"
        ],
        "type": "string"
      },
      "MediaUploadStatusResponse": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "uploadStatus": {
            "$ref": "#/components/schemas/MediaUploadStatus"
          },
          "processingStatus": {
            "$ref": "#/components/schemas/MediaProcessingStatus"
          },
          "actualByteSize": {
            "type": "integer",
            "format": "int64",
            "nullable": true
          },
          "uploadSessionExpiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "processingStage": {
            "type": "string",
            "nullable": true
          },
          "processingProgressPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "processingErrorCode": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MemberInfo": {
        "type": "object",
        "properties": {
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MemberTypes": {
        "enum": [
          "constructor",
          "event",
          "field",
          "method",
          "property",
          "typeInfo",
          "custom",
          "nestedType",
          "all"
        ],
        "type": "string"
      },
      "Membership": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/MembershipType"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "userId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "groupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "autoGenerated": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "MembershipType": {
        "enum": [
          "user",
          "group"
        ],
        "type": "string"
      },
      "MethodAttributes": {
        "enum": [
          "privateScope",
          "private",
          "famANDAssem",
          "assembly",
          "family",
          "famORAssem",
          "public",
          "memberAccessMask",
          "unmanagedExport",
          "static",
          "final",
          "virtual",
          "hideBySig",
          "newSlot",
          "checkAccessOnOverride",
          "abstract",
          "specialName",
          "rTSpecialName",
          "pinvokeImpl",
          "hasSecurity",
          "requireSecObject",
          "reservedMask"
        ],
        "type": "string"
      },
      "MethodBase": {
        "type": "object",
        "properties": {
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "attributes": {
            "$ref": "#/components/schemas/MethodAttributes"
          },
          "methodImplementationFlags": {
            "$ref": "#/components/schemas/MethodImplAttributes"
          },
          "callingConvention": {
            "$ref": "#/components/schemas/CallingConventions"
          },
          "isAbstract": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructor": {
            "type": "boolean",
            "readOnly": true
          },
          "isFinal": {
            "type": "boolean",
            "readOnly": true
          },
          "isHideBySig": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isStatic": {
            "type": "boolean",
            "readOnly": true
          },
          "isVirtual": {
            "type": "boolean",
            "readOnly": true
          },
          "isAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyAndAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyOrAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructedGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethodDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "containsGenericParameters": {
            "type": "boolean",
            "readOnly": true
          },
          "methodHandle": {
            "$ref": "#/components/schemas/RuntimeMethodHandle"
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "MethodImplAttributes": {
        "enum": [
          "IL",
          "native",
          "OPTIL",
          "codeTypeMask",
          "managedMask",
          "noInlining",
          "forwardRef",
          "synchronized",
          "noOptimization",
          "preserveSig",
          "aggressiveInlining",
          "aggressiveOptimization",
          "internalCall",
          "async",
          "maxMethodImplVal"
        ],
        "type": "string"
      },
      "MethodInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "attributes": {
            "$ref": "#/components/schemas/MethodAttributes"
          },
          "methodImplementationFlags": {
            "$ref": "#/components/schemas/MethodImplAttributes"
          },
          "callingConvention": {
            "$ref": "#/components/schemas/CallingConventions"
          },
          "isAbstract": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructor": {
            "type": "boolean",
            "readOnly": true
          },
          "isFinal": {
            "type": "boolean",
            "readOnly": true
          },
          "isHideBySig": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isStatic": {
            "type": "boolean",
            "readOnly": true
          },
          "isVirtual": {
            "type": "boolean",
            "readOnly": true
          },
          "isAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyAndAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isFamilyOrAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructedGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethod": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethodDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "containsGenericParameters": {
            "type": "boolean",
            "readOnly": true
          },
          "methodHandle": {
            "$ref": "#/components/schemas/RuntimeMethodHandle"
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "returnParameter": {
            "$ref": "#/components/schemas/ParameterInfo"
          },
          "returnType": {
            "$ref": "#/components/schemas/Type"
          },
          "returnTypeCustomAttributes": {
            "$ref": "#/components/schemas/ICustomAttributeProvider"
          }
        },
        "additionalProperties": false
      },
      "MilestoneViewModel": {
        "type": "object",
        "properties": {
          "ordinal": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/State"
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "implementor": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Module": {
        "type": "object",
        "properties": {
          "assembly": {
            "$ref": "#/components/schemas/Assembly"
          },
          "fullyQualifiedName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "mdStreamVersion": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "moduleVersionId": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "scopeName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "moduleHandle": {
            "$ref": "#/components/schemas/ModuleHandle"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ModuleHandle": {
        "type": "object",
        "properties": {
          "mdStreamVersion": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ModuleProgress": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseModuleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "courseModuleInstance": {
            "$ref": "#/components/schemas/CourseModuleInstance"
          },
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "participant": {
            "$ref": "#/components/schemas/CourseParticipant"
          },
          "estimatedHours": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "courseProgress": {
            "$ref": "#/components/schemas/CourseProgress"
          },
          "totalUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "cancelled": {
            "type": "boolean"
          },
          "attemptOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "ModuleProgressViewModel": {
        "required": [
          "attemptOrdinal",
          "completedUnits",
          "courseModuleInstanceId",
          "id",
          "participantId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseModuleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "completedUnits": {
            "type": "integer",
            "format": "int32"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "attemptOrdinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OrdinalInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "OrdinalMapInputModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrdinalInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ParameterAttributes": {
        "enum": [
          "none",
          "in",
          "out",
          "lcid",
          "retval",
          "optional",
          "hasDefault",
          "hasFieldMarshal",
          "reserved3",
          "reserved4",
          "reservedMask"
        ],
        "type": "string"
      },
      "ParameterExpression": {
        "type": "object",
        "properties": {
          "canReduce": {
            "type": "boolean",
            "readOnly": true
          },
          "type": {
            "$ref": "#/components/schemas/Type"
          },
          "nodeType": {
            "$ref": "#/components/schemas/ExpressionType"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "isByRef": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "ParameterInfo": {
        "type": "object",
        "properties": {
          "attributes": {
            "$ref": "#/components/schemas/ParameterAttributes"
          },
          "member": {
            "$ref": "#/components/schemas/MemberInfo"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "parameterType": {
            "$ref": "#/components/schemas/Type"
          },
          "position": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "isIn": {
            "type": "boolean",
            "readOnly": true
          },
          "isLcid": {
            "type": "boolean",
            "readOnly": true
          },
          "isOptional": {
            "type": "boolean",
            "readOnly": true
          },
          "isOut": {
            "type": "boolean",
            "readOnly": true
          },
          "isRetval": {
            "type": "boolean",
            "readOnly": true
          },
          "defaultValue": {
            "readOnly": true
          },
          "rawDefaultValue": {
            "readOnly": true
          },
          "hasDefaultValue": {
            "type": "boolean",
            "readOnly": true
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "PipeState": {
        "enum": [
          "undefined",
          "upcoming",
          "current",
          "done"
        ],
        "type": "string"
      },
      "PolicyListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PolicyResponse"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyQualityItemLinksRequest": {
        "type": "object",
        "properties": {
          "policyIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyRenewRequest": {
        "type": "object",
        "properties": {
          "documentName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "frameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "frameworkName": {
            "type": "string",
            "nullable": true
          },
          "frameworkDomain": {
            "type": "string",
            "nullable": true
          },
          "ownerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ownerName": {
            "type": "string",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renewalCadence": {
            "type": "string",
            "nullable": true
          },
          "readCadence": {
            "type": "string",
            "nullable": true
          },
          "renewBy": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renewalStatus": {
            "type": "string",
            "nullable": true
          },
          "currentVersionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "currentDocumentName": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "groupIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "requiredCount": {
            "type": "integer",
            "format": "int32"
          },
          "confirmedCount": {
            "type": "integer",
            "format": "int32"
          },
          "acknowledgementPercent": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "currentUserHasAcknowledged": {
            "type": "boolean"
          },
          "currentUserAcknowledgedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicySetStatusRequest": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PolicyUpsertRequest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "frameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ownerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "effectiveDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "renewalCadence": {
            "type": "string",
            "nullable": true
          },
          "readCadence": {
            "type": "string",
            "nullable": true
          },
          "groupIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "documentName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PriorityFactor": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "priorityFactorAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriorityFactorAlternative"
            },
            "nullable": true
          },
          "selectedPriorityFactorAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriorityFactorAlternative"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasSelected": {
            "type": "boolean",
            "readOnly": true
          },
          "isComplete": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "PriorityFactorAlternative": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "data": {
            "type": "string",
            "nullable": true
          },
          "selected": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "PriorityFactorAlternativeInputModel": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PriorityFactorInputModel": {
        "type": "object",
        "properties": {
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "priorityFactorAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriorityFactorAlternativeInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "PropertyAttributes": {
        "enum": [
          "none",
          "specialName",
          "rTSpecialName",
          "hasDefault",
          "reserved2",
          "reserved3",
          "reserved4",
          "reservedMask"
        ],
        "type": "string"
      },
      "PropertyInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "propertyType": {
            "$ref": "#/components/schemas/Type"
          },
          "attributes": {
            "$ref": "#/components/schemas/PropertyAttributes"
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "canRead": {
            "type": "boolean",
            "readOnly": true
          },
          "canWrite": {
            "type": "boolean",
            "readOnly": true
          },
          "getMethod": {
            "$ref": "#/components/schemas/MethodInfo"
          },
          "setMethod": {
            "$ref": "#/components/schemas/MethodInfo"
          }
        },
        "additionalProperties": false
      },
      "ProveElementInputModel": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "PublishCourseModuleResult": {
        "required": [
          "courseModuleId",
          "isPublished"
        ],
        "type": "object",
        "properties": {
          "courseModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "isPublished": {
            "type": "boolean"
          },
          "publishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PublishCourseResult": {
        "required": [
          "courseId",
          "isPublished"
        ],
        "type": "object",
        "properties": {
          "courseId": {
            "type": "string",
            "format": "uuid"
          },
          "isPublished": {
            "type": "boolean"
          },
          "publishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityActivity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "activityElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElement"
            },
            "nullable": true
          },
          "qualityActivityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityActivityTask"
            },
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          },
          "disableHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityActivityInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "activityElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementInputModel"
            },
            "nullable": true
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          },
          "creator": {
            "$ref": "#/components/schemas/UserInputModel"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "disableHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityActivityReportSelectorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "subjectActivityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectActivityTaskViewModel"
            },
            "nullable": true
          },
          "forms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormSelectorViewModel"
            },
            "nullable": true
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          }
        },
        "additionalProperties": false
      },
      "QualityActivityStatus": {
        "enum": [
          "undefined",
          "created",
          "active",
          "completed",
          "expired",
          "approved",
          "notPerformed"
        ],
        "type": "string"
      },
      "QualityActivityTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityActivity": {
            "$ref": "#/components/schemas/QualityActivity"
          },
          "qualityActivityId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectActivityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectActivityTask"
            },
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItem"
            },
            "nullable": true
          },
          "archived": {
            "type": "boolean"
          },
          "disableHistory": {
            "type": "boolean"
          },
          "workableTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "allFormDocumentWorkableIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "nextDeadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "readOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "initDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "shouldBeInitialized": {
            "type": "boolean",
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "subjectIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityCollaborationCommentListViewModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityCollaborationCommentViewModel"
            },
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityCollaborationCommentViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ownerKind": {
            "type": "string",
            "nullable": true
          },
          "qualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "evaluationRevisionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "authorUserId": {
            "type": "string",
            "format": "uuid"
          },
          "content": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isEdited": {
            "type": "boolean"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityCollaborationCommentWriteInputModel": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "nullable": true
          },
          "audience": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityFrameworkCreateInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityFrameworkListViewModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityFrameworkViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityFrameworkUpdateInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityFrameworkViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "code": {
            "type": "string",
            "nullable": true
          },
          "domain": {
            "type": "string",
            "nullable": true
          },
          "isGlobal": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityImportApplyInputModel": {
        "type": "object",
        "properties": {
          "sourceToken": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "QualityImportApplyViewModel": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "planChecksum": {
            "type": "string",
            "nullable": true
          },
          "stepCount": {
            "type": "integer",
            "format": "int32"
          },
          "entityCounts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityImportIssueDto": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "path": {
            "type": "string",
            "nullable": true
          },
          "severity": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityImportUploadViewModel": {
        "type": "object",
        "properties": {
          "sourceToken": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isValid": {
            "type": "boolean"
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityImportIssueDto"
            },
            "nullable": true
          },
          "entityCounts": {
            "type": "object",
            "additionalProperties": {
              "type": "integer",
              "format": "int32"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagement": {
            "$ref": "#/components/schemas/QualityManagement"
          },
          "responsible": {
            "$ref": "#/components/schemas/User"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityItemTemplate": {
            "$ref": "#/components/schemas/QualityItem"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isTemplate": {
            "type": "boolean"
          },
          "isDraft": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceItem": {
            "$ref": "#/components/schemas/QualityItem"
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "consumerAuthorizationClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "indirectResponsible": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          },
          "mostSpecificIndirectResponsible": {
            "$ref": "#/components/schemas/User"
          },
          "mostSpecificIndirectResponsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItem"
            },
            "nullable": true
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            },
            "nullable": true
          },
          "taskReady": {
            "type": "boolean"
          },
          "closedWithoutReport": {
            "type": "boolean"
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "report": {
            "$ref": "#/components/schemas/QualityItemReport"
          },
          "qualityActivityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityActivityTask"
            },
            "nullable": true
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            },
            "nullable": true
          },
          "startedBy": {
            "$ref": "#/components/schemas/User"
          },
          "startedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "startedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "schedule": {
            "$ref": "#/components/schemas/QualityItemSchedule"
          },
          "locked": {
            "type": "boolean"
          },
          "started": {
            "type": "boolean",
            "readOnly": true
          },
          "currentUserPermission": {
            "$ref": "#/components/schemas/ResourceAuthorizationType"
          },
          "synced": {
            "type": "boolean"
          },
          "needsSync": {
            "type": "boolean"
          },
          "reported": {
            "type": "boolean",
            "readOnly": true
          },
          "removedClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/QualityItemState"
          },
          "childResources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IHierarchicalAuthorizedResource"
            },
            "nullable": true,
            "readOnly": true
          },
          "subjectName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "subjectType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemActivityLinkDetailViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "qualityYearName": {
            "type": "string",
            "nullable": true
          },
          "qualityActivityName": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemActivityLinkDetailsViewModel": {
        "type": "object",
        "properties": {
          "links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemActivityLinkDetailViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemActivityLinkViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "qualityYearName": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemActivityLinksWriteInputModel": {
        "type": "object",
        "properties": {
          "taskIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemChildNodeViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "hasChildren": {
            "type": "boolean"
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "nearestInheritedResponsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nearestInheritedResponsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inheritedStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reported": {
            "type": "boolean"
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "hasRemark": {
            "type": "boolean"
          },
          "hasComment": {
            "type": "boolean"
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "goalDefinitionConfirmed": {
            "type": "boolean",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "requiresReport": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityItemChildUserDisplayViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityItemChildrenViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "parentItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "parentKind": {
            "type": "string",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemChildNodeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemConclusionFilter": {
        "enum": [
          "undefined",
          "withRemark",
          "withoutRemark"
        ],
        "type": "string"
      },
      "QualityItemContextAncestorViewModel": {
        "type": "object",
        "properties": {
          "qualityItemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityItemContextCurrentReportViewModel": {
        "type": "object",
        "properties": {
          "reportId": {
            "type": "string",
            "format": "uuid"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityItemContextEffectiveResponsibilityViewModel": {
        "type": "object",
        "properties": {
          "directResponsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nearestInheritedResponsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemContextRootViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isLocked": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityItemContextViewModel": {
        "type": "object",
        "properties": {
          "qualityItemId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "parentQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "ancestors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemContextAncestorViewModel"
            },
            "nullable": true
          },
          "root": {
            "$ref": "#/components/schemas/QualityItemContextRootViewModel"
          },
          "currentReport": {
            "$ref": "#/components/schemas/QualityItemContextCurrentReportViewModel"
          },
          "effectiveResponsibility": {
            "$ref": "#/components/schemas/QualityItemContextEffectiveResponsibilityViewModel"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "activityLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemActivityLinkViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemCreateInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemDetailsPatchInputModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "goalDefinitionConfirmed": {
            "type": "boolean",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemHierarchyAffectedViewModel": {
        "type": "object",
        "properties": {
          "childItemId": {
            "type": "string",
            "format": "uuid"
          },
          "sourceParentItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetParentItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "renumberedSiblingIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "scheduleAffectedItemIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemHierarchyMutationViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "affected": {
            "$ref": "#/components/schemas/QualityItemHierarchyAffectedViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityItemLinkInputModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "QualityItemListItemViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "isDraft": {
            "type": "boolean"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "isTemplate": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagementName": {
            "type": "string",
            "nullable": true
          },
          "qualityManagementLabel": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inheritedStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "started": {
            "type": "boolean"
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taskReady": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "readOnly": {
            "type": "boolean"
          },
          "reported": {
            "type": "boolean"
          },
          "requiresReport": {
            "type": "boolean"
          },
          "canReport": {
            "type": "boolean"
          },
          "displayUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "report": {
            "$ref": "#/components/schemas/QualityItemListReportViewModel"
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "goalDefinitionConfirmed": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemListReportViewModel": {
        "type": "object",
        "properties": {
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reporterName": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemListStatusSummaryViewModel": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "draftCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdCount": {
            "type": "integer",
            "format": "int32"
          },
          "startedCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeCount": {
            "type": "integer",
            "format": "int32"
          },
          "completedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityItemListViewModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemListItemViewModel"
            },
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "skip": {
            "type": "integer",
            "format": "int32"
          },
          "take": {
            "type": "integer",
            "format": "int32"
          },
          "statusSummary": {
            "$ref": "#/components/schemas/QualityItemListStatusSummaryViewModel"
          },
          "currentActorStatusSummary": {
            "$ref": "#/components/schemas/QualityItemListStatusSummaryViewModel"
          },
          "responsibilitySummary": {
            "$ref": "#/components/schemas/QualityItemResponsibilitySummaryViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityItemMoveInputModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "sourceParentId": {
            "type": "string",
            "format": "uuid"
          },
          "targetParentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "QualityItemParentsViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "childItemId": {
            "type": "string",
            "format": "uuid"
          },
          "parents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemChildNodeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemReorderInputModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "orderedChildIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemReport": {
        "type": "object",
        "properties": {
          "resolution": {
            "$ref": "#/components/schemas/ResolutionType"
          },
          "conclusion": {
            "$ref": "#/components/schemas/ConclusionType"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporter": {
            "$ref": "#/components/schemas/User"
          },
          "reporterId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityItemReportCurrentViewModel": {
        "type": "object",
        "properties": {
          "reportId": {
            "type": "string",
            "format": "uuid"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "updatedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityItemReportMutationViewModel": {
        "type": "object",
        "properties": {
          "qualityItemId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "currentReport": {
            "$ref": "#/components/schemas/QualityItemReportCurrentViewModel"
          },
          "parentHint": {
            "$ref": "#/components/schemas/QualityItemReportParentHintViewModel"
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          }
        },
        "additionalProperties": false
      },
      "QualityItemReportParentHintViewModel": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "itemKind": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemReportWriteInputModel": {
        "type": "object",
        "properties": {
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemResolutionFilter": {
        "enum": [
          "undefined",
          "done",
          "notApplicable"
        ],
        "type": "string"
      },
      "QualityItemResponsibilityStatsViewModel": {
        "type": "object",
        "properties": {
          "responsibilityTotal": {
            "type": "integer",
            "format": "int32"
          },
          "reportingTotal": {
            "type": "integer",
            "format": "int32"
          },
          "reportingDone": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityItemResponsibilitySummaryViewModel": {
        "type": "object",
        "properties": {
          "all": {
            "$ref": "#/components/schemas/QualityItemResponsibilityStatsViewModel"
          },
          "mine": {
            "$ref": "#/components/schemas/QualityItemResponsibilityStatsViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityItemSchedule": {
        "type": "object",
        "properties": {
          "scheduledStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inheritedStartDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "explicitStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveScheduleSourceItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "lifecycleState": {
            "$ref": "#/components/schemas/QualityItemScheduleLifecycleState"
          },
          "autoStartClaimToken": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "autoStartClaimLeaseExpiresUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "autoStartClaimAttemptCount": {
            "type": "integer",
            "format": "int32"
          },
          "overdue": {
            "type": "boolean",
            "readOnly": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "explicit": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemScheduleLifecycleState": {
        "enum": [
          "created",
          "started",
          "active",
          "completed",
          "locked"
        ],
        "type": "string"
      },
      "QualityItemScheduleViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "explicitStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveScheduleSourceItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "affected": {
            "$ref": "#/components/schemas/QualityScheduleAffectedContextViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityItemScheduleWriteInputModel": {
        "type": "object",
        "properties": {
          "explicitStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityItemState": {
        "enum": [
          "undefined",
          "created",
          "started",
          "active",
          "completed",
          "draft"
        ],
        "type": "string"
      },
      "QualityItemStateFilter": {
        "enum": [
          "undefined",
          "created",
          "started",
          "active",
          "completed",
          "draft"
        ],
        "type": "string"
      },
      "QualityItemTypeFilter": {
        "enum": [
          "any",
          "qualityManagement",
          "qualityArea",
          "qualityObjective",
          "qualityRisk",
          "qualityRiskResponse",
          "qualitySubObjective",
          "qualityMonitoringActivity"
        ],
        "type": "string"
      },
      "QualityItemUnlinkInputModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "QualityItemVersionInputModel": {
        "required": [
          "etag",
          "itemId"
        ],
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "etag": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "QualityManagement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYear"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagement": {
            "$ref": "#/components/schemas/QualityManagement"
          },
          "responsible": {
            "$ref": "#/components/schemas/User"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityItemTemplate": {
            "$ref": "#/components/schemas/QualityItem"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "isTemplate": {
            "type": "boolean"
          },
          "isDraft": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceItem": {
            "$ref": "#/components/schemas/QualityItem"
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "consumerAuthorizationClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "indirectResponsible": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          },
          "mostSpecificIndirectResponsible": {
            "$ref": "#/components/schemas/User"
          },
          "mostSpecificIndirectResponsibleId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "children": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItem"
            },
            "nullable": true
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            },
            "nullable": true
          },
          "taskReady": {
            "type": "boolean"
          },
          "closedWithoutReport": {
            "type": "boolean"
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "report": {
            "$ref": "#/components/schemas/QualityItemReport"
          },
          "qualityActivityTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityActivityTask"
            },
            "nullable": true
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            },
            "nullable": true
          },
          "startedBy": {
            "$ref": "#/components/schemas/User"
          },
          "startedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "startedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "schedule": {
            "$ref": "#/components/schemas/QualityItemSchedule"
          },
          "locked": {
            "type": "boolean"
          },
          "started": {
            "type": "boolean",
            "readOnly": true
          },
          "currentUserPermission": {
            "$ref": "#/components/schemas/ResourceAuthorizationType"
          },
          "synced": {
            "type": "boolean"
          },
          "needsSync": {
            "type": "boolean"
          },
          "reported": {
            "type": "boolean",
            "readOnly": true
          },
          "removedClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "childResources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IHierarchicalAuthorizedResource"
            },
            "nullable": true,
            "readOnly": true
          },
          "subjectName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "subjectType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "evaluation": {
            "$ref": "#/components/schemas/QualityManagementEvaluation"
          },
          "currentEvaluationRevisionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "currentEvaluationRevision": {
            "$ref": "#/components/schemas/QualityManagementEvaluationRevision"
          },
          "evaluationRevisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationRevision"
            },
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean"
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          },
          "rowVersion": {
            "type": "string",
            "format": "byte",
            "nullable": true
          },
          "sourceTemplateVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceTemplateVersion": {
            "$ref": "#/components/schemas/QualityManagementTemplateVersion"
          },
          "reportingRequiredKinds": {
            "type": "string",
            "nullable": true
          },
          "isGoalDefinitionRequired": {
            "type": "boolean"
          },
          "isRiskAssessmentRequired": {
            "type": "boolean"
          },
          "isEvaluationRequired": {
            "type": "boolean"
          },
          "isAuditRequired": {
            "type": "boolean"
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwner": {
            "$ref": "#/components/schemas/User"
          },
          "riskAssessmentOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "riskAssessmentOwner": {
            "$ref": "#/components/schemas/User"
          },
          "sourceQualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceQualityManagement": {
            "$ref": "#/components/schemas/QualityManagement"
          },
          "state": {
            "$ref": "#/components/schemas/QualityItemState"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditCompleteInputModel": {
        "type": "object",
        "properties": {
          "comment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditCreateInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "auditType": {
            "type": "string",
            "nullable": true
          },
          "auditorUserId": {
            "type": "string",
            "format": "uuid"
          },
          "startsUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endsUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditDetailViewModel": {
        "type": "object",
        "properties": {
          "audit": {
            "$ref": "#/components/schemas/QualityManagementAuditViewModel"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementAuditItemViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "qualityItemId": {
            "type": "string",
            "format": "uuid"
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isFlagged": {
            "type": "boolean"
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "responsibleEmail": {
            "type": "string",
            "nullable": true
          },
          "reported": {
            "type": "boolean"
          },
          "hasRemark": {
            "type": "boolean"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterName": {
            "type": "string",
            "nullable": true
          },
          "reportedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingState": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditItemsPatchInputModel": {
        "type": "object",
        "properties": {
          "itemIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "isFlagged": {
            "type": "boolean",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          },
          "updateNote": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditSummaryViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isOverdue": {
            "type": "boolean"
          },
          "completedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completionComment": {
            "type": "string",
            "nullable": true
          },
          "acceptedCount": {
            "type": "integer",
            "format": "int32"
          },
          "flaggedCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "auditorName": {
            "type": "string",
            "nullable": true
          },
          "auditType": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementAuditViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "auditType": {
            "type": "string",
            "nullable": true
          },
          "auditorUserId": {
            "type": "string",
            "format": "uuid"
          },
          "auditorName": {
            "type": "string",
            "nullable": true
          },
          "startsUtc": {
            "type": "string",
            "format": "date-time"
          },
          "endsUtc": {
            "type": "string",
            "format": "date-time"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "isOverdue": {
            "type": "boolean"
          },
          "completedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completionComment": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "notReadyCount": {
            "type": "integer",
            "format": "int32"
          },
          "flaggedCount": {
            "type": "integer",
            "format": "int32"
          },
          "readyCount": {
            "type": "integer",
            "format": "int32"
          },
          "acceptedCount": {
            "type": "integer",
            "format": "int32"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementCopyInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetQualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationKey": {
            "type": "string",
            "nullable": true
          },
          "mode": {
            "type": "string",
            "nullable": true
          },
          "root": {
            "$ref": "#/components/schemas/QualityManagementCopyRootInputModel"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementCopyRootInputModel": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isRiskAssessmentRequired": {
            "type": "boolean"
          },
          "isAuditRequired": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "riskAssessmentOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementCreateInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "riskAssessmentOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isGoalDefinitionRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isRiskAssessmentRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isEvaluationRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isAuditRequired": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementDetailsPatchInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isGoalDefinitionRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isRiskAssessmentRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isEvaluationRequired": {
            "type": "boolean",
            "nullable": true
          },
          "isAuditRequired": {
            "type": "boolean",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "riskAssessmentOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluation": {
        "type": "object",
        "properties": {
          "evaluation": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporter": {
            "$ref": "#/components/schemas/User"
          },
          "reporterId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationArtifactReference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "evaluationRevisionId": {
            "type": "string",
            "format": "uuid"
          },
          "evaluationRevision": {
            "$ref": "#/components/schemas/QualityManagementEvaluationRevision"
          },
          "artifactId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationAuditCommentViewModel": {
        "type": "object",
        "properties": {
          "auditId": {
            "type": "string",
            "format": "uuid"
          },
          "auditName": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationComponentSummaryViewModel": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "resolutionDoneCount": {
            "type": "integer",
            "format": "int32"
          },
          "resolutionNotApplicableCount": {
            "type": "integer",
            "format": "int32"
          },
          "withRemarkCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationFlaggedItemViewModel": {
        "type": "object",
        "properties": {
          "auditId": {
            "type": "string",
            "format": "uuid"
          },
          "auditName": {
            "type": "string",
            "nullable": true
          },
          "auditorName": {
            "type": "string",
            "nullable": true
          },
          "qualityItemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationItemsViewModel": {
        "type": "object",
        "properties": {
          "handledRemarks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationReportedItemViewModel"
            },
            "nullable": true
          },
          "notApplicable": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationReportedItemViewModel"
            },
            "nullable": true
          },
          "flagged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationFlaggedItemViewModel"
            },
            "nullable": true
          },
          "auditComments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationAuditCommentViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationMutationViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "started": {
            "type": "boolean"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "currentEvaluationRevisionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "currentEvaluation": {
            "$ref": "#/components/schemas/QualityManagementEvaluationRevisionViewModel"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationOverviewViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "started": {
            "type": "boolean"
          },
          "isCompleted": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "currentEvaluation": {
            "$ref": "#/components/schemas/QualityManagementEvaluationRevisionViewModel"
          },
          "history": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationRevisionViewModel"
            },
            "nullable": true
          },
          "summary": {
            "$ref": "#/components/schemas/QualityReportingSummarySnapshotViewModel"
          },
          "blockers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityReportingBlockerViewModel"
            },
            "nullable": true
          },
          "hiddenBlockerCount": {
            "type": "integer",
            "format": "int32"
          },
          "blockerCounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityReportingBlockerCountViewModel"
            },
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "components": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationComponentSummaryViewModel"
            },
            "nullable": true
          },
          "remarks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationRemarkViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationRemarkViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationReportedItemViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "reportComment": {
            "type": "string",
            "nullable": true
          },
          "reporterUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reporterName": {
            "type": "string",
            "nullable": true
          },
          "reportedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationResult": {
        "enum": [
          "withoutRemarkEvaluation",
          "withRemarkEvaluation",
          "deniedEvaluation"
        ],
        "type": "string"
      },
      "QualityManagementEvaluationRevision": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityManagement": {
            "$ref": "#/components/schemas/QualityManagement"
          },
          "revisionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "result": {
            "$ref": "#/components/schemas/QualityManagementEvaluationResult"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterUserId": {
            "type": "string",
            "format": "uuid"
          },
          "recordedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "artifactReferences": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementEvaluationArtifactReference"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationRevisionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "revisionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "result": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterUserId": {
            "type": "string",
            "format": "uuid"
          },
          "recordedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "artifactIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationViewModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporter": {
            "$ref": "#/components/schemas/QualityManagementUserViewModel"
          },
          "recordedUtc": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementEvaluationWriteInputModel": {
        "type": "object",
        "properties": {
          "result": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "artifactIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementInitializeCopyViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceTemplateVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "sourceQualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "operation": {
            "$ref": "#/components/schemas/QualityManagementTemplateOperationViewModel"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementInitializeInputModel": {
        "type": "object",
        "properties": {
          "templateVersionId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "targetQualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "operationKey": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementMembershipViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "subjectKind": {
            "type": "string",
            "nullable": true
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectName": {
            "type": "string",
            "nullable": true
          },
          "autoGenerated": {
            "type": "boolean"
          },
          "access": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementMembershipWriteEntryInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectKind": {
            "type": "string",
            "nullable": true
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "autoGenerated": {
            "type": "boolean"
          },
          "access": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementMembershipWriteInputModel": {
        "type": "object",
        "properties": {
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementMembershipWriteEntryInputModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementProgressViewModel": {
        "type": "object",
        "properties": {
          "isApplicable": {
            "type": "boolean"
          },
          "completedCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementReportingBreakdownViewModel": {
        "type": "object",
        "properties": {
          "withoutRemarkCount": {
            "type": "integer",
            "format": "int32"
          },
          "withRemarkCount": {
            "type": "integer",
            "format": "int32"
          },
          "notApplicableCount": {
            "type": "integer",
            "format": "int32"
          },
          "unreportedCount": {
            "type": "integer",
            "format": "int32"
          },
          "activeCount": {
            "type": "integer",
            "format": "int32"
          },
          "upcomingCount": {
            "type": "integer",
            "format": "int32"
          },
          "startedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateCreateInputModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "contentRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "publish": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateDefinition": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "legacyRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementTemplateVersion"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateLifecycleState": {
        "enum": [
          "draft",
          "published",
          "retired"
        ],
        "type": "string"
      },
      "QualityManagementTemplateListViewModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementTemplateViewModel"
            },
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateOperationViewModel": {
        "type": "object",
        "properties": {
          "operationId": {
            "type": "string",
            "format": "uuid"
          },
          "commandName": {
            "type": "string",
            "nullable": true
          },
          "operationKey": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "resultQualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "canonicalRequestHash": {
            "type": "string",
            "nullable": true
          },
          "requestCanonicalizationVersion": {
            "type": "string",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "terminalUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateVersion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "templateDefinitionId": {
            "type": "string",
            "format": "uuid"
          },
          "templateDefinition": {
            "$ref": "#/components/schemas/QualityManagementTemplateDefinition"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "lifecycleState": {
            "$ref": "#/components/schemas/QualityManagementTemplateLifecycleState"
          },
          "contentRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "contentRootQualityItem": {
            "$ref": "#/components/schemas/QualityItem"
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "publishedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "retiredUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isContentFrozen": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateVersionCreateInputModel": {
        "type": "object",
        "properties": {
          "contentRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "publish": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateVersionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "templateId": {
            "type": "string",
            "format": "uuid"
          },
          "versionNumber": {
            "type": "integer",
            "format": "int32"
          },
          "lifecycleState": {
            "type": "string",
            "nullable": true
          },
          "contentRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "publishedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "retiredUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTemplateViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "legacyRootQualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdUtc": {
            "type": "string",
            "format": "date-time"
          },
          "changedUtc": {
            "type": "string",
            "format": "date-time"
          },
          "versions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementTemplateVersionViewModel"
            },
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTreeCountsViewModel": {
        "type": "object",
        "properties": {
          "allCount": {
            "type": "integer",
            "format": "int32"
          },
          "canReportCount": {
            "type": "integer",
            "format": "int32"
          },
          "remarkCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportedCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportingTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "myCanReportCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTreeNodeViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "parentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "hasChildren": {
            "type": "boolean"
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "nearestInheritedResponsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nearestInheritedResponsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "goalDefinitionConfirmed": {
            "type": "boolean",
            "nullable": true
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "reported": {
            "type": "boolean"
          },
          "hasRemark": {
            "type": "boolean"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "reporterName": {
            "type": "string",
            "nullable": true
          },
          "reportedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "taskReady": {
            "type": "boolean"
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inheritedStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "effectiveStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDraft": {
            "type": "boolean"
          },
          "isTemplate": {
            "type": "boolean"
          },
          "isContextOnly": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "allowedChildKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "requiresReport": {
            "type": "boolean"
          },
          "canReport": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementTreeSnapshotViewModel": {
        "type": "object",
        "properties": {
          "management": {
            "$ref": "#/components/schemas/QualityManagementViewModel"
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementTreeNodeViewModel"
            },
            "nullable": true
          },
          "rootIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "childrenByParentId": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "nullable": true
            },
            "nullable": true
          },
          "counts": {
            "$ref": "#/components/schemas/QualityManagementTreeCountsViewModel"
          },
          "canEvaluate": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementUserViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityManagementViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityManagementUserViewModel"
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwner": {
            "$ref": "#/components/schemas/QualityManagementUserViewModel"
          },
          "riskAssessmentOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "riskAssessmentOwner": {
            "$ref": "#/components/schemas/QualityManagementUserViewModel"
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityManagementYearViewModel"
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentEvaluation": {
            "$ref": "#/components/schemas/QualityManagementEvaluationViewModel"
          },
          "memberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementMembershipViewModel"
            },
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "evaluated": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "activityLinks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemActivityLinkViewModel"
            },
            "nullable": true
          },
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isGoalDefinitionRequired": {
            "type": "boolean"
          },
          "isRiskAssessmentRequired": {
            "type": "boolean"
          },
          "isEvaluationRequired": {
            "type": "boolean"
          },
          "isAuditRequired": {
            "type": "boolean"
          },
          "isDraft": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "reportingProgress": {
            "$ref": "#/components/schemas/QualityManagementProgressViewModel"
          },
          "riskProgress": {
            "$ref": "#/components/schemas/QualityManagementProgressViewModel"
          },
          "auditProgress": {
            "$ref": "#/components/schemas/QualityManagementProgressViewModel"
          },
          "auditCompleted": {
            "type": "boolean",
            "nullable": true
          },
          "objectiveProgress": {
            "$ref": "#/components/schemas/QualityManagementProgressViewModel"
          },
          "riskItemProgress": {
            "$ref": "#/components/schemas/QualityManagementProgressViewModel"
          },
          "riskAssessmentCompletedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "reportingBreakdown": {
            "$ref": "#/components/schemas/QualityManagementReportingBreakdownViewModel"
          },
          "audits": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementAuditSummaryViewModel"
            },
            "nullable": true
          },
          "reportResolution": {
            "type": "string",
            "nullable": true
          },
          "reportConclusion": {
            "type": "string",
            "nullable": true
          },
          "reportComment": {
            "type": "string",
            "nullable": true
          },
          "reportReporterName": {
            "type": "string",
            "nullable": true
          },
          "reportedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityManagementViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityManagementYearViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "closeDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasExpired": {
            "type": "boolean"
          },
          "isOpen": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityReportingBlockerCountViewModel": {
        "type": "object",
        "properties": {
          "reason": {
            "type": "string",
            "nullable": true
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityReportingBlockerViewModel": {
        "type": "object",
        "properties": {
          "qualityItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "reason": {
            "type": "string",
            "nullable": true
          },
          "hidden": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityReportingSummaryGroupViewModel": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "nullable": true
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "withCurrentReportCount": {
            "type": "integer",
            "format": "int32"
          },
          "withoutCurrentReportCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityReportingSummarySnapshotViewModel": {
        "type": "object",
        "properties": {
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityReportingSummaryGroupViewModel"
            },
            "nullable": true
          },
          "totalItemCount": {
            "type": "integer",
            "format": "int32"
          },
          "withCurrentReportCount": {
            "type": "integer",
            "format": "int32"
          },
          "withoutCurrentReportCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityResponsibilityBatchWriteInputModel": {
        "required": [
          "items"
        ],
        "type": "object",
        "properties": {
          "items": {
            "maxItems": 500,
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityItemVersionInputModel"
            }
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityResponsibilityWriteInputModel": {
        "type": "object",
        "properties": {
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentManagementViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "startedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityRiskAssessmentUserDisplayViewModel"
          },
          "qualityOwnerUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityOwner": {
            "$ref": "#/components/schemas/QualityRiskAssessmentUserDisplayViewModel"
          },
          "isGoalDefinitionRequired": {
            "type": "boolean"
          },
          "isRiskAssessmentRequired": {
            "type": "boolean"
          },
          "isEvaluationRequired": {
            "type": "boolean"
          },
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isDraft": {
            "type": "boolean"
          },
          "evaluated": {
            "type": "boolean"
          },
          "locked": {
            "type": "boolean"
          },
          "taskReady": {
            "type": "boolean"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentObjectiveViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityRiskAssessmentUserDisplayViewModel"
          },
          "goalDefinitionConfirmed": {
            "type": "boolean"
          },
          "goalDisplayStatus": {
            "type": "string",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "riskIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentProgressViewModel": {
        "type": "object",
        "properties": {
          "done": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "mineDone": {
            "type": "integer",
            "format": "int32"
          },
          "mineTotal": {
            "type": "integer",
            "format": "int32"
          },
          "unassigned": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentRiskViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityRiskAssessmentUserDisplayViewModel"
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "resolvedAssessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "displayStatus": {
            "type": "string",
            "nullable": true
          },
          "assessmentComplete": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "inherentScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "inherentGroup": {
            "type": "string",
            "nullable": true
          },
          "residualScore": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "residualGroup": {
            "type": "string",
            "nullable": true
          },
          "hasUnconfirmedParentGoals": {
            "type": "boolean"
          },
          "hasResponses": {
            "type": "boolean"
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "objectiveParentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentSnapshotViewModel": {
        "type": "object",
        "properties": {
          "management": {
            "$ref": "#/components/schemas/QualityRiskAssessmentManagementViewModel"
          },
          "objectives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityRiskAssessmentObjectiveViewModel"
            },
            "nullable": true
          },
          "risks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityRiskAssessmentRiskViewModel"
            },
            "nullable": true
          },
          "objectiveProgress": {
            "$ref": "#/components/schemas/QualityRiskAssessmentProgressViewModel"
          },
          "riskProgress": {
            "$ref": "#/components/schemas/QualityRiskAssessmentProgressViewModel"
          },
          "overallStatus": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskAssessmentUserDisplayViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskDistributionPointViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsibleName": {
            "type": "string",
            "nullable": true
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityRiskDistributionViewModel": {
        "type": "object",
        "properties": {
          "risks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityRiskDistributionPointViewModel"
            },
            "nullable": true
          },
          "boundExceeded": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityScheduleAffectedContextViewModel": {
        "type": "object",
        "properties": {
          "mutatedItemId": {
            "type": "string",
            "format": "uuid"
          },
          "scheduleAffectedItemIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualitySelectableItemViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualitySelectableItemsViewModel": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualitySelectableItemViewModel"
            },
            "nullable": true
          },
          "boundExceeded": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaFilterCountsViewModel": {
        "type": "object",
        "properties": {
          "all": {
            "type": "integer",
            "format": "int32"
          },
          "canReport": {
            "type": "integer",
            "format": "int32"
          },
          "delegated": {
            "type": "integer",
            "format": "int32"
          },
          "blockers": {
            "type": "integer",
            "format": "int32"
          },
          "remarks": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaManagementViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "qualityFrameworkName": {
            "type": "string",
            "nullable": true
          },
          "qualityFrameworkCode": {
            "type": "string",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaNodeViewModel": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "etag": {
            "type": "string",
            "nullable": true
          },
          "hasChildren": {
            "type": "boolean"
          },
          "reported": {
            "type": "boolean"
          },
          "hasRemark": {
            "type": "boolean"
          },
          "taskReady": {
            "type": "boolean"
          },
          "started": {
            "type": "boolean"
          },
          "parentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "responsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "nearestInheritedResponsibleUserId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "nearestInheritedResponsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          },
          "resolution": {
            "type": "string",
            "nullable": true
          },
          "conclusion": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isDelegated": {
            "type": "boolean"
          },
          "isContextOnly": {
            "type": "boolean"
          },
          "probability": {
            "type": "string",
            "nullable": true
          },
          "consequence": {
            "type": "string",
            "nullable": true
          },
          "residualProbability": {
            "type": "string",
            "nullable": true
          },
          "residualConsequence": {
            "type": "string",
            "nullable": true
          },
          "assessmentStatus": {
            "type": "string",
            "nullable": true
          },
          "scheduledStartUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "qualityFrameworkId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "primaryAction": {
            "type": "string",
            "nullable": true
          },
          "isMine": {
            "type": "boolean"
          },
          "requiresReport": {
            "type": "boolean"
          },
          "canReport": {
            "type": "boolean"
          },
          "canPerform": {
            "type": "boolean"
          },
          "isBlocker": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaProgressViewModel": {
        "type": "object",
        "properties": {
          "reportedCount": {
            "type": "integer",
            "format": "int32"
          },
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "readyCount": {
            "type": "integer",
            "format": "int32"
          },
          "waitingCount": {
            "type": "integer",
            "format": "int32"
          },
          "delegatedCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaReportingSummaryViewModel": {
        "type": "object",
        "properties": {
          "allCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportingTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "reportedCount": {
            "type": "integer",
            "format": "int32"
          },
          "myTotalCount": {
            "type": "integer",
            "format": "int32"
          },
          "myRemainingCount": {
            "type": "integer",
            "format": "int32"
          },
          "canPerformCount": {
            "type": "integer",
            "format": "int32"
          },
          "blockerCount": {
            "type": "integer",
            "format": "int32"
          },
          "remarkCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaSettingsViewModel": {
        "type": "object",
        "properties": {
          "reportingRequiredKinds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "isGoalDefinitionRequired": {
            "type": "boolean"
          },
          "isRiskAssessmentRequired": {
            "type": "boolean"
          },
          "isEvaluationRequired": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaTaskRootViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "responsible": {
            "$ref": "#/components/schemas/QualityItemChildUserDisplayViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkAreaViewModel": {
        "type": "object",
        "properties": {
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "taskRootId": {
            "type": "string",
            "format": "uuid"
          },
          "management": {
            "$ref": "#/components/schemas/QualityWorkAreaManagementViewModel"
          },
          "taskRoot": {
            "$ref": "#/components/schemas/QualityWorkAreaTaskRootViewModel"
          },
          "settings": {
            "$ref": "#/components/schemas/QualityWorkAreaSettingsViewModel"
          },
          "rootIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "nodes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityWorkAreaNodeViewModel"
            },
            "nullable": true
          },
          "childrenByParentId": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "uuid"
              },
              "nullable": true
            },
            "nullable": true
          },
          "progress": {
            "$ref": "#/components/schemas/QualityWorkAreaProgressViewModel"
          },
          "filterCounts": {
            "$ref": "#/components/schemas/QualityWorkAreaFilterCountsViewModel"
          },
          "reportingSummary": {
            "$ref": "#/components/schemas/QualityWorkAreaReportingSummaryViewModel"
          },
          "primaryAction": {
            "type": "string",
            "nullable": true
          },
          "reportingGeneration": {
            "type": "integer",
            "format": "int64"
          },
          "etag": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityWorkCategorySummaryViewModel": {
        "type": "object",
        "properties": {
          "remaining": {
            "type": "integer",
            "format": "int32"
          },
          "blockers": {
            "type": "integer",
            "format": "int32"
          },
          "unassigned": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QualityWorkItemViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "workKind": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "label": {
            "type": "string",
            "nullable": true
          },
          "itemKind": {
            "type": "string",
            "nullable": true
          },
          "qualityYearName": {
            "type": "string",
            "nullable": true
          },
          "frameworkName": {
            "type": "string",
            "nullable": true
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "qualityManagementId": {
            "type": "string",
            "format": "uuid"
          },
          "taskRootId": {
            "type": "string",
            "format": "uuid"
          },
          "remaining": {
            "type": "integer",
            "format": "int32"
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "unassigned": {
            "type": "integer",
            "format": "int32"
          },
          "completed": {
            "type": "boolean"
          },
          "reportingComplete": {
            "type": "boolean",
            "nullable": true
          },
          "canPerformCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "blockerCount": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "assessmentTab": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityWorkSnapshotViewModel": {
        "type": "object",
        "properties": {
          "summary": {
            "$ref": "#/components/schemas/QualityWorkSummaryViewModel"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityWorkItemViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QualityWorkSummaryViewModel": {
        "type": "object",
        "properties": {
          "reporting": {
            "$ref": "#/components/schemas/QualityWorkCategorySummaryViewModel"
          },
          "review": {
            "$ref": "#/components/schemas/QualityWorkCategorySummaryViewModel"
          },
          "assessment": {
            "$ref": "#/components/schemas/QualityWorkCategorySummaryViewModel"
          },
          "policies": {
            "$ref": "#/components/schemas/QualityWorkCategorySummaryViewModel"
          }
        },
        "additionalProperties": false
      },
      "QualityYear": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "closeDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "creator": {
            "$ref": "#/components/schemas/User"
          },
          "logEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityYearLogEntry"
            },
            "nullable": true
          },
          "asLoggable": {
            "$ref": "#/components/schemas/QualityYearIAuditLogged"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "hasExpired": {
            "type": "boolean",
            "readOnly": true
          },
          "isCurrent": {
            "type": "boolean",
            "readOnly": true
          },
          "state": {
            "$ref": "#/components/schemas/QualityYearState"
          },
          "isOpen": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QualityYearIAuditLogged": {
        "type": "object",
        "properties": {
          "logEntries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QualityYearLogEntry"
            },
            "nullable": true
          },
          "asLoggable": {
            "$ref": "#/components/schemas/QualityYearIAuditLogged"
          }
        },
        "additionalProperties": false
      },
      "QualityYearInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "QualityYearLogEntry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "action": {
            "type": "string",
            "nullable": true
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "entityType": {
            "type": "string",
            "nullable": true
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "misc": {
            "type": "string",
            "nullable": true
          },
          "entityId": {
            "type": "string",
            "format": "uuid"
          },
          "entity": {
            "$ref": "#/components/schemas/QualityYear"
          }
        },
        "additionalProperties": false
      },
      "QualityYearState": {
        "enum": [
          "undefined",
          "open",
          "closed"
        ],
        "type": "string"
      },
      "QualityYearViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "closeDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasExpired": {
            "type": "boolean"
          },
          "isOpen": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "state": {
            "$ref": "#/components/schemas/QualityYearState"
          }
        },
        "additionalProperties": false
      },
      "Question": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "header": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "measure": {
            "$ref": "#/components/schemas/Measure"
          },
          "improvement": {
            "$ref": "#/components/schemas/Improvement"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnsweringAlternative"
            },
            "nullable": true
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Comment"
            },
            "nullable": true
          },
          "priorityFactor": {
            "$ref": "#/components/schemas/PriorityFactor"
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attachment"
            },
            "nullable": true
          },
          "hasMotivation": {
            "type": "boolean",
            "readOnly": true
          },
          "hasAttachments": {
            "type": "boolean",
            "readOnly": true
          },
          "hasPriorityFactor": {
            "type": "boolean",
            "readOnly": true
          },
          "hasAnswer": {
            "type": "boolean",
            "readOnly": true
          },
          "hasRealAnswer": {
            "type": "boolean",
            "readOnly": true
          },
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnsweringAlternative"
            },
            "nullable": true,
            "readOnly": true
          },
          "isOptional": {
            "type": "boolean"
          },
          "isUnanswered": {
            "type": "boolean"
          },
          "hasSelectedMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "actionCreated": {
            "type": "boolean",
            "readOnly": true
          },
          "hasUnHandledMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "hasMeasureEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "hasMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "hasSelectedImprovement": {
            "type": "boolean",
            "readOnly": true
          },
          "improvementCreated": {
            "type": "boolean",
            "readOnly": true
          },
          "hasUnHandledImprovement": {
            "type": "boolean",
            "readOnly": true
          },
          "hasImprovementEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "hasImprovement": {
            "type": "boolean",
            "readOnly": true
          },
          "requireMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "requireImprovement": {
            "type": "boolean",
            "readOnly": true
          },
          "requireMotivation": {
            "type": "boolean",
            "readOnly": true
          },
          "requireAttachments": {
            "type": "boolean",
            "readOnly": true
          },
          "requirePriorityFactor": {
            "type": "boolean",
            "readOnly": true
          },
          "hasDocumentVerification": {
            "type": "boolean",
            "readOnly": true
          },
          "addToSummary": {
            "type": "boolean"
          },
          "privateComments": {
            "type": "boolean"
          },
          "privateCommentsDefault": {
            "type": "boolean"
          },
          "label": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestionAiSuggestionViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "questionSummary": {
            "type": "string",
            "nullable": true
          },
          "issueExplanation": {
            "type": "string",
            "nullable": true
          },
          "suggestedRephrase": {
            "type": "string",
            "nullable": true
          },
          "focus": {
            "type": "string",
            "nullable": true
          },
          "rawSuggestionJson": {
            "type": "string",
            "nullable": true
          },
          "alternativeSuggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AlternativeAiSuggestionViewModel"
            },
            "nullable": true
          },
          "analytics": {
            "$ref": "#/components/schemas/QuestionAlternativeAnalyticsViewModel"
          }
        },
        "additionalProperties": false
      },
      "QuestionAlternativeAnalyticsViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "questionTitle": {
            "type": "string",
            "nullable": true
          },
          "questionOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "itemStats": {
            "$ref": "#/components/schemas/QuestionItemStatsViewModel"
          },
          "outcomeStats": {
            "$ref": "#/components/schemas/QuestionOutcomeStatsViewModel"
          },
          "alternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnswerAlternativeAnalyticsViewModel"
            },
            "nullable": true
          },
          "matchMetadata": {
            "$ref": "#/components/schemas/QuestionMatchMetadataViewModel"
          }
        },
        "additionalProperties": false
      },
      "QuestionAnswerInputModel": {
        "required": [
          "answeringAlternativeInstanceId",
          "isSelected"
        ],
        "type": "object",
        "properties": {
          "answeringAlternativeInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "isSelected": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QuestionGroup": {
        "type": "object",
        "properties": {
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Question"
            },
            "nullable": true
          },
          "header": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isOptional": {
            "type": "boolean"
          },
          "hasUnHandledMeasure": {
            "type": "boolean",
            "readOnly": true
          },
          "hasMeasureEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "unHandledMeasures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "measures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "allMeasures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "measuresWithEdit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMeasureValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasUnHandledImprovements": {
            "type": "boolean",
            "readOnly": true
          },
          "hasImprovementEdit": {
            "type": "boolean",
            "readOnly": true
          },
          "unHandledImprovements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "improvements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "allImprovements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "improvementsWithEdit": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionImprovementValueTuple"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasDocumentVerification": {
            "type": "boolean",
            "readOnly": true
          },
          "isComplete": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "QuestionGroupInputModel": {
        "type": "object",
        "properties": {
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionInputModel"
            },
            "nullable": true
          },
          "header": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "isOptional": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QuestionGroupViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionViewModel"
            },
            "nullable": true
          },
          "percentage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QuestionImprovementValueTuple": {
        "type": "object",
        "additionalProperties": false
      },
      "QuestionInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/AnsweringType"
          },
          "header": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "measure": {
            "$ref": "#/components/schemas/MeasureInputModel"
          },
          "improvement": {
            "$ref": "#/components/schemas/ImprovementInputModel"
          },
          "comments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommentInputModel"
            },
            "nullable": true
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnsweringAlternativeInputModel"
            },
            "nullable": true
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttachmentInputModel"
            },
            "nullable": true
          },
          "priorityFactor": {
            "$ref": "#/components/schemas/PriorityFactorInputModel"
          },
          "addToSummary": {
            "type": "boolean"
          },
          "privateComments": {
            "type": "boolean"
          },
          "privateCommentsDefault": {
            "type": "boolean"
          },
          "documentVerification": {
            "type": "boolean"
          },
          "isOptional": {
            "type": "boolean"
          },
          "isUnanswered": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "QuestionItemStatsViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "avgPercent": {
            "type": "number",
            "format": "double"
          },
          "stdDevPercent": {
            "type": "number",
            "format": "double"
          },
          "avgPrecision": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "avgRecall": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestionMatchDeviationViewModel": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "affectedAttempts": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QuestionMatchMetadataViewModel": {
        "type": "object",
        "properties": {
          "mode": {
            "$ref": "#/components/schemas/QuestionMatchMode"
          },
          "hasSemanticDeviation": {
            "type": "boolean"
          },
          "totalAttempts": {
            "type": "integer",
            "format": "int32"
          },
          "strictMatches": {
            "type": "integer",
            "format": "int32"
          },
          "driftMatches": {
            "type": "integer",
            "format": "int32"
          },
          "deviations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionMatchDeviationViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestionMatchMode": {
        "enum": [
          "strict",
          "allowSemanticDrift"
        ],
        "type": "string"
      },
      "QuestionMeasureValueTuple": {
        "type": "object",
        "additionalProperties": false
      },
      "QuestionOutcomeStatsViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "attempts": {
            "type": "integer",
            "format": "int32"
          },
          "truePositives": {
            "type": "integer",
            "format": "int32"
          },
          "falsePositives": {
            "type": "integer",
            "format": "int32"
          },
          "falseNegatives": {
            "type": "integer",
            "format": "int32"
          },
          "trueNegatives": {
            "type": "integer",
            "format": "int32"
          },
          "correctRate": {
            "type": "number",
            "format": "double"
          },
          "precision": {
            "type": "number",
            "format": "double"
          },
          "recall": {
            "type": "number",
            "format": "double"
          },
          "accuracy": {
            "type": "number",
            "format": "double"
          },
          "f1": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "QuestionProgressInputModel": {
        "required": [
          "answers",
          "questionInstanceId"
        ],
        "type": "object",
        "properties": {
          "questionInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "answers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionAnswerInputModel"
            }
          }
        },
        "additionalProperties": false
      },
      "QuestionResult": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "score": {
            "$ref": "#/components/schemas/QuestionScore"
          }
        },
        "additionalProperties": false
      },
      "QuestionScore": {
        "type": "object",
        "properties": {
          "precision": {
            "type": "number",
            "format": "double"
          },
          "recall": {
            "type": "number",
            "format": "double"
          },
          "f1": {
            "type": "number",
            "format": "double"
          },
          "percent": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "QuestionState": {
        "enum": [
          "undefined",
          "notAnswered",
          "partiallyCorrect",
          "correct",
          "incorrect"
        ],
        "type": "string"
      },
      "QuestionViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "question": {
            "type": "string",
            "nullable": true
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "percentage": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "total": {
            "type": "integer",
            "format": "int32"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnsweringAlternativeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReportTemplateInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "creatorId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "templateType": {
            "$ref": "#/components/schemas/ReportType"
          },
          "saveAsNew": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "templateSelectors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportTemplateSelectorInputModel"
            },
            "nullable": true
          },
          "qualityActivityIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReportTemplateSelectorInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "selectorIdentifier": {
            "type": "string",
            "nullable": true
          },
          "reportTemplateId": {
            "type": "string",
            "format": "uuid"
          },
          "selectorType": {
            "$ref": "#/components/schemas/SelectorType"
          }
        },
        "additionalProperties": false
      },
      "ReportTemplateSelectorViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "selectorIdentifier": {
            "type": "string",
            "nullable": true
          },
          "selectorType": {
            "$ref": "#/components/schemas/SelectorType"
          }
        },
        "additionalProperties": false
      },
      "ReportTemplateViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "creatorId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "templateType": {
            "$ref": "#/components/schemas/ReportType"
          },
          "isPublic": {
            "type": "boolean"
          },
          "isNew": {
            "type": "boolean"
          },
          "templateSelectors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ReportTemplateSelectorViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ReportType": {
        "enum": [
          "responseReport"
        ],
        "type": "string"
      },
      "ResetKnowledgeTestAttemptResultViewModel": {
        "required": [
          "clearedCompletedUnits",
          "knowledgeTestProgressId",
          "reset"
        ],
        "type": "object",
        "properties": {
          "reset": {
            "type": "boolean"
          },
          "knowledgeTestProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "clearedCompletedUnits": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ResolutionType": {
        "enum": [
          "undefined",
          "done",
          "notApplicable"
        ],
        "type": "string"
      },
      "ResourceAuthorization": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "consumer": {
            "$ref": "#/components/schemas/User"
          },
          "consumerId": {
            "type": "string",
            "format": "uuid"
          },
          "resourceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "consumerAuthorizationClaim": {
            "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
          },
          "consumerAuthorizationClaimId": {
            "type": "string",
            "format": "uuid"
          },
          "authorizationType": {
            "$ref": "#/components/schemas/ResourceAuthorizationType"
          },
          "consumerDerivationType": {
            "$ref": "#/components/schemas/ConsumerDerivationType"
          },
          "resourceType": {
            "$ref": "#/components/schemas/ResourceType"
          }
        },
        "additionalProperties": false
      },
      "ResourceAuthorizationType": {
        "enum": [
          "undefined",
          "read",
          "write",
          "execute",
          "admin"
        ],
        "type": "string"
      },
      "ResourceDerivationType": {
        "enum": [
          "undefined",
          "responsible",
          "reviewer",
          "membership"
        ],
        "type": "string"
      },
      "ResourceType": {
        "enum": [
          "undefined",
          "qualityItem"
        ],
        "type": "string"
      },
      "ResponseDistributionReportViewModel": {
        "type": "object",
        "properties": {
          "questionGroups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionGroupViewModel"
            },
            "nullable": true
          },
          "responseCount": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ResponseReportInputModel": {
        "type": "object",
        "properties": {
          "questionGroups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "subjectForms": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RuntimeFieldHandle": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/IntPtr"
          }
        },
        "additionalProperties": false
      },
      "RuntimeMethodHandle": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/IntPtr"
          }
        },
        "additionalProperties": false
      },
      "RuntimeTypeHandle": {
        "type": "object",
        "properties": {
          "value": {
            "$ref": "#/components/schemas/IntPtr"
          }
        },
        "additionalProperties": false
      },
      "ScoredCourseTrainingProgressViewModel": {
        "required": [
          "isComplete",
          "isPassed",
          "progressPercentage",
          "result",
          "scorePercentage",
          "state"
        ],
        "type": "object",
        "properties": {
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "isComplete": {
            "type": "boolean"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "scorePercentage": {
            "type": "number",
            "format": "double"
          },
          "isPassed": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SecurityRuleSet": {
        "enum": [
          "none",
          "level1",
          "level2"
        ],
        "type": "string"
      },
      "SelectorInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "parentSelectorId": {
            "type": "string",
            "format": "uuid"
          },
          "selectorSourceType": {
            "type": "string",
            "nullable": true
          },
          "sourceId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "SelectorType": {
        "enum": [
          "qualityActivity",
          "form",
          "questionGroup",
          "question",
          "answerAlternative"
        ],
        "type": "string"
      },
      "SelectorViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "parentSelectorId": {
            "type": "string",
            "format": "uuid"
          },
          "selectorSourceType": {
            "type": "string",
            "nullable": true
          },
          "sourceId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "SelfServiceScimSetupViewModel": {
        "type": "object",
        "properties": {
          "enterpriseConnectionId": {
            "type": "string",
            "nullable": true
          },
          "enterpriseConnectionName": {
            "type": "string",
            "nullable": true
          },
          "identityProviderStrategy": {
            "type": "string",
            "nullable": true
          },
          "endpointUrl": {
            "type": "string",
            "nullable": true
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "tokenCreated": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/SelfServiceTicketStatus"
          }
        },
        "additionalProperties": false
      },
      "SelfServiceTicketStatus": {
        "enum": [
          "active",
          "expired",
          "revoked",
          "completed"
        ],
        "type": "string"
      },
      "SelfServiceTicketViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ticketId": {
            "type": "string",
            "nullable": true
          },
          "ticketUrl": {
            "type": "string",
            "nullable": true
          },
          "ticketType": {
            "$ref": "#/components/schemas/EnterpriseConnectionSelfServiceTicketType"
          },
          "enterpriseConnectionId": {
            "type": "string",
            "nullable": true
          },
          "enterpriseConnectionName": {
            "type": "string",
            "nullable": true
          },
          "createdAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAtUtc": {
            "type": "string",
            "format": "date-time"
          },
          "ttlSeconds": {
            "type": "integer",
            "format": "int32"
          },
          "createdBy": {
            "type": "string",
            "nullable": true
          },
          "completedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "revokedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tokenCreatedAtUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/SelfServiceTicketStatus"
          },
          "isActive": {
            "type": "boolean"
          },
          "canRevoke": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SendDailyMailInputModel": {
        "type": "object",
        "properties": {
          "ids": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "all": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SlideParticipationViewModel": {
        "required": [
          "contentMarkdown",
          "ordinal",
          "slideInstanceId",
          "slideProgress"
        ],
        "type": "object",
        "properties": {
          "slideInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "contentMarkdown": {
            "minLength": 1,
            "type": "string"
          },
          "slideProgress": {
            "$ref": "#/components/schemas/SlideProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "SlideProgressViewModel": {
        "required": [
          "id",
          "isViewed",
          "slideInstanceId",
          "slideShowProgressId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "isViewed": {
            "type": "boolean"
          },
          "slideShowProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "slideInstanceId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "SlideShowModuleParticipationViewModel": {
        "required": [
          "allowForceComplete",
          "changedDate",
          "courseTrainingProgress",
          "createdDate",
          "isReadonly",
          "moduleInstanceId",
          "name",
          "ordinal",
          "slides",
          "type"
        ],
        "type": "object",
        "properties": {
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "isReadonly": {
            "type": "boolean"
          },
          "allowForceComplete": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "slides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SlideParticipationViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "SlideShowModuleViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "estimatedHours",
          "id",
          "isPublished",
          "name",
          "ordinal",
          "slides",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "slideCount": {
            "type": "integer",
            "format": "int32"
          },
          "slides": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SlideViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "SlideViewModel": {
        "required": [
          "contentMarkdown",
          "id",
          "ordinal"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "contentMarkdown": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "SortDirection": {
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "StandardBillingCode": {
        "enum": [
          "undefined",
          "qualityActivity",
          "qualityManagement",
          "dataCollection",
          "training",
          "inactiveUsers",
          "onboarding"
        ],
        "type": "string"
      },
      "State": {
        "enum": [
          "created",
          "active",
          "completed",
          "expired"
        ],
        "type": "string"
      },
      "StringValueWithConfidenceViewModel": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StructLayoutAttribute": {
        "type": "object",
        "properties": {
          "typeId": {
            "readOnly": true
          },
          "value": {
            "$ref": "#/components/schemas/LayoutKind"
          }
        },
        "additionalProperties": false
      },
      "SubjectActivityTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "activityElementTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTask"
            },
            "nullable": true
          },
          "activityElementTasksOrdered": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "remainingElementTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "qualityActivityTask": {
            "$ref": "#/components/schemas/QualityActivityTask"
          },
          "qualityActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "actionPlan": {
            "$ref": "#/components/schemas/ActionPlan"
          },
          "actionPlanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "actionPlanSettled": {
            "type": "boolean"
          },
          "improvementPlan": {
            "$ref": "#/components/schemas/ImprovementPlan"
          },
          "improvementPlanId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "improvementPlanSettled": {
            "type": "boolean"
          },
          "halted": {
            "type": "boolean"
          },
          "subjectContext": {
            "$ref": "#/components/schemas/SubjectContext"
          },
          "subjectContextId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "userNotificationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "disableHistory": {
            "type": "boolean"
          },
          "workableTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true,
            "readOnly": true
          },
          "implementors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true,
            "readOnly": true
          },
          "containsFormElement": {
            "type": "boolean",
            "readOnly": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "readOnly": true
          },
          "nextDeadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "currentElement": {
            "$ref": "#/components/schemas/ActivityElementTask"
          },
          "isEligibleForReminder": {
            "type": "boolean",
            "readOnly": true
          },
          "lastElement": {
            "$ref": "#/components/schemas/ActivityElementTask"
          },
          "readOnly": {
            "type": "boolean",
            "readOnly": true
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "approveable": {
            "type": "boolean",
            "readOnly": true
          },
          "isApproved": {
            "type": "boolean",
            "readOnly": true
          },
          "mayGenerateActions": {
            "type": "boolean",
            "readOnly": true
          },
          "isSelfAssessment": {
            "type": "boolean",
            "readOnly": true
          },
          "subject": {
            "$ref": "#/components/schemas/ISubject"
          },
          "isCurrentTask": {
            "type": "boolean",
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "formDocumentWorkables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FormDocumentWorkable"
            },
            "nullable": true,
            "readOnly": true
          },
          "hasDocumentVerification": {
            "type": "boolean",
            "readOnly": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true,
            "readOnly": true
          },
          "reportSyncCheck": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectActivityTaskViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "activityElementTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ActivityElementTaskViewModel"
            },
            "nullable": true
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "nextDeadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "nextReminder": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "currentElement": {
            "$ref": "#/components/schemas/ActivityElementTaskViewModel"
          },
          "lastElement": {
            "$ref": "#/components/schemas/ActivityElementTaskViewModel"
          },
          "subjectIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          },
          "readOnly": {
            "type": "boolean"
          },
          "isApproved": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "approveable": {
            "type": "boolean"
          },
          "qualityActivityTaskName": {
            "type": "string",
            "nullable": true
          },
          "qualityActivityName": {
            "type": "string",
            "nullable": true
          },
          "qualityActivityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectType": {
            "$ref": "#/components/schemas/SubjectType"
          },
          "subject": {
            "$ref": "#/components/schemas/SubjectViewModel"
          },
          "halted": {
            "type": "boolean"
          },
          "initAssignedGroup": {
            "$ref": "#/components/schemas/GroupViewModel"
          },
          "initAssignedGroupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "initAssignedSnapshot": {
            "type": "string",
            "nullable": true
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          },
          "disableHistory": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "SubjectAnsweringAlternativeViewModel": {
        "type": "object",
        "properties": {
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "subjects": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectContext": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "groupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/Group"
          },
          "groupNameSnapshot": {
            "type": "string",
            "nullable": true
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SubjectContextInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "groupNameSnapshot": {
            "type": "string",
            "nullable": true
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectContextViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "groupId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "group": {
            "$ref": "#/components/schemas/GroupViewModel"
          },
          "groupNameSnapshot": {
            "type": "string",
            "nullable": true
          },
          "referenceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectJunction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "workableTask": {
            "$ref": "#/components/schemas/WorkableTask"
          },
          "workableTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "userSubject": {
            "$ref": "#/components/schemas/UserSubject"
          },
          "userSubjectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "groupSubject": {
            "$ref": "#/components/schemas/GroupSubject"
          },
          "groupSubjectId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "SubjectReportInputModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "formDocumentId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectForms": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectReportRequestInputModel": {
        "type": "object",
        "properties": {
          "subjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SelectorInputModel"
            },
            "nullable": true
          },
          "qualityActivitySourceId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "SubjectResponseReportViewModel": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectAnsweringAlternativeViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectType": {
        "enum": [
          "undefined",
          "group",
          "user"
        ],
        "type": "string"
      },
      "SubjectViewModel": {
        "required": [
          "id",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubjectViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SubjectViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubmitArticleProgressResult": {
        "required": [
          "courseTrainingProgress"
        ],
        "type": "object",
        "properties": {
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "SubmitSlideProgressResult": {
        "required": [
          "courseTrainingProgress"
        ],
        "type": "object",
        "properties": {
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "SubmitTestQuestionProgressResult": {
        "required": [
          "courseTrainingProgress",
          "question"
        ],
        "type": "object",
        "properties": {
          "question": {
            "$ref": "#/components/schemas/KnowledgeTestQuestionParticipationViewModel"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/ScoredCourseTrainingProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "SubmitVideoProgressResult": {
        "type": "object",
        "properties": {
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "watchedPercentage": {
            "type": "number",
            "format": "double"
          },
          "highestContinuousSecond": {
            "type": "number",
            "format": "double"
          },
          "lastKnownPositionSeconds": {
            "type": "number",
            "format": "double"
          },
          "isWatchComplete": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "Tag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "$ref": "#/components/schemas/TagType"
          },
          "tagged": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaggableEntity"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TagInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "type": "string",
            "nullable": true
          },
          "type": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TagType": {
        "enum": [
          "USER",
          "GROUP"
        ],
        "type": "string"
      },
      "TagViewModel": {
        "required": [
          "changedDate",
          "color",
          "createdDate",
          "id",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "color": {
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/TagType"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TagViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaggableEntity": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskBundleViewModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "taskType": {
            "$ref": "#/components/schemas/TaskType"
          },
          "taskRootId": {
            "type": "string",
            "format": "uuid"
          },
          "taskVariant": {
            "$ref": "#/components/schemas/TaskVariant"
          },
          "subject": {
            "$ref": "#/components/schemas/SubjectViewModel"
          },
          "milestones": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MilestoneViewModel"
            },
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskViewModel"
            },
            "nullable": true
          },
          "state": {
            "$ref": "#/components/schemas/State"
          },
          "hasExpired": {
            "type": "boolean",
            "readOnly": true
          },
          "isCompleted": {
            "type": "boolean",
            "readOnly": true
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedBy": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "completedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subjectContext": {
            "$ref": "#/components/schemas/SubjectContextViewModel"
          },
          "canPerform": {
            "type": "boolean"
          },
          "qualityYear": {
            "$ref": "#/components/schemas/QualityYearViewModel"
          }
        },
        "additionalProperties": false
      },
      "TaskBundleViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskBundleViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskLogEventStatus": {
        "enum": [
          "failure",
          "success",
          "disabled",
          "started"
        ],
        "type": "string"
      },
      "TaskLogExceptionViewModel": {
        "type": "object",
        "properties": {
          "innerException": {
            "$ref": "#/components/schemas/TaskLogExceptionViewModel"
          },
          "message": {
            "type": "string",
            "nullable": true
          },
          "source": {
            "type": "string",
            "nullable": true
          },
          "stackTrace": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskResultViewModel": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskViewModel"
            },
            "nullable": true
          },
          "activeCount": {
            "type": "integer",
            "format": "int32"
          },
          "expiredCount": {
            "type": "integer",
            "format": "int32"
          },
          "nextDeadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TaskSettingsViewModel": {
        "type": "object",
        "properties": {
          "schedule": {
            "type": "string",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "skipOnStartup": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TaskType": {
        "enum": [
          "undefined",
          "collection",
          "qualityActivity",
          "actionPlan",
          "qualityManagement",
          "improvementPlan",
          "training",
          "policy"
        ],
        "type": "string"
      },
      "TaskVariant": {
        "enum": [
          "none",
          "report",
          "review",
          "element",
          "confirm",
          "riskAssessment",
          "evaluation",
          "audit",
          "policyAcknowledgement"
        ],
        "type": "string"
      },
      "TaskViewModel": {
        "required": [
          "id",
          "name",
          "state",
          "taskRootId",
          "taskType",
          "taskVariant"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "taskType": {
            "$ref": "#/components/schemas/TaskType"
          },
          "taskRootId": {
            "type": "string",
            "format": "uuid"
          },
          "taskVariant": {
            "$ref": "#/components/schemas/TaskVariant"
          },
          "deadline": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subject": {
            "$ref": "#/components/schemas/SubjectViewModel"
          },
          "state": {
            "$ref": "#/components/schemas/State"
          },
          "isActive": {
            "type": "boolean"
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "hasExpired": {
            "type": "boolean",
            "readOnly": true
          },
          "isCompleted": {
            "type": "boolean",
            "readOnly": true
          },
          "isCreated": {
            "type": "boolean",
            "readOnly": true
          },
          "canPerform": {
            "type": "boolean"
          },
          "isCurrent": {
            "type": "boolean"
          },
          "implementor": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "subjectContext": {
            "$ref": "#/components/schemas/SubjectContextViewModel"
          }
        },
        "additionalProperties": false
      },
      "TenantViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "subdomain": {
            "type": "string",
            "nullable": true
          },
          "loginConnection": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TestScore": {
        "type": "object",
        "properties": {
          "totalPercent": {
            "type": "integer",
            "format": "int32"
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionResult"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Title": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            },
            "nullable": true
          },
          "trainingRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrainingRequirement"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TitleInputModel": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TitleViewModel": {
        "required": [
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "count": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "TitleViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TitleViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordBatchInputModel": {
        "required": [
          "record"
        ],
        "type": "object",
        "properties": {
          "record": {
            "$ref": "#/components/schemas/TrainingRecordInputModel"
          },
          "userIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordCertificateExtractionViewModel": {
        "type": "object",
        "properties": {
          "trainingName": {
            "$ref": "#/components/schemas/StringValueWithConfidenceViewModel"
          },
          "date": {
            "$ref": "#/components/schemas/DateTimeNullableValueWithConfidenceViewModel"
          },
          "hours": {
            "$ref": "#/components/schemas/DecimalNullableValueWithConfidenceViewModel"
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrainingRecordCertificateParticipantExtractionViewModel"
            },
            "nullable": true
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordCertificateParticipantExtractionViewModel": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "confidence": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordInputModel": {
        "required": [
          "date",
          "hours",
          "isVerifiable",
          "trainingName"
        ],
        "type": "object",
        "properties": {
          "trainingName": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "hours": {
            "maximum": 1000,
            "minimum": 0.1,
            "type": "number",
            "format": "double"
          },
          "courseContent": {
            "type": "string",
            "nullable": true
          },
          "isVerifiable": {
            "type": "boolean"
          },
          "certificateUrl": {
            "type": "string",
            "nullable": true
          },
          "certificateContent": {
            "type": "string",
            "nullable": true
          },
          "certificateFileName": {
            "type": "string",
            "nullable": true
          },
          "certificateContentType": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "recordedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordStatsViewModel": {
        "required": [
          "currentYearTotalHours",
          "currentYearVerifiableHours",
          "totalHours",
          "verifiableHours"
        ],
        "type": "object",
        "properties": {
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "verifiableHours": {
            "type": "number",
            "format": "double"
          },
          "currentYearTotalHours": {
            "type": "number",
            "format": "double"
          },
          "currentYearVerifiableHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TrainingRecordViewModel": {
        "required": [
          "courseName",
          "createdDate",
          "date",
          "hours",
          "id",
          "isVerifiable",
          "userId"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "courseId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseInstanceId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "courseName": {
            "minLength": 1,
            "type": "string"
          },
          "date": {
            "type": "string",
            "format": "date-time"
          },
          "hours": {
            "type": "number",
            "format": "double"
          },
          "courseContent": {
            "type": "string",
            "nullable": true
          },
          "isVerifiable": {
            "type": "boolean"
          },
          "certificateUrl": {
            "type": "string",
            "nullable": true
          },
          "hasCertificate": {
            "type": "boolean"
          },
          "certificateFileName": {
            "type": "string",
            "nullable": true
          },
          "certificateContentType": {
            "type": "string",
            "nullable": true
          },
          "outcome": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "recordedByName": {
            "type": "string",
            "nullable": true
          },
          "recordedById": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "titles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Title"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirementInputModel": {
        "required": [
          "name",
          "titleIds",
          "totalHoursRequired",
          "verifiableHoursRequired"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "titleIds": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "totalHoursRequired": {
            "maximum": 10000,
            "minimum": 1,
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "maximum": 10000,
            "minimum": 0,
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirementListViewModel": {
        "required": [
          "id",
          "name",
          "titleIds",
          "titles",
          "totalHoursRequired",
          "verifiableHoursRequired"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "titleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirementProgressItemViewModel": {
        "required": [
          "progressPercentage",
          "requirementId",
          "requirementName",
          "requirementStatus",
          "titles",
          "totalHoursCompleted",
          "totalHoursRequired",
          "verifiableHoursCompleted",
          "verifiableHoursRequired"
        ],
        "type": "object",
        "properties": {
          "requirementId": {
            "type": "string",
            "format": "uuid"
          },
          "requirementName": {
            "minLength": 1,
            "type": "string"
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "totalHoursCompleted": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursCompleted": {
            "type": "number",
            "format": "double"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          },
          "requirementStatus": {
            "$ref": "#/components/schemas/TrainingRequirementStatus"
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirementStatsViewModel": {
        "type": "object",
        "properties": {
          "requirementName": {
            "type": "string",
            "nullable": true
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "totalHoursCompleted": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "verifiableHoursCompleted": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "progressPercentage": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "requirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrainingRequirementProgressItemViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TrainingRequirementStatus": {
        "enum": [
          "noRequirements",
          "notMet",
          "met"
        ],
        "type": "string"
      },
      "TrainingRequirementViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "id",
          "name",
          "titleIds",
          "titles",
          "totalHoursRequired",
          "verifiableHoursRequired"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "titleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "totalHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "verifiableHoursRequired": {
            "type": "number",
            "format": "double"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "Type": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "namespace": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "assemblyQualifiedName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "assembly": {
            "$ref": "#/components/schemas/Assembly"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "isInterface": {
            "type": "boolean",
            "readOnly": true
          },
          "isNested": {
            "type": "boolean",
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "declaringMethod": {
            "$ref": "#/components/schemas/MethodBase"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "underlyingSystemType": {
            "$ref": "#/components/schemas/Type"
          },
          "isTypeDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "isArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isByRef": {
            "type": "boolean",
            "readOnly": true
          },
          "isPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructedGenericType": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericTypeParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethodParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericType": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericTypeDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "isSZArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isVariableBoundArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isByRefLike": {
            "type": "boolean",
            "readOnly": true
          },
          "isFunctionPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "isUnmanagedFunctionPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "hasElementType": {
            "type": "boolean",
            "readOnly": true
          },
          "genericTypeArguments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            },
            "nullable": true,
            "readOnly": true
          },
          "genericParameterPosition": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "genericParameterAttributes": {
            "$ref": "#/components/schemas/GenericParameterAttributes"
          },
          "attributes": {
            "$ref": "#/components/schemas/TypeAttributes"
          },
          "isAbstract": {
            "type": "boolean",
            "readOnly": true
          },
          "isImport": {
            "type": "boolean",
            "readOnly": true
          },
          "isSealed": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamANDAssem": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamORAssem": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isNotPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isAutoLayout": {
            "type": "boolean",
            "readOnly": true
          },
          "isExplicitLayout": {
            "type": "boolean",
            "readOnly": true
          },
          "isLayoutSequential": {
            "type": "boolean",
            "readOnly": true
          },
          "isAnsiClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isAutoClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isUnicodeClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isCOMObject": {
            "type": "boolean",
            "readOnly": true
          },
          "isContextful": {
            "type": "boolean",
            "readOnly": true
          },
          "isEnum": {
            "type": "boolean",
            "readOnly": true
          },
          "isMarshalByRef": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrimitive": {
            "type": "boolean",
            "readOnly": true
          },
          "isValueType": {
            "type": "boolean",
            "readOnly": true
          },
          "isSignatureType": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          },
          "structLayoutAttribute": {
            "$ref": "#/components/schemas/StructLayoutAttribute"
          },
          "typeInitializer": {
            "$ref": "#/components/schemas/ConstructorInfo"
          },
          "typeHandle": {
            "$ref": "#/components/schemas/RuntimeTypeHandle"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "baseType": {
            "$ref": "#/components/schemas/Type"
          },
          "isSerializable": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          },
          "containsGenericParameters": {
            "type": "boolean",
            "readOnly": true
          },
          "isVisible": {
            "type": "boolean",
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "TypeAttributes": {
        "enum": [
          "notPublic",
          "public",
          "nestedPublic",
          "nestedPrivate",
          "nestedFamily",
          "nestedAssembly",
          "nestedFamANDAssem",
          "visibilityMask",
          "sequentialLayout",
          "explicitLayout",
          "layoutMask",
          "interface",
          "abstract",
          "sealed",
          "specialName",
          "rTSpecialName",
          "import",
          "serializable",
          "windowsRuntime",
          "unicodeClass",
          "autoClass",
          "stringFormatMask",
          "hasSecurity",
          "reservedMask",
          "beforeFieldInit",
          "customFormatMask"
        ],
        "type": "string"
      },
      "TypeInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "customAttributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomAttributeData"
            },
            "nullable": true,
            "readOnly": true
          },
          "isCollectible": {
            "type": "boolean",
            "readOnly": true
          },
          "metadataToken": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "memberType": {
            "$ref": "#/components/schemas/MemberTypes"
          },
          "namespace": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "assemblyQualifiedName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "fullName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "assembly": {
            "$ref": "#/components/schemas/Assembly"
          },
          "module": {
            "$ref": "#/components/schemas/Module"
          },
          "isInterface": {
            "type": "boolean",
            "readOnly": true
          },
          "isNested": {
            "type": "boolean",
            "readOnly": true
          },
          "declaringType": {
            "$ref": "#/components/schemas/Type"
          },
          "declaringMethod": {
            "$ref": "#/components/schemas/MethodBase"
          },
          "reflectedType": {
            "$ref": "#/components/schemas/Type"
          },
          "underlyingSystemType": {
            "$ref": "#/components/schemas/Type"
          },
          "isTypeDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "isArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isByRef": {
            "type": "boolean",
            "readOnly": true
          },
          "isPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "isConstructedGenericType": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericTypeParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericMethodParameter": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericType": {
            "type": "boolean",
            "readOnly": true
          },
          "isGenericTypeDefinition": {
            "type": "boolean",
            "readOnly": true
          },
          "isSZArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isVariableBoundArray": {
            "type": "boolean",
            "readOnly": true
          },
          "isByRefLike": {
            "type": "boolean",
            "readOnly": true
          },
          "isFunctionPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "isUnmanagedFunctionPointer": {
            "type": "boolean",
            "readOnly": true
          },
          "hasElementType": {
            "type": "boolean",
            "readOnly": true
          },
          "genericTypeArguments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            },
            "nullable": true,
            "readOnly": true
          },
          "genericParameterPosition": {
            "type": "integer",
            "format": "int32",
            "readOnly": true
          },
          "genericParameterAttributes": {
            "$ref": "#/components/schemas/GenericParameterAttributes"
          },
          "attributes": {
            "$ref": "#/components/schemas/TypeAttributes"
          },
          "isAbstract": {
            "type": "boolean",
            "readOnly": true
          },
          "isImport": {
            "type": "boolean",
            "readOnly": true
          },
          "isSealed": {
            "type": "boolean",
            "readOnly": true
          },
          "isSpecialName": {
            "type": "boolean",
            "readOnly": true
          },
          "isClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedAssembly": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamANDAssem": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamily": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedFamORAssem": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedPrivate": {
            "type": "boolean",
            "readOnly": true
          },
          "isNestedPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isNotPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isPublic": {
            "type": "boolean",
            "readOnly": true
          },
          "isAutoLayout": {
            "type": "boolean",
            "readOnly": true
          },
          "isExplicitLayout": {
            "type": "boolean",
            "readOnly": true
          },
          "isLayoutSequential": {
            "type": "boolean",
            "readOnly": true
          },
          "isAnsiClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isAutoClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isUnicodeClass": {
            "type": "boolean",
            "readOnly": true
          },
          "isCOMObject": {
            "type": "boolean",
            "readOnly": true
          },
          "isContextful": {
            "type": "boolean",
            "readOnly": true
          },
          "isEnum": {
            "type": "boolean",
            "readOnly": true
          },
          "isMarshalByRef": {
            "type": "boolean",
            "readOnly": true
          },
          "isPrimitive": {
            "type": "boolean",
            "readOnly": true
          },
          "isValueType": {
            "type": "boolean",
            "readOnly": true
          },
          "isSignatureType": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecuritySafeCritical": {
            "type": "boolean",
            "readOnly": true
          },
          "isSecurityTransparent": {
            "type": "boolean",
            "readOnly": true
          },
          "structLayoutAttribute": {
            "$ref": "#/components/schemas/StructLayoutAttribute"
          },
          "typeInitializer": {
            "$ref": "#/components/schemas/ConstructorInfo"
          },
          "typeHandle": {
            "$ref": "#/components/schemas/RuntimeTypeHandle"
          },
          "guid": {
            "type": "string",
            "format": "uuid",
            "readOnly": true
          },
          "baseType": {
            "$ref": "#/components/schemas/Type"
          },
          "isSerializable": {
            "type": "boolean",
            "readOnly": true,
            "deprecated": true
          },
          "containsGenericParameters": {
            "type": "boolean",
            "readOnly": true
          },
          "isVisible": {
            "type": "boolean",
            "readOnly": true
          },
          "genericTypeParameters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredConstructors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConstructorInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredEvents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EventInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredMembers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MemberInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MethodInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredNestedTypes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TypeInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "declaredProperties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PropertyInfo"
            },
            "nullable": true,
            "readOnly": true
          },
          "implementedInterfaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "UnlockCoursePartResultViewModel": {
        "required": [
          "courseReopened",
          "isCourseComplete",
          "progressPercentage",
          "result",
          "state",
          "trainingRecordDeleted",
          "unlocked",
          "unlockedCancelledModules",
          "unlockedCompletedModules"
        ],
        "type": "object",
        "properties": {
          "unlocked": {
            "type": "boolean"
          },
          "unlockedCancelledModules": {
            "type": "integer",
            "format": "int32"
          },
          "unlockedCompletedModules": {
            "type": "integer",
            "format": "int32"
          },
          "courseReopened": {
            "type": "boolean"
          },
          "trainingRecordDeleted": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "UnlockCourseParticipationResultViewModel": {
        "required": [
          "courseProgressId",
          "trainingRecordDeleted",
          "unlocked"
        ],
        "type": "object",
        "properties": {
          "unlocked": {
            "type": "boolean"
          },
          "courseProgressId": {
            "type": "string",
            "format": "uuid"
          },
          "trainingRecordDeleted": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UnlockModuleResultViewModel": {
        "required": [
          "courseReopened",
          "isCourseComplete",
          "progressPercentage",
          "result",
          "state",
          "trainingRecordDeleted",
          "unlocked",
          "wasCancelled",
          "wasCompleted"
        ],
        "type": "object",
        "properties": {
          "unlocked": {
            "type": "boolean"
          },
          "wasCancelled": {
            "type": "boolean"
          },
          "wasCompleted": {
            "type": "boolean"
          },
          "courseReopened": {
            "type": "boolean"
          },
          "trainingRecordDeleted": {
            "type": "boolean"
          },
          "isCourseComplete": {
            "type": "boolean"
          },
          "result": {
            "$ref": "#/components/schemas/CourseResult"
          },
          "state": {
            "$ref": "#/components/schemas/CourseState"
          },
          "progressPercentage": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "UpdateArticleContentInputModel": {
        "required": [
          "contentMarkdown"
        ],
        "type": "object",
        "properties": {
          "contentMarkdown": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateArticleContentResult": {
        "required": [
          "articleModuleId"
        ],
        "type": "object",
        "properties": {
          "articleModuleId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseDetailsInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "allowManualRecordRegistration": {
            "type": "boolean"
          },
          "allowEditOnManualRegistration": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseDetailsResult": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "allowManualRecordRegistration": {
            "type": "boolean"
          },
          "allowEditOnManualRegistration": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseInstanceInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseInstanceResult": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "qualityYearId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseInstructionsInputModel": {
        "type": "object",
        "properties": {
          "markdown": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseModuleDetailsInputModel": {
        "required": [
          "estimatedHours",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseModuleDetailsResult": {
        "required": [
          "courseModuleId",
          "estimatedHours",
          "name",
          "type"
        ],
        "type": "object",
        "properties": {
          "courseModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "UpdateCoursePartInputModel": {
        "required": [
          "name"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UpdateCoursePartResult": {
        "type": "object",
        "properties": {
          "coursePartId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCourseParticipantReferenceIdInputModel": {
        "type": "object",
        "properties": {
          "referenceId": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateCustomerBillingInformationInputModel": {
        "required": [
          "fortnoxCustomerNumber",
          "invoiceIntervalMonths",
          "invoiceStartDate"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "fortnoxCustomerNumber": {
            "minLength": 1,
            "type": "string"
          },
          "invoiceIntervalMonths": {
            "type": "integer",
            "format": "int32"
          },
          "billingItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomerBillingItemInputModel"
            },
            "nullable": true
          },
          "customerCountry": {
            "$ref": "#/components/schemas/CustomerMarket"
          },
          "invoiceStartDate": {
            "type": "string",
            "format": "date-time"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "pauseInvoiceGeneration": {
            "type": "boolean",
            "nullable": true
          },
          "appendInvoiceIntervalToInvoiceNote": {
            "type": "boolean"
          },
          "note": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateKnowledgeTestQuestionInputModel": {
        "required": [
          "answeringAlternatives",
          "answeringType",
          "ordinal",
          "shuffleAlternatives",
          "title"
        ],
        "type": "object",
        "properties": {
          "title": {
            "minLength": 1,
            "type": "string"
          },
          "feedbackMarkdown": {
            "type": "string",
            "nullable": true
          },
          "answeringType": {
            "$ref": "#/components/schemas/KnowledgeAnsweringType"
          },
          "shuffleAlternatives": {
            "type": "boolean"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeInputModel"
            }
          }
        },
        "additionalProperties": false
      },
      "UpdateKnowledgeTestQuestionResult": {
        "required": [
          "answeringAlternatives",
          "knowledgeTestModuleId",
          "ordinal",
          "questionId"
        ],
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "format": "uuid"
          },
          "knowledgeTestModuleId": {
            "type": "string",
            "format": "uuid"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "answeringAlternatives": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnowledgeTestAnswerAlternativeViewModel"
            }
          }
        },
        "additionalProperties": false
      },
      "UpdateLanguageRequest": {
        "type": "object",
        "properties": {
          "languageCode": {
            "$ref": "#/components/schemas/LanguageCode"
          }
        },
        "additionalProperties": false
      },
      "UpdateSlideShowSlideInputModel": {
        "required": [
          "contentMarkdown"
        ],
        "type": "object",
        "properties": {
          "contentMarkdown": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateSlideShowSlideResult": {
        "required": [
          "slideId",
          "slideShowModuleId"
        ],
        "type": "object",
        "properties": {
          "slideId": {
            "type": "string",
            "format": "uuid"
          },
          "slideShowModuleId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateVideoDescriptionInputModel": {
        "type": "object",
        "properties": {
          "descriptionMarkdown": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateVideoDescriptionResult": {
        "required": [
          "videoModuleId"
        ],
        "type": "object",
        "properties": {
          "videoModuleId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateVideoModuleSourceInputModel": {
        "required": [
          "mediaLibraryItemId"
        ],
        "type": "object",
        "properties": {
          "mediaLibraryItemId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateVideoModuleSourceResult": {
        "required": [
          "videoModuleId"
        ],
        "type": "object",
        "properties": {
          "videoModuleId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UpdateVideoProgressInputModel": {
        "required": [
          "currentTimeSeconds",
          "durationSeconds"
        ],
        "type": "object",
        "properties": {
          "currentTimeSeconds": {
            "type": "number",
            "format": "double"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double"
          },
          "isEnded": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "User": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Tag"
            },
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "customer": {
            "$ref": "#/components/schemas/Customer"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "email": {
            "maxLength": 450,
            "type": "string",
            "nullable": true
          },
          "identityProviderId": {
            "maxLength": 450,
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "lastLoginDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "isActive": {
            "type": "boolean"
          },
          "isSystemUser": {
            "type": "boolean"
          },
          "isEnterpriseManaged": {
            "type": "boolean"
          },
          "isAdministrator": {
            "type": "boolean"
          },
          "isInspector": {
            "type": "boolean"
          },
          "languageCode": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupMembership"
            },
            "nullable": true
          },
          "qualityManagementMemberships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Membership"
            },
            "nullable": true
          },
          "reviewerOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true
          },
          "secondaryReviewerOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true
          },
          "responsibleOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true
          },
          "indirectResponsibleOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDataCollectionInstance"
            },
            "nullable": true
          },
          "collectionCreations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupDataCollection"
            },
            "nullable": true
          },
          "titles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Title"
            },
            "nullable": true
          },
          "implementorTasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkableTask"
            },
            "nullable": true
          },
          "qualityActivitySubjections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserSubject"
            },
            "nullable": true
          },
          "resourceAuthorizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResourceAuthorization"
            },
            "nullable": true
          },
          "consumerAuthorizationClaims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConsumerAuthorizationClaim"
            },
            "nullable": true
          },
          "latestTaskNotificationCompletion": {
            "type": "string",
            "format": "date-time"
          },
          "latestTaskNotificationInit": {
            "type": "string",
            "format": "date-time"
          },
          "needsSync": {
            "type": "boolean"
          },
          "allResponsibleOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true,
            "readOnly": true
          },
          "allReviewerOf": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            },
            "nullable": true,
            "readOnly": true
          },
          "isSysAdmin": {
            "type": "boolean",
            "readOnly": true
          },
          "isAdmin": {
            "type": "boolean",
            "readOnly": true
          },
          "isGroupResponsible": {
            "type": "boolean",
            "readOnly": true
          },
          "isGroupReviewer": {
            "type": "boolean",
            "readOnly": true
          },
          "isUser": {
            "type": "boolean",
            "readOnly": true
          },
          "latestRegisterUpdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          },
          "subjectName": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "subjectType": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "UserDataCollectionInstance": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectable": {
            "$ref": "#/components/schemas/User"
          },
          "collectableId": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollectionUnit": {
            "$ref": "#/components/schemas/GroupDataCollectionUnit"
          },
          "groupDataCollectionUnitId": {
            "type": "string",
            "format": "uuid"
          },
          "responsible": {
            "$ref": "#/components/schemas/User"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "removedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "addedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UserDataCollectionInstanceViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "collectableId": {
            "type": "string",
            "format": "uuid"
          },
          "groupDataCollectionUnit": {
            "$ref": "#/components/schemas/GroupDataCollectionUnitViewModel"
          },
          "groupDataCollectionUnitId": {
            "type": "string",
            "format": "uuid"
          },
          "responsibleId": {
            "type": "string",
            "format": "uuid"
          },
          "responsible": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "collectedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collected": {
            "type": "boolean"
          },
          "removedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "addedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "updatedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "inactivated": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/CollectionStatus"
          },
          "collectable": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "parentId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UserIdentityProfileListSummaryViewModel": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "customerAllowsPasswordLogin": {
            "type": "boolean",
            "nullable": true
          },
          "customerAllowsPasswordlessLogin": {
            "type": "boolean",
            "nullable": true
          },
          "customerAllowsEnterpriseSso": {
            "type": "boolean",
            "nullable": true
          },
          "customerRequiresMfaForPasswordLogin": {
            "type": "boolean",
            "nullable": true
          },
          "hasPasswordConnection": {
            "type": "boolean",
            "nullable": true
          },
          "hasPasswordlessConnection": {
            "type": "boolean",
            "nullable": true
          },
          "identityProviderLastSyncedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserImplementorMapViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityElementId": {
            "type": "string",
            "format": "uuid"
          },
          "implementorRole": {
            "$ref": "#/components/schemas/ImplementorRole"
          },
          "implementor": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "context": {
            "$ref": "#/components/schemas/SubjectContextViewModel"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "subject": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UserInputModel": {
        "required": [
          "email",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagInputModel"
            },
            "nullable": true
          },
          "tagIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "titles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TitleInputModel"
            },
            "nullable": true
          },
          "titleIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            },
            "nullable": true,
            "readOnly": true
          },
          "groupIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DbEntityInputModel"
            },
            "nullable": true
          },
          "deletedGroupIds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DbEntityInputModel"
            },
            "nullable": true
          },
          "isAdministrator": {
            "type": "boolean"
          },
          "isInspector": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DataCollectionInstanceInputModel"
            },
            "nullable": true
          },
          "languageCode": {
            "$ref": "#/components/schemas/LanguageCode"
          }
        },
        "additionalProperties": false
      },
      "UserRole": {
        "enum": [
          "sysAdmin",
          "admin",
          "groupResponsible",
          "groupReviewer",
          "user",
          "inspector",
          "qualityManagement"
        ],
        "type": "string"
      },
      "UserSubject": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "subject": {
            "$ref": "#/components/schemas/User"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "UserSubjectWithContextInputModel": {
        "type": "object",
        "properties": {
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "identifier": {
            "type": "string",
            "nullable": true
          },
          "context": {
            "$ref": "#/components/schemas/SubjectContextInputModel"
          }
        },
        "additionalProperties": false
      },
      "UserTrainingRecordsSummaryViewModel": {
        "required": [
          "recordCount",
          "requirementStatus",
          "totalHours",
          "userEmail",
          "userId",
          "userName",
          "verifiableHours"
        ],
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "format": "uuid"
          },
          "userName": {
            "minLength": 1,
            "type": "string"
          },
          "userEmail": {
            "minLength": 1,
            "type": "string"
          },
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "totalHours": {
            "type": "number",
            "format": "double"
          },
          "verifiableHours": {
            "type": "number",
            "format": "double"
          },
          "recordCount": {
            "type": "integer",
            "format": "int32"
          },
          "lastRecordDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "trainingRequirements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TrainingRequirementProgressItemViewModel"
            },
            "nullable": true
          },
          "requirementStatus": {
            "$ref": "#/components/schemas/TrainingRequirementStatus"
          }
        },
        "additionalProperties": false
      },
      "UserTrainingRecordsSummaryViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserTrainingRecordsSummaryViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UserViewModel": {
        "required": [
          "email",
          "id",
          "name"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "minLength": 1,
            "type": "string"
          },
          "lastLoginDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "groupSelectors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GroupSelectorViewModel"
            },
            "nullable": true
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TagViewModel"
            },
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserRole"
            },
            "nullable": true
          },
          "customGroupRoles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomGroupRoleViewModel"
            },
            "nullable": true
          },
          "isFixedGroupResponsible": {
            "type": "boolean"
          },
          "isAdministrator": {
            "type": "boolean"
          },
          "isInspector": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean"
          },
          "isSystemUser": {
            "type": "boolean"
          },
          "hasIdentityProvider": {
            "type": "boolean"
          },
          "identityProviderId": {
            "type": "string",
            "nullable": true
          },
          "isEnterpriseManaged": {
            "type": "boolean"
          },
          "customerAllowsPasswordLogin": {
            "type": "boolean",
            "nullable": true
          },
          "customerAllowsPasswordlessLogin": {
            "type": "boolean",
            "nullable": true
          },
          "customerAllowsEnterpriseSso": {
            "type": "boolean",
            "nullable": true
          },
          "customerRequiresMfaForPasswordLogin": {
            "type": "boolean",
            "nullable": true
          },
          "hasPasswordConnection": {
            "type": "boolean",
            "nullable": true
          },
          "hasPasswordlessConnection": {
            "type": "boolean",
            "nullable": true
          },
          "identityProviderLastSyncedUtc": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "collections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserDataCollectionInstanceViewModel"
            },
            "nullable": true
          },
          "titles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TitleViewModel"
            },
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "latestRegisterUpdate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "languageCode": {
            "$ref": "#/components/schemas/LanguageCode"
          }
        },
        "additionalProperties": false
      },
      "UserViewModelPagingDto": {
        "type": "object",
        "properties": {
          "totalCount": {
            "type": "integer",
            "format": "int32"
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserViewModel"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ValidationMessage": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "nullable": true
          },
          "parameters": { }
        },
        "additionalProperties": false
      },
      "VideoModuleParticipationViewModel": {
        "required": [
          "allowForceComplete",
          "changedDate",
          "courseTrainingProgress",
          "createdDate",
          "isReadonly",
          "mediaLibraryItemId",
          "moduleInstanceId",
          "name",
          "ordinal",
          "progress",
          "type"
        ],
        "type": "object",
        "properties": {
          "moduleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "courseTrainingProgress": {
            "$ref": "#/components/schemas/CourseTrainingProgressViewModel"
          },
          "isReadonly": {
            "type": "boolean"
          },
          "allowForceComplete": {
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "mediaLibraryItemId": {
            "type": "string",
            "format": "uuid"
          },
          "descriptionMarkdown": {
            "type": "string",
            "nullable": true
          },
          "requireFullWatch": {
            "type": "boolean"
          },
          "progress": {
            "$ref": "#/components/schemas/VideoModuleWatchProgressViewModel"
          }
        },
        "additionalProperties": false
      },
      "VideoModuleViewModel": {
        "required": [
          "changedDate",
          "createdDate",
          "estimatedHours",
          "id",
          "isPublished",
          "name",
          "ordinal",
          "type"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "minLength": 1,
            "type": "string"
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "estimatedHours": {
            "type": "number",
            "format": "double"
          },
          "ordinal": {
            "type": "integer",
            "format": "int32"
          },
          "isPublished": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "type": {
            "$ref": "#/components/schemas/CourseModuleType"
          },
          "mediaLibraryItemId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "descriptionMarkdown": {
            "type": "string",
            "nullable": true
          },
          "requireFullWatch": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "VideoModuleWatchProgressViewModel": {
        "required": [
          "attemptOrdinal",
          "completedUnits",
          "courseModuleInstanceId",
          "durationSeconds",
          "highestContinuousSecond",
          "id",
          "lastKnownPositionSeconds",
          "participantId",
          "totalUnits",
          "watchedPercentage"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "courseModuleInstanceId": {
            "type": "string",
            "format": "uuid"
          },
          "participantId": {
            "type": "string",
            "format": "uuid"
          },
          "attemptOrdinal": {
            "type": "integer",
            "format": "int32"
          },
          "totalUnits": {
            "type": "integer",
            "format": "int32"
          },
          "completedUnits": {
            "type": "integer",
            "format": "int32"
          },
          "startedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "completedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "watchedPercentage": {
            "type": "number",
            "format": "double"
          },
          "highestContinuousSecond": {
            "type": "number",
            "format": "double"
          },
          "lastKnownPositionSeconds": {
            "type": "number",
            "format": "double"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "VideoPlaybackManifestResponse": {
        "type": "object",
        "properties": {
          "mediaItemId": {
            "type": "string",
            "format": "uuid"
          },
          "encodedAssetId": {
            "type": "string",
            "format": "uuid"
          },
          "manifestUrl": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationSeconds": {
            "type": "number",
            "format": "double",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "WorkableFileInputModel": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "nullable": true
          },
          "absolutePath": {
            "type": "string",
            "nullable": true
          },
          "isContainer": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "WorkableTask": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "deletedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "tenantId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "activityTask": {
            "$ref": "#/components/schemas/ActivityTask"
          },
          "activityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "implementor": {
            "$ref": "#/components/schemas/User"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectJunction": {
            "$ref": "#/components/schemas/SubjectJunction"
          },
          "subjectJunctionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "optional": {
            "type": "boolean"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrame"
          },
          "timeFrameId": {
            "type": "string",
            "format": "uuid"
          },
          "notPerformed": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "outboxStateVersion": {
            "type": "integer",
            "format": "int64"
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "mailSentDate": {
            "type": "string",
            "format": "date-time"
          },
          "readOnly": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "isFulfilled": {
            "type": "boolean",
            "readOnly": true
          },
          "analyticsFullSyncDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "WorkableTaskViewModel": {
        "required": [
          "id"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "activityTask": {
            "$ref": "#/components/schemas/ActivityTaskViewModel"
          },
          "activityTaskId": {
            "type": "string",
            "format": "uuid"
          },
          "implementor": {
            "$ref": "#/components/schemas/UserViewModel"
          },
          "implementorId": {
            "type": "string",
            "format": "uuid"
          },
          "subjectJunctionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "changedDate": {
            "type": "string",
            "format": "date-time"
          },
          "timeFrame": {
            "$ref": "#/components/schemas/ActivityTimeFrameViewModel"
          },
          "timeFrameId": {
            "type": "string",
            "format": "uuid"
          },
          "approved": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "properties": {
            "type": "object",
            "additionalProperties": { },
            "nullable": true
          },
          "mailMessageId": {
            "type": "string",
            "nullable": true
          },
          "mailSentDate": {
            "type": "string",
            "format": "date-time"
          },
          "status": {
            "$ref": "#/components/schemas/QualityActivityStatus"
          },
          "readOnly": {
            "type": "boolean"
          },
          "optional": {
            "type": "boolean"
          },
          "isActive": {
            "type": "boolean",
            "readOnly": true
          },
          "isExpired": {
            "type": "boolean",
            "readOnly": true
          },
          "isCompleted": {
            "type": "boolean",
            "readOnly": true
          },
          "displayDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Enter 'Bearer {token}' (without quotes) into the field below.",
        "scheme": "Bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Account"
    },
    {
      "name": "ActionPlans"
    },
    {
      "name": "Archives"
    },
    {
      "name": "Automation"
    },
    {
      "name": "Billing"
    },
    {
      "name": "CourseInstanceParticipation"
    },
    {
      "name": "CourseInstances"
    },
    {
      "name": "CourseModules"
    },
    {
      "name": "Courses"
    },
    {
      "name": "Customers"
    },
    {
      "name": "EnterpriseConnections"
    },
    {
      "name": "Forms"
    },
    {
      "name": "Grades"
    },
    {
      "name": "GroupDataCollection"
    },
    {
      "name": "GroupRoles"
    },
    {
      "name": "Groups"
    },
    {
      "name": "Import"
    },
    {
      "name": "ImprovementPlans"
    },
    {
      "name": "Login"
    },
    {
      "name": "Logs"
    },
    {
      "name": "Macros"
    },
    {
      "name": "MediaLibrary"
    },
    {
      "name": "Pdf"
    },
    {
      "name": "Policies"
    },
    {
      "name": "QualityActivities"
    },
    {
      "name": "QualityCollaboration"
    },
    {
      "name": "QualityEvaluation"
    },
    {
      "name": "QualityFrameworks"
    },
    {
      "name": "QualityHierarchy"
    },
    {
      "name": "QualityItems"
    },
    {
      "name": "QualityImport"
    },
    {
      "name": "QualityItemPolicyLinks"
    },
    {
      "name": "QualityItemReport"
    },
    {
      "name": "QualityManagementAudits"
    },
    {
      "name": "QualityManagements"
    },
    {
      "name": "QualitySchedule"
    },
    {
      "name": "QualityTemplates"
    },
    {
      "name": "QualityWork"
    },
    {
      "name": "QualityYears"
    },
    {
      "name": "Reports"
    },
    {
      "name": "Root"
    },
    {
      "name": "SelfService"
    },
    {
      "name": "Tags"
    },
    {
      "name": "Tasks"
    },
    {
      "name": "Tenants"
    },
    {
      "name": "Training"
    },
    {
      "name": "TrainingRecords"
    },
    {
      "name": "TrainingRequirements"
    },
    {
      "name": "Users"
    },
    {
      "name": "WorkableTask"
    }
  ]
}