Call each function by its full path. A question mark marks an optional field.
mobile/v1/content:activity
{
expectedTenantId?: string
courseId: string
activityId: string
enrollmentId?: string
includeVideoAccessibility?: boolean
}Response type
{
courseId: string
enrollmentId: string
contentVersion: string
activity: {
reusableScenario?: true
activityId: string
title: string
type: "text" | "video" | "document" | "link" | "embed" | "quiz" | "scorm" | "assignment" | "learning_check" | "form" | "unsupported"
position: number
moduleId: string
moduleTitle: string
lesson: null | {
id: string
title: string
}
completionMode: "mark" | "quiz" | "scorm" | "form_submit" | "web_only" | "none"
}
access: {
state: "available" | "locked" | "not_enrolled" | "unavailable"
reason: string | null
unlockRequirement: null | {
kind: "activity_completion" | "course_completion" | "release" | "previous_activity"
title: string
courseId: string
activityId: string | null
satisfied: boolean
opensAt: string | null
mode: "all" | "any" | null
requirements: Array<{
courseId: string
activityId: string | null
title: string
satisfied: boolean
}>
}
}
completed: boolean
completedAt: string | null
blocks: Array<{
id: string
type: "form"
placement: string
status: "pending" | "confirmed" | "historical_credit"
} | {
id: string
type: "heading"
text: string
level: number
} | {
id: string
type: "paragraph"
text: string
} | {
id: string
type: "list"
ordered: boolean
items: Array<string>
} | {
id: string
type: "callout"
text: string
} | {
id: string
type: "image"
url: string
alt: string
} | {
id: string
type: "video"
url: string
captions?: Array<{
url?: string
webVtt?: string
language: string
label: string
}>
transcript?: string
} | {
id: string
type: "document"
url: string
fileName: string
mimeType: string | null
} | {
id: string
type: "link"
url: string
label: string
} | {
id: string
type: "embed"
url: string
title: string
} | {
id: string
type: "scorm"
courseId: string
activityId: string
title: string
launchState: "launchable" | "in_progress" | "unavailable"
} | {
id: string
type: "quiz"
requiresAdmission?: true
passPercent: number
questions: Array<{
id: string
prompt: string
kind: "multiple_choice" | "true_false"
options: Array<{
id: string
label: string
}>
}>
latestAttempt: null | {
scorePercent: number
passed: boolean
recordedAt: string
}
} | {
id: string
type: "unsupported"
title: string
text: string
reason: string
}>
previousActivityId: string | null
nextActivityId: string | null
}