Learning object content types
The content types returned by the module learning object response, with the fields and an example for each.
Prerequisites
- Authentication and setup: A valid access token.
- Get module learning object details: The endpoint that returns these content types.
The following examples illustrate module learning object response shapes. Confirm media-type casing before using case-sensitive comparisons; do not treat IMAGE and Image as interchangeable values.
Content without transcription
Section titled “Content without transcription”Represents media-based content such as images and embedded resources.
- Contains an
idand atypeset toContent. - Contains a
mediaobject with details ofid,type,url, andtitle.
Supported media types: image, image album.
Example:
{ "id": "1234567890123456101", "type": "Content", "media": { "id": "1234567890123456102", "type": "Image", "url": "https://cdn.example.com/media/testing.png", "title": "testing.png" }}Content with transcription
Section titled “Content with transcription”Before relying on transcription_url, check the transcript access guidance. Its presence in this example does not guarantee transcript availability.
- Contains an
idand atypeset toContent. - Contains a
mediaobject with details ofid,type,url,transcription_url, andtitle.
Supported media types: audio, video, document (PDF, PPT, DOC, XLS), voice-over slideshow, video recording, screen recording, text document.
Example:
{ "id": "1234567890123456103", "type": "Content", "media": { "url": "https://cdn.example.com/media/mobile-first-world.mp4", "transcription_url": "https://cdn.example.com/media/mobile-first-world-transcript.json", "id": "1234567890123456104", "type": "Video", "title": "Mobile first world" }}Multiple choice question
Section titled “Multiple choice question”Represents a multiple-choice question with selectable options.
- Contains a
questionand anoptionslist. - Each option has an option text, an
isCorrectflag, and anorder. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456105", "type": "Multiple choice question", "question": "<p>Testing is fun</p>", "options": [ { "option": "Yes", "isCorrect": true, "order": 0 }, { "option": "No", "isCorrect": false, "order": 1 } ], "supporting_media_url": "https://cdn.example.com/media/supporting-image.png"}Match the labels
Section titled “Match the labels”Text-based question and answer matching quiz.
- Contains a
questionand anoptionslist. - Each option has a question description, a correct answer, and an
order. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456106", "type": "Match the labels", "question": "<p>Match each label with its card</p>", "options": [ { "question": "Offline-first", "answer": "Work regardless of the signal", "order": 0 }, { "question": "Reactive", "answer": "The UI responds immediately to changes", "order": 1 } ], "supporting_media_url": "https://cdn.example.com/media/supporting-image.png"}Multiple choice images
Section titled “Multiple choice images”Similar to multiple-choice questions but with images as options.
- Contains a
questionand anoptionslist. - Each option has a question description, an image URL, and an
isCorrectflag. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456107", "type": "Multiple choice images", "question": "<p>Match</p>", "options": [ { "text": "Graph", "url": "https://cdn.example.com/media/graph.png", "isCorrect": true }, { "text": "Blur", "url": "https://cdn.example.com/media/blur.png", "isCorrect": false } ]}Word guess
Section titled “Word guess”Requires users to enter a word based on a question prompt.
- Contains a
questionfield with the question and ananswerfield with the correct response. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456108", "type": "Word guess", "question": "<p>Be creative and guess the word</p>", "answer": "CREATIVITY"}Mark the location
Section titled “Mark the location”Users must identify a specific location on an image.
- Contains a
questionand anoptionslist. - Each option contains
leftandtopcoordinates and anisCorrectflag. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456109", "type": "Mark the location", "question": "<p>Mark the island on the map</p>", "options": [ { "left": 377, "top": 227, "isCorrect": true }, { "left": 269, "top": 114, "isCorrect": false } ]}Text answer
Section titled “Text answer”Users must input text that matches or closely resembles the expected answer.
- Contains a
questionfield with the question. - Includes
exactAnswer. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456110", "type": "Text answer", "question": "<p>Testing is fun</p>", "exactAnswer": "Yes, testing is fun"}True or false
Section titled “True or false”Users must determine whether a statement is true or false.
- Contains a
questionand anoptionslist. - Each option has a text label and an
isTrueflag. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456111", "type": "True or false", "question": "<p>Android is a mobile operating system</p>", "options": [ { "text": "Yes", "isTrue": true }, { "text": "No", "isTrue": false } ]}Multiple choice poll
Section titled “Multiple choice poll”A poll for users to vote on. The example below shows poll-level fields.
- Contains a
questiontext. - Each option has a text label and an
isTrueflag. - Includes an optional
supporting_media_urlfor additional reference.
Example:
{ "id": "1234567890123456112", "type": "Multiple choice poll", "question": "<p>How would you rate this course?</p>", "supporting_media_url": "https://cdn.example.com/media/supporting-image.png"}