POST
/
v1
/
learning
/
public
/
quizzes
/
mark
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.markTraceLearnPublicQuiz({
  body: {},
})
{
  "skillId": "<string>",
  "publicationKey": "<string>",
  "results": [
    {
      "questionId": "<string>",
      "questionVersionId": "<string>",
      "correct": true,
      "gradable": true,
      "correctAnswer": "<unknown>",
      "explanation": "<string>"
    }
  ]
}

Body

application/json
skillId
string
required

a string matching the pattern ^[a-z][a-z0-9.-]*$

Required string length: 1 - 160
Pattern: ^[a-z][a-z0-9.-]*$
publicationKey
string
required

a string matching the pattern ^[a-f0-9]{64}$

Pattern: ^[a-f0-9]{64}$
answers
maxItems(10) · object[]
required

an array of at most 10 item(s)

Required array length: 1 - 10 elements

Response

Success

skillId
string
required

a string matching the pattern ^[a-z][a-z0-9.-]*$

Required string length: 1 - 160
Pattern: ^[a-z][a-z0-9.-]*$
publicationKey
string
required

a string matching the pattern ^[a-f0-9]{64}$

Pattern: ^[a-f0-9]{64}$
results
maxItems(10) · object[]
required

an array of at most 10 item(s)

Required array length: 1 - 10 elements