Set User Answers
Use setUserAnswers
mutation to set the user's answers for a specific assessment.
Arguments
Argument
Type
Description
input.assessmentId
ID!
Id of the assessment.
input.userAnswers
[UserAnswerInput!]
List of answers for the selected questions.
input.userAnswers.questionId
ID!
Id of the question.
input.userAnswers.answerId
ID
Id of the answer.
input.userAnswers.answerText
String
Used for open type of questions.
input.userAnswers.rankingOrder
Int
Used to set answer ranking order.
Available Fields
Field Name
Type
Description
userAnswers
[UserAnswer!]
User answers list.
success
string
True if the answers have been created successfully. Otherwise, False.
message
string
Description of the result.
Example
Last updated
Was this helpful?