Hello kind people,
I'm trying to find a way to download the delta responses by using the continuation option. Below is the cURL that I use. I can run it successfully and get the result if I choose to download it in the "csv" format. However, when I use the below command line, with data format as "json", I get the "httpStatus: 400 - Bad Request" error. I need to have the data in the json file instead of the csv.
Long story short, I can use the command line below to download the csv file but NOT the json file. Could someone help me?
Works: curl --request POST --url https://myCompany.qualtrics.com/API/v3/surveys/mySurveyID/export-responses --header 'content-type: application/json' --header 'x-api-token: myToken' --data '{"format":"csv","useLabels": true,"continuationToken": "myContinuationTokenFromPreviouslyRun"}'
Doesn't work: curl --request POST --url https://myCompany.qualtrics.com/API/v3/surveys/mySurveyID/export-responses --header 'content-type: application/json' --header 'x-api-token: myToken' --data '{"format":"json","useLabels": true,"continuationToken": "myContinuationTokenFromPreviouslyRun"}'
Thank you in advance,
UHutch
Solved
How to download the delta responses in json format with continuation filter option?

Best answer by TomG
useLabels isn't valid with json. From the documentation:
When exporting responses as JSON, not all parameters are meaningful. Consequently, the following parameters are not allowed when starting a JSON or NDJSON export:
includeDisplayOrder useLabels formatDecimalAsComma seenUnansweredRecode multiselectSeenUnansweredRecode timeZone newlineReplacement breakoutSets
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.