PATCH
/
v1
/
trace-learn
/
learn
/
instances
/
{instanceId}
/
progress
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.saveTraceLearnLessonInstanceProgress({
  instanceId: process.env.TX_AGENT_KIT_INSTANCE_ID ?? "instanceId",
  body: {},
})
{
  "instanceId": "<string>",
  "recordedExposures": 123,
  "recordedResponses": 123,
  "cursor": {
    "index": 1
  }
}

Path Parameters

instanceId
string<uuid>
required

a Universally Unique Identifier

Pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$

Body

application/json
exposures
object[]
required
responses
object[]
required
cursor
object
required

Response

Success

instanceId
string
required
recordedExposures
integer
required

an integer

recordedResponses
integer
required

an integer

cursor
object
required