Skip to main content
POST
/
v1
/
questionnaire
/
upload-and-parse
/
upload
cURL
curl --request POST \
  --url http://localhost:3333/v1/questionnaire/upload-and-parse/upload \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'organizationId=<string>' \
  --form source=internal
{
  "questionnaireId": "<string>",
  "totalQuestions": 123
}

Body

multipart/form-data
file
file
required

Questionnaire file (PDF, image, XLSX, CSV, TXT)

organizationId
string
required

Organization ID

source
enum<string>
default:internal

Source of the upload

Available options:
internal,
external

Response

200 - application/json

Upload file, parse questions (no answers), save to DB, return questionnaireId

questionnaireId
string
totalQuestions
number