{
  "openapi": "3.0.0",
  "info": {
    "title": "VisitReport Questionnaire Structure API",
    "version": "1",
    "description": "Read the question groups, questions, and answer options that define a VisitReport event."
  },
  "servers": [
    {
      "url": "https://backend.snapaddy.com/questionnaire"
    }
  ],
  "paths": {
    "/v1/question-group/{questionGroupId}": {
      "get": {
        "operationId": "QuestionGroupController_getQuestionGroup",
        "summary": "Get a question group",
        "description": "Gets a question group by Id.",
        "parameters": [
          {
            "name": "questionGroupId",
            "required": true,
            "in": "path",
            "description": "Question group ID from the event configuration.",
            "schema": {
              "type": "string",
              "example": "ExampleGroup0001"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok, return question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionGroupResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDto"
                  }
                }
              }
            }
          },
          "403": {
            "description": "In case your user lacks the required access rights.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDto"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Question group with ID not found.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ErrorDto"
                  }
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    },
    "/v1/question/{questionId}": {
      "get": {
        "operationId": "QuestionController_getQuestion",
        "summary": "Get a question and its options",
        "description": "Gets a question.",
        "parameters": [
          {
            "name": "questionId",
            "required": true,
            "in": "path",
            "description": "Question ID from the event’s questionnaire.",
            "schema": {
              "type": "string",
              "example": "ExampleQuestion1"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ok, return question",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuestionResponseDto"
                }
              }
            }
          },
          "401": {
            "description": "The API key is missing or invalid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "403": {
            "description": "In case your user lacks the required access rights.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          },
          "404": {
            "description": "Question with ID not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorArrayDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "x-api-key": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "QuestionGroupResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "titles": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps title-locales to their corresponding i18n-values."
          },
          "questionnaireId": {
            "type": "string"
          },
          "sequenceNumber": {
            "type": "number"
          },
          "settings": {
            "type": "object",
            "additionalProperties": true,
            "description": "The question group settings, probably with dependency information.",
            "nullable": true
          },
          "questions": {
            "description": "Questions, that belong to the group.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionWithSubQuestionsResponseDto"
            }
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          }
        },
        "required": [
          "id",
          "titles",
          "questionnaireId",
          "sequenceNumber",
          "settings",
          "questions",
          "createdAt",
          "updatedAt"
        ],
        "title": "Question Group Response"
      },
      "QuestionWithSubQuestionsResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "questionGroupId": {
            "type": "string"
          },
          "sequenceNumber": {
            "type": "number"
          },
          "column": {
            "type": "number"
          },
          "questionType": {
            "type": "string",
            "enum": [
              "SingleSelection",
              "MultiSelection",
              "Text",
              "Textarea",
              "Number",
              "Date",
              "Signature",
              "TypeaheadSingleSelection",
              "TypeaheadMultiSelection",
              "DateOnly",
              "TimeOnly",
              "Photo"
            ]
          },
          "texts": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps question-texts to their corresponding i18n-values."
          },
          "answers": {
            "type": "number",
            "nullable": true
          },
          "mappingId": {
            "type": "string",
            "nullable": true
          },
          "settings": {
            "type": "object",
            "additionalProperties": true,
            "description": "Associates settings via name to their respective values."
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "descriptions": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps description-locales to their corresponding i18n-values.",
            "nullable": true
          },
          "masterQuestionId": {
            "type": "string",
            "nullable": true
          },
          "questionOptions": {
            "description": "The question's related answer options.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionOptionResponseDto"
            }
          },
          "subQuestionGroup": {
            "description": "Question-groups that are related to the questionnaire.",
            "allOf": [
              {
                "$ref": "#/components/schemas/SubQuestionGroupResponseDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "questionGroupId",
          "sequenceNumber",
          "column",
          "questionType",
          "texts",
          "settings",
          "updatedAt",
          "createdAt",
          "descriptions",
          "questionOptions"
        ],
        "title": "Question With Sub Questions Response"
      },
      "QuestionOptionResponseDto": {
        "type": "object",
        "properties": {
          "questionOptionAttachments": {
            "type": "object",
            "description": "Attachments linked to the question option.",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/QuestionOptionAttachmentResponseDto"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "questionId": {
            "type": "string"
          },
          "questionOptionType": {
            "type": "string",
            "enum": [
              "Text",
              "Input"
            ]
          },
          "texts": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps the answer option's locales to their corresponding i18n-values."
          },
          "sequenceNumber": {
            "type": "number",
            "nullable": true
          },
          "mappingId": {
            "type": "string",
            "nullable": true
          },
          "value": {
            "type": "string",
            "nullable": true
          },
          "default": {
            "type": "boolean"
          },
          "defaultValue": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps locales to their respective suggested default value i18n-strings.",
            "nullable": true
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          }
        },
        "required": [
          "questionOptionAttachments",
          "id",
          "questionId",
          "questionOptionType",
          "texts",
          "default",
          "defaultValue",
          "createdAt",
          "updatedAt"
        ],
        "title": "Question Option Response"
      },
      "QuestionOptionAttachmentResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "file": {
            "description": "Attachment file",
            "allOf": [
              {
                "$ref": "#/components/schemas/FileResponseDto"
              }
            ]
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          }
        },
        "required": [
          "id",
          "file",
          "createdAt",
          "updatedAt"
        ],
        "title": "Question Option Attachment Response"
      },
      "FileResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "ID of the file."
          },
          "name": {
            "type": "string",
            "description": "Name of the file."
          },
          "title": {
            "type": "string",
            "description": "Title of the file.",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "Description of the file.",
            "nullable": true
          },
          "mimetype": {
            "type": "string",
            "description": "Mime type of the file."
          },
          "size": {
            "type": "number",
            "description": "Size of the file in bytes."
          },
          "created": {
            "type": "string",
            "description": "Creation date of the file (ISO 8601)."
          },
          "updated": {
            "type": "string",
            "description": "Last updated date of the file (ISO 8601)."
          },
          "createdByUserId": {
            "type": "string",
            "description": "User id of the user who created the file."
          },
          "updatedByUserId": {
            "type": "string",
            "description": "Last user id of the user who updated the file."
          },
          "fileContentId": {
            "type": "string",
            "description": "ID of the content of the file"
          },
          "thumbnailImageFile": {
            "description": "Thumbnail image for the file",
            "allOf": [
              {
                "$ref": "#/components/schemas/FileResponseDto"
              }
            ]
          }
        },
        "required": [
          "id",
          "name",
          "title",
          "description",
          "mimetype",
          "size",
          "created",
          "createdByUserId",
          "fileContentId"
        ],
        "title": "File Response"
      },
      "SubQuestionGroupResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "titles": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps title-locales to their corresponding i18n-values."
          },
          "questionnaireId": {
            "type": "string"
          },
          "sequenceNumber": {
            "type": "number"
          },
          "settings": {
            "description": "The question settings, probably with dependency information.",
            "nullable": true,
            "type": "object",
            "allOf": [
              {
                "$ref": "#/components/schemas/DependantSettingsDto"
              }
            ]
          },
          "questions": {
            "description": "Questions, that belong to the group.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionResponseDto"
            }
          }
        },
        "required": [
          "id",
          "titles",
          "questionnaireId",
          "sequenceNumber",
          "settings",
          "questions"
        ],
        "title": "Sub Question Group Response"
      },
      "DependantSettingsDto": {
        "type": "object",
        "properties": {
          "dependsOn": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DependencyDto"
            }
          }
        },
        "title": "Dependant Settings"
      },
      "DependencyDto": {
        "type": "object",
        "properties": {
          "questionId": {
            "type": "string",
            "description": "ID of the question this dependency refers to."
          },
          "questionOptionId": {
            "type": "string",
            "description": "ID of the question option this dependency refers to."
          },
          "condition": {
            "type": "string",
            "enum": [
              "presented",
              "notPresented"
            ]
          }
        },
        "title": "Dependency"
      },
      "QuestionResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "questionGroupId": {
            "type": "string"
          },
          "sequenceNumber": {
            "type": "number"
          },
          "column": {
            "type": "number"
          },
          "questionType": {
            "type": "string",
            "enum": [
              "SingleSelection",
              "MultiSelection",
              "Text",
              "Textarea",
              "Number",
              "Date",
              "Signature",
              "TypeaheadSingleSelection",
              "TypeaheadMultiSelection",
              "DateOnly",
              "TimeOnly",
              "Photo"
            ]
          },
          "texts": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps question-texts to their corresponding i18n-values."
          },
          "answers": {
            "type": "number",
            "nullable": true
          },
          "mappingId": {
            "type": "string",
            "nullable": true
          },
          "settings": {
            "type": "object",
            "additionalProperties": true,
            "description": "Associates settings via name to their respective values."
          },
          "updatedAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "createdAt": {
            "format": "date-time",
            "type": "string",
            "nullable": false
          },
          "descriptions": {
            "type": "object",
            "properties": {
              "af": {
                "type": "string"
              },
              "ar": {
                "type": "string"
              },
              "be": {
                "type": "string"
              },
              "bg": {
                "type": "string"
              },
              "bs": {
                "type": "string"
              },
              "ca": {
                "type": "string"
              },
              "cnr": {
                "type": "string"
              },
              "cs": {
                "type": "string"
              },
              "da": {
                "type": "string"
              },
              "de": {
                "type": "string"
              },
              "el": {
                "type": "string"
              },
              "en": {
                "type": "string"
              },
              "es": {
                "type": "string"
              },
              "es-sa": {
                "type": "string"
              },
              "et": {
                "type": "string"
              },
              "fi": {
                "type": "string"
              },
              "fr": {
                "type": "string"
              },
              "he": {
                "type": "string"
              },
              "hi": {
                "type": "string"
              },
              "hr": {
                "type": "string"
              },
              "hu": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "is": {
                "type": "string"
              },
              "it": {
                "type": "string"
              },
              "ja": {
                "type": "string"
              },
              "kk": {
                "type": "string"
              },
              "ko": {
                "type": "string"
              },
              "lb": {
                "type": "string"
              },
              "lt": {
                "type": "string"
              },
              "lv": {
                "type": "string"
              },
              "mk": {
                "type": "string"
              },
              "mt": {
                "type": "string"
              },
              "nl": {
                "type": "string"
              },
              "no": {
                "type": "string"
              },
              "pl": {
                "type": "string"
              },
              "pt": {
                "type": "string"
              },
              "pt-sa": {
                "type": "string"
              },
              "ro": {
                "type": "string"
              },
              "ru": {
                "type": "string"
              },
              "sk": {
                "type": "string"
              },
              "sl": {
                "type": "string"
              },
              "sq": {
                "type": "string"
              },
              "sr": {
                "type": "string"
              },
              "sv": {
                "type": "string"
              },
              "th": {
                "type": "string"
              },
              "tr": {
                "type": "string"
              },
              "uk": {
                "type": "string"
              },
              "vi": {
                "type": "string"
              },
              "zh-Hans": {
                "type": "string"
              },
              "zh-Hant": {
                "type": "string"
              }
            },
            "description": "Maps description-locales to their corresponding i18n-values.",
            "nullable": true
          },
          "masterQuestionId": {
            "type": "string",
            "nullable": true
          },
          "questionOptions": {
            "description": "The question's related answer options.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionOptionResponseDto"
            }
          }
        },
        "required": [
          "id",
          "questionGroupId",
          "sequenceNumber",
          "column",
          "questionType",
          "texts",
          "settings",
          "updatedAt",
          "createdAt",
          "descriptions",
          "questionOptions"
        ],
        "title": "Question Response"
      },
      "ErrorDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "A short, technical ID of the occurred error"
          },
          "message": {
            "type": "string",
            "description": "A longer, more detailed error cause explanation"
          }
        },
        "required": [
          "id",
          "message"
        ],
        "title": "Error"
      },
      "ErrorArrayDto": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "description": "Holds one or more errors that occurred.",
            "items": {
              "$ref": "#/components/schemas/ErrorDto"
            }
          }
        },
        "required": [
          "errors"
        ],
        "title": "Error Array"
      }
    },
    "securitySchemes": {
      "x-api-key": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Use a [personal API token](/authentication/#personal-api-token)."
      }
    }
  }
}
