POST
/
v1
/
trace-learn
/
attempts
/
{attemptId}
/
items
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.appendTraceLearnAttemptItem({
  attemptId: process.env.TX_AGENT_KIT_ATTEMPT_ID ?? "attemptId",
  body: {},
})
{
  "item": {
    "id": "<string>",
    "attemptId": "<string>",
    "questionId": "<string>",
    "questionVersionId": "<string>",
    "orderIndex": 123,
    "correctness": "<string>",
    "scoreBasisPoints": 123,
    "createdAt": "<string>"
  },
  "masteryUpdated": true,
  "serverGraded": {
    "isCorrect": true,
    "correctAnswerIndex": 123
  }
}

Path Parameters

attemptId
string
required

Body

application/json
orderIndex
number
required
servedSnapshot
object
required
responseSnapshot
object
required
questionId
string | null

a string at most 128 character(s) long

Required string length: 1 - 128
questionVersionId
string | null

a string at most 128 character(s) long

Required string length: 1 - 128
correctness
string | null
scoreBasisPoints
number | null
masteryUpdate
object

Response

Success

item
object
required
masteryUpdated
boolean
required
serverGraded
object
required