Call each function by its full path. A question mark marks an optional field.
mobile/v1/progress:beginQuiz
{
expectedTenantId?: string
courseId: string
activityId: string
enrollmentId?: string
}Response type
{
admissionId: string | null
}mobile/v1/progress:completeActivity
{
expectedTenantId?: string
clientOpId: string
courseId: string
activityId: string
enrollmentId?: string
occurredAt?: number
}Response type
{
clientOpId: string
courseId: string
activityId: string
completed: true
alreadyComplete: boolean
completedAt: string
progress: {
status: "not_started" | "in_progress" | "completed"
progressPercent: number | null
startedAt: string | null
completedAt: string | null
updatedAt: string
}
replayed: boolean
}mobile/v1/progress:history
{
expectedTenantId?: string
limit?: number
before?: string
}Response type
{
items: Array<{
kind: "completion" | "quiz_attempt"
occurredAt: string
courseId: string
courseTitle: string
activityId: string
activityTitle: string
scorePercent: number | null
passed: boolean | null
}>
nextBefore: string | null
}mobile/v1/progress:quizAttempts
{
expectedTenantId?: string
activityId: string
}Response type
{
attempts: Array<{
scorePercent: number
passed: boolean
recordedAt: string
}>
}mobile/v1/progress:submitQuiz
{
expectedTenantId?: string
clientOpId: string
admissionId?: string
courseId: string
activityId: string
enrollmentId?: string
responses: Array<{
questionId: string
optionId: string
}>
occurredAt?: number
}Response type
{
clientOpId: string
courseId: string
activityId: string
scorePercent: number
passPercent: number
passed: boolean
recordedAt: string
progress: {
status: "not_started" | "in_progress" | "completed"
progressPercent: number | null
startedAt: string | null
completedAt: string | null
updatedAt: string
}
replayed: boolean
}mobile/v1/progress:summary
{
expectedTenantId?: string
}Response type
{
courses: Array<{
courseId: string
enrollmentId: string
title: string
artwork: null | {
url: string
altText: string
width: number
height: number
focalPoint: {
x: number
y: number
}
}
progress: {
status: "not_started" | "in_progress" | "completed"
progressPercent: number | null
startedAt: string | null
completedAt: string | null
updatedAt: string
}
counts: {
activities: number
completed: number
}
}>
}