POST
/
v1
/
trace-learn
/
onboarding
/
parent-child
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.completeTraceLearnParentChildOnboarding({
  body: {},
})
{
  "actor": {
    "actorId": "<string>",
    "displayName": "<string>",
    "organizationId": "<string>",
    "teamId": "<string>",
    "studentId": "<string>",
    "learnerKey": "<string>",
    "adminGrants": []
  },
  "profile": {
    "displayName": "<string>",
    "organizationId": "<string>",
    "teamId": "<string>",
    "studentId": "<string>"
  },
  "student": {
    "id": "<string>",
    "displayName": "<string>",
    "avatarId": "<string>",
    "targetSchool": "<string>",
    "learnerKey": "<string>",
    "credential": {
      "username": "<string>",
      "pinSet": true,
      "credentialKind": "student_username_pin"
    }
  },
  "links": [
    {
      "id": "<string>",
      "studentId": "<string>"
    }
  ],
  "entitlement": {},
  "firstDestination": "<string>",
  "nextSteps": [
    "<string>"
  ]
}

Body

application/json
parentDisplayName
string
required

a string at most 160 character(s) long

Required string length: 1 - 160
parentEmail
string
required

a string at most 254 character(s) long

Required string length: 3 - 254
childDisplayName
string
required

a string at most 160 character(s) long

Required string length: 1 - 160
childUsername
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
childPin
string
required

a string at most 4 character(s) long

Required string length: 4
yearGroup
enum<string>
required
Available options:
Year 4,
Year 5,
Year 6
targetSchool
string | null
required

a string at most 160 character(s) long

Maximum string length: 160
examFamilyId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
subjectIds
enum<string>[]
required
Available options:
maths,
english,
verbal-reasoning,
non-verbal-reasoning
avatarId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
tutorInviteEmail
string | null

a string at most 254 character(s) long

Maximum string length: 254

Response

Success

actor
object
required
profile
object
required
student
object
required
entitlement
object
required
firstDestination
string
required
nextSteps
string[]
required