Is the survey aspect of the API live? When I try to update survey questions I get this response back:
{
"code":"not_found",
"message":"Record not found"
}
I am using this json to pass it through:
{
"survey_response": {
"survey_id": 1,
"person_id": 2,
"question_responses": [{
"question_id": 2,
"response": 1
}, {
"question_id": 1,
"response": "yes"
}, {
"question_id": 3,
"response": "cool"
}]
}
}
Do you like this suggestion?
Showing 10 reactions
Sign in with
Hopefully the NB team see this. Please update the documentation or, preferably, update yes/no type questions to accept “yes” or “no” as responses. It’s painful to have to store the unique id of each “yes” or “no” to send over with each response.
Based on the error message I would assume I had the wrong survey ID, but I know that’s not the case because I queried the survey and its questions with the API. Anyone have an idea of what’s really going on here?