Skip to content
Dark mode

Learning object content types

The content types returned by the module learning object response, with the fields and an example for each.

Prerequisites

  1. Authentication and setup: A valid access token.
  2. 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.

Represents media-based content such as images and embedded resources.

  • Contains an id and a type set to Content.
  • Contains a media object with details of id, type, url, and title.

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"
}
}

Before relying on transcription_url, check the transcript access guidance. Its presence in this example does not guarantee transcript availability.

  • Contains an id and a type set to Content.
  • Contains a media object with details of id, type, url, transcription_url, and title.

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"
}
}

Represents a multiple-choice question with selectable options.

  • Contains a question and an options list.
  • Each option has an option text, an isCorrect flag, and an order.
  • Includes an optional supporting_media_url for 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"
}

Text-based question and answer matching quiz.

  • Contains a question and an options list.
  • Each option has a question description, a correct answer, and an order.
  • Includes an optional supporting_media_url for 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"
}

Similar to multiple-choice questions but with images as options.

  • Contains a question and an options list.
  • Each option has a question description, an image URL, and an isCorrect flag.
  • Includes an optional supporting_media_url for 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 }
]
}

Requires users to enter a word based on a question prompt.

  • Contains a question field with the question and an answer field with the correct response.
  • Includes an optional supporting_media_url for additional reference.

Example:

{
"id": "1234567890123456108",
"type": "Word guess",
"question": "<p>Be creative and guess the word</p>",
"answer": "CREATIVITY"
}

Users must identify a specific location on an image.

  • Contains a question and an options list.
  • Each option contains left and top coordinates and an isCorrect flag.
  • Includes an optional supporting_media_url for 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 }
]
}

Users must input text that matches or closely resembles the expected answer.

  • Contains a question field with the question.
  • Includes exactAnswer.
  • Includes an optional supporting_media_url for additional reference.

Example:

{
"id": "1234567890123456110",
"type": "Text answer",
"question": "<p>Testing is fun</p>",
"exactAnswer": "Yes, testing is fun"
}

Users must determine whether a statement is true or false.

  • Contains a question and an options list.
  • Each option has a text label and an isTrue flag.
  • Includes an optional supporting_media_url for 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 }
]
}

A poll for users to vote on. The example below shows poll-level fields.

  • Contains a question text.
  • Each option has a text label and an isTrue flag.
  • Includes an optional supporting_media_url for 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"
}