Upload and export generated answers
POST
/v1/questionnaire/answers/export/upload
const url = 'https://api.varman.io/v1/questionnaire/answers/export/upload';const form = new FormData();form.append('file', 'file');form.append('organizationId', 'example');form.append('format', 'pdf');
const options = {method: 'POST', headers: {'X-API-Key': '<X-API-Key>'}};
options.body = form;
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.varman.io/v1/questionnaire/answers/export/upload \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <X-API-Key>' \ --form file=@file \ --form organizationId=example \ --form format=pdfUpload a questionnaire file and return generated answer exports in PDF, CSV, or XLSX format.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typemultipart/form-data
object
file
required
Questionnaire file (PDF, image, XLSX, CSV, TXT)
string format: binary
organizationId
required
Organization to use for answer generation
string
format
Output format (defaults to XLSX)
string