POSTADITUS/Survey/Surveys/Validate answers

Validate answers

POST{{API_BASE_URL}}/survey/v1/surveys/:survey/validate

This endpoint is used to validate the survey answers submitted by the user.

Request

Request Body

  • answers (array): An array of objects containing the bindingMember and value for each answer submitted.

Response

  • data (object): An object containing the surveyId, surveyAnswers, success, and errors.

    • surveyId (string): The ID of the survey.

    • surveyAnswers (array): An array of objects containing the bindingMember and value for each survey answer.

    • success (boolean): Indicates the success status of the validation.

    • errors (array): An array of objects containing details about any validation errors.

      • question (string): The question for which the error occurred.

      • value (string): The value that caused the error.

      • errorMessage (string): The error message describing the validation issue.

      • validator (string): The validator that identified the error.

Authentication#auth

This endpoint does not require authentication.

Responses#responses

200OKValidate answers