problem exporting responses (Api) | XM Community
Question

problem exporting responses (Api)

  • 24 December 2019
  • 1 reply
  • 35 views

!

I tested the link above with the post method
https://co1.qualtrics.com/API/v3/surveys/SV_cccccccc/export-responses
   I receive an error above

"meta": {"httpStatus": "400 - Bad Request", "error": {"errorMessage": "Error decoding json body: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('f' (code 102 )): was expecting double-quote to start field name \\ n at [Source: (akka.util.ByteIterator $ ByteArrayIterator $$ anon $ 1); line: 2, column: 12] "
here is the curl query i used

curl -X POST -H "X-API-TOKEN: token" -H "Content-Type: application / json" -d "{
           "format": "json"
   } "" https://co1.qualtrics.com/API/v3/surveys/SV_xxxxxxxxx/export-responses "

1 reply

Userlevel 4
Badge +18
I tried out this API in postman and it worked fine for me.
After setting up the header variables and query parameters, added the following json to the raw editor in the body:
{
"format": "json"
}

Leave a Reply