Update a Survey Session
POST/surveys/:surveyId/sessions-v2/:sessionId
Submits responses to the current page of questions and navigates through the survey. This is the primary endpoint for advancing through a survey.
Use this endpoint to:
- Submit answers to questions on the current page
- Navigate forward/backward through the survey
- Save progress without navigating
- Complete and close the survey
- Update embedded data fields mid-survey
info
Only 1 session update operation can be done at a time. If multiple requests are received for the same session, only one will complete and the others will be rejected
Navigation Commands
next: Submit responses for the current page, and go to the next pageprevious: Go back to the previous pagesaveProgress: Save current responses without navigatingclose: Submit final responses and complete the survey
Server Response
After updating, the response includes:
- The next page of questions (if not done)
done: trueif the survey is complete- End message or redirect URL (if survey is complete)
Request
Responses
- 200
- 400
- 401
- 404
- 500
Session updated successfully
Bad request - Invalid request body or parameters
Unauthorized - Invalid or missing JWT token
Resource not found
Internal server error