Skip to main content
PUT
/
powerpath
/
updateStudentQuestionResponse
Update student question response
curl --request PUT \
  --url https://api.alpha-1edtech.ai/powerpath/updateStudentQuestionResponse \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "student": "<string>",
  "question": "<string>",
  "lesson": "<string>",
  "response": "<string>",
  "responses": {}
}
'
{
  "lessonType": "<string>",
  "powerpathScore": 123,
  "responseResult": {
    "isCorrect": true,
    "score": 123,
    "feedback": "<unknown>"
  },
  "accuracy": 123,
  "correctQuestions": 123,
  "totalQuestions": 123,
  "xp": 123,
  "multiplier": 123,
  "questionResult": "<unknown>",
  "testResult": "<unknown>"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

The input for the updateStudentQuestionResponse endpoint

student
string
required

The sourcedId of the student who is answering the question

question
string
required

The QTI question identifier from the lesson's question bank. This identifier corresponds to a specific question fetched from the QTI test URL stored in the lesson's Resource metadata.

lesson
string
required

The sourcedId of the lesson (ComponentResource)

response
deprecated

DEPRECATED: Use 'responses' instead. / The student's response to the question. Might be the reference to the choice specified in the QTI structure.

responses
object

Object containing response identifiers as keys and their corresponding values as strings or arrays of strings

Response

Success

Represents the result of updating the student's response to the question in the PowerPath100 lesson (ComponentResource)

lessonType
string
required
Allowed value: "powerpath-100"
powerpathScore
number
required

The updated PowerPath score of the student in this lesson

responseResult
object
required

The result of processing the student's response

accuracy
number
required

The accuracy of the student's attempted questions

correctQuestions
number
required

The number of correct questions the student has answered in the lesson

totalQuestions
number
required

The total number of questions in the lesson

xp
number | null
required

The XP the student has earned in the lesson

multiplier
number | null
required

The multiplier for the student's XP

questionResult
any

The assessment result object for the question (for debugging)

testResult
any

The assessment result object for the test (for debugging)