I am trying to post a response using the V3 endpoint: https://api.surveysparrow.com/v3/responses
This works fine if I am posting a text answer, but if my answer is a multiple choice type then i get the following error:
"message": "Invalid value passed or missing values in payload"
This is an example of my post body:
I cant see anything in the documentation that is marked as required that i am missing from my request or anything that indicates what should be different for non text questions.
We're glad to have you as part of our community!
Regarding your question, for the "answer" parameter, you'll need to provide the corresponding choice ID.
Let me know if it works!!
Thanks for the quick reply, unfortunately that doesnt seem to be working still, payload:
I have tried the ID as a string and as a number.
I apologize for not mentioning this earlier. It is necessary for us to pass the choice id in an array format. I have provided a snapshot below for your reference.
Let me know if you have any questions!
Perfect! works now thank you