POST
/
v1
/
trace-learn
/
diagnostic
/
submit
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.traceLearn.submitTraceLearnDiagnostic({
  body: {},
})
{
  "diagnosticResultId": "<string>",
  "studentId": "<string>",
  "attemptNumber": 2,
  "questionCount": 1,
  "correctCount": 1,
  "subjectAbility": [
    {
      "theta": 123,
      "thetaStandardError": 123,
      "scorePercent": 50,
      "answered": 1,
      "correct": 1
    }
  ],
  "topicMastery": [
    {
      "topicId": "<string>",
      "pKnown": 0.5,
      "observationCount": 1,
      "correctCount": 1
    }
  ]
}

Body

application/json
responses
object[]
required
activeMs
number

Response

Success

diagnosticResultId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
studentId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
attemptNumber
integer
required

a number greater than or equal to 1

Required range: x >= 1
questionCount
integer
required

a non-negative number

Required range: x >= 0
correctCount
integer
required

a non-negative number

Required range: x >= 0
subjectAbility
object[]
required
topicMastery
object[]
required