{
  "openapi": "3.0.4",
  "info": {
    "title": "FeedbackForest Web API",
    "description": "FeedbackForest Data Import and Export Web API.",
    "termsOfService": "https://feedbackforest.com/terms",
    "version": "1.0"
  },
  "paths": {
    "/v1/Interview/Add": {
      "post": {
        "tags": [
          "Interview"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsImportInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsImportInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsImportInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/Interview/ExportByDate": {
      "post": {
        "tags": [
          "Interview"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByDateParamInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByDateParamInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByDateParamInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewDataExportInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewDataExportInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewDataExportInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/Interview/ExportByID": {
      "post": {
        "tags": [
          "Interview"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByIDParamInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByIDParamInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewsExportByIDParamInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewDataExportInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewDataExportInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewDataExportInfo"
                }
              }
            }
          }
        }
      }
    },
    "/v1/Interview/Status": {
      "post": {
        "tags": [
          "Interview"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewStatusParamInfo"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewStatusParamInfo"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewStatusParamInfo"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusExtInfo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusExtInfo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/InterviewStatusExtInfo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/Interview/UrlGet": {
      "post": {
        "tags": [
          "Interview"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewParams"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewParams"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InterviewParams"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewUrlInfo"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewUrlInfo"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/InterviewUrlInfo"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AnswerDataExportInfo": {
        "type": "object",
        "properties": {
          "answerCode": {
            "type": "string",
            "nullable": true
          },
          "numericValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "textValue": {
            "type": "string",
            "nullable": true
          },
          "dateValue": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AnswerDataInfo": {
        "type": "object",
        "properties": {
          "answerCode": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "answerTextToSingle": {
            "type": "string",
            "nullable": true
          },
          "textValue": {
            "type": "string",
            "nullable": true
          },
          "numericValue": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "dateValue": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ErrorInfo": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "message": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterviewDataExportInfo": {
        "type": "object",
        "properties": {
          "interviewID": {
            "type": "integer",
            "format": "int32"
          },
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          },
          "respondentEmail": {
            "type": "string",
            "nullable": true
          },
          "respondentMobilePhone": {
            "type": "string",
            "nullable": true
          },
          "invitationLanguage": {
            "type": "string",
            "nullable": true
          },
          "respondentLanguage": {
            "type": "string",
            "nullable": true
          },
          "isApproved": {
            "type": "boolean"
          },
          "savedDate": {
            "type": "string",
            "format": "date-time"
          },
          "approvedDate": {
            "type": "string",
            "format": "date-time"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "score": {
            "type": "number",
            "format": "double"
          },
          "scorePercent": {
            "type": "number",
            "format": "double"
          },
          "interviewData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionDataExportInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterviewInfo": {
        "required": [
          "interviewData",
          "openUntilDate"
        ],
        "type": "object",
        "properties": {
          "openUntilDate": {
            "type": "string",
            "format": "date-time"
          },
          "respondentEmail": {
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "respondentMobile": {
            "type": "string",
            "nullable": true
          },
          "invitationLanguage": {
            "type": "string",
            "nullable": true
          },
          "languageID": {
            "type": "integer",
            "format": "int32"
          },
          "sendInvitation": {
            "type": "boolean"
          },
          "invitationSendDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "approve": {
            "type": "boolean"
          },
          "alertsCheck": {
            "type": "boolean"
          },
          "interviewDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "interviewData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuestionDataInfo"
            }
          }
        },
        "additionalProperties": false
      },
      "InterviewParams": {
        "required": [
          "apiKey",
          "interviewUID"
        ],
        "type": "object",
        "properties": {
          "apiKey": {
            "minLength": 1,
            "type": "string"
          },
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "InterviewStatusExtInfo": {
        "type": "object",
        "properties": {
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          },
          "statusCode": {
            "$ref": "#/components/schemas/Statuses"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorInfo"
            },
            "nullable": true
          },
          "created": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "InterviewStatusInfo": {
        "type": "object",
        "properties": {
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          },
          "statusCode": {
            "$ref": "#/components/schemas/Statuses"
          },
          "status": {
            "type": "string",
            "nullable": true
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ErrorInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterviewStatusParamInfo": {
        "required": [
          "apiKey"
        ],
        "type": "object",
        "properties": {
          "apiKey": {
            "minLength": 1,
            "type": "string"
          },
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "InterviewUrlInfo": {
        "type": "object",
        "properties": {
          "urlReady": {
            "type": "boolean"
          },
          "interviewUrl": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterviewsExportByDateParamInfo": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "savedDateStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "savedDateEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDateStart": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "createdDateEnd": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InterviewsExportByIDParamInfo": {
        "type": "object",
        "properties": {
          "apiKey": {
            "type": "string",
            "nullable": true
          },
          "interviewUID": {
            "type": "string",
            "format": "uuid"
          }
        },
        "additionalProperties": false
      },
      "InterviewsImportInfo": {
        "required": [
          "apiKey",
          "interviews"
        ],
        "type": "object",
        "properties": {
          "apiKey": {
            "minLength": 1,
            "type": "string"
          },
          "testMode": {
            "type": "boolean"
          },
          "interviews": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InterviewInfo"
            }
          }
        },
        "additionalProperties": false
      },
      "QuestionDataExportInfo": {
        "type": "object",
        "properties": {
          "questionNumber": {
            "type": "string",
            "nullable": true
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "answerData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnswerDataExportInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "QuestionDataInfo": {
        "required": [
          "questionNumber"
        ],
        "type": "object",
        "properties": {
          "questionNumber": {
            "maxLength": 20,
            "minLength": 1,
            "pattern": "^[0-9]+(\\.[0-9]+)*$",
            "type": "string"
          },
          "comment": {
            "type": "string",
            "nullable": true
          },
          "answerData": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnswerDataInfo"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Statuses": {
        "enum": [
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      }
    }
  },
  "tags": [
    {
      "name": "Interview"
    }
  ]
}