Developer Platform (September 2020)

Quizzes

«  Release Conditions   ·  [   home  ·   reference  ·   community   |   search  ·   index   ·  routing table   ·  scopes table   ]   ·  Surveys  »

Contents

Attributes

LATESUBMISSIONOPTION_T

Late submission allowances can be accommodated in several ways. We use the term LATESUBMISSIONOPTION_T to stand in for an appropriate integer type.

Late submission option

Value

AllowNormalSubmission

0

UseLateLimit

1

AutoSubmitAttempt

2

OverallGradeCalculation_T

The grade calculation for a quiz, where multiple attempts are allowed. We use the term OverallGradeCalculation_T to stand in for an appropriate integer type.

Overall Grade Calculation Option

Value

Highest Attempt

1

Lowest Attempt

2

Average of all Attempts

3

First Attempt

4

Last Attempt

5

QuizReadData

When the service sends you information about a quiz, it will send back a JSON structure like this:

{
    "QuizId": <number:D2LID>,
    "Name": <string>,
    "IsActive": <boolean>,
    "SortOrder": <number>,
    "AutoExportToGrades": <boolean>|null,
    "GradeItemId": <number:D2LID>|null,
    "IsAutoSetGraded": <boolean>,
    "Instructions": {
        "Text": { <composite:RichText> },
        "IsDisplayed": <boolean>
    },
    "Description": {
        "Text": { <composite:RichText> },
        "IsDisplayed": <boolean>
    },
    "StartDate": <string:UTCDateTime>|null,
    "EndDate": <string:UTCDateTime>|null,
    "DueDate": <string:UTCDateTime>|null,
    "DisplayInCalendar": <boolean>,
    "AttemptsAllowed": {
        "IsUnlimited": <boolean>,
        "NumberOfAttemptsAllowed": <number>|null
    },
    "LateSubmissionInfo": {
        "LateSubmissionOption": <number:LATESUBMISSIONOPTION_T>,
        "LateLimitMinutes": <number>|null
    },
    "SubmissionTimeLimit": {
        "IsEnforced": <boolean>,
        "ShowClock": <boolean>,
        "TimeLimitValue": <number>
    },
    "SubmissionGracePeriod": <number>|null,
    "Password": <string>,
    "Header": {  // Added with LE API v1.39
        "Text": { <composite:RichText> },
        "IsDisplayed": <boolean>
    },
    "Footer": {  // Added with LE API v1.39
        "Text": { <composite:RichText> },
        "IsDisplayed": <boolean>
    },
    "AllowHints": <boolean>,  // Added with LE API v1.39
    "DisableRightClick": <boolean>,  // Added with LE API v1.39
    "DisablePagerAndAlerts": <boolean>,  // Added with LE API v1.39
    "NotificationEmail": <string>,  // Added with LE API v1.39
    "CalcTypeId": <number:OverallGradeCalculation_T>,  // Added with LE API v1.39
    "RestrictIPAddressRange": [  // Added with LE API v1.39
        {
            "IPRangeStart": <string>,
            "IPRangeEnd": <string>|null
        }
    ],
    "CategoryId": <number>|null,  // Added with LE API v1.40
    "PreventMovingBackwards": <boolean>,  // Added with LE API v1.43
    "Shuffle": <boolean>,  // Added with LE API v1.43
    "ActivityId": <string>|null,  // Added with LE API v1.43
    "AllowOnlyUsersWithSpecialAccess": <boolean>  // Added with LE API v1.47
}
AttemptsAllowed

If the IsUnlimited property is True, then the NumberOfAttemptsAllowed property will be null; if IsUnlimited is False, then NumberOfAttemptsAllowed will contain the number of attempts allowed (default value is 1).

Instructions and Description

These rich text properties can be displayed, or hidden, upon presentation of the quiz to those taking it (based on the value of the IsDisplayed property).

Password

If not null (and visible to the calling user context), the current password set for the quiz.

RestrictIpAddressRange

Null, or, if some IP address ranges are restricted, a list of start-end pairs that describe the restricted ranges. Within each range, both the range-start and range-end strings must be valid IPv4 addresses; if a range has range-start string, but null for the range-end, then this restricts all IP address after than the range-start address.

PreventMovingBackwards

When true, prevents the quiz taker from paging backwards in this quiz.

Shuffle

When true, the order of the questions is randomized.

AllowOnlyUsersWithSpecialAccess

When true, allow only users with special access to see this quiz.

QuizData

When updating quiz data, use a JSON structure like this:

{
    "Name": <string>,
    "IsActive": <boolean>,
    "SortOrder": <number>,
    "AutoExportToGrades": <boolean>|null,
    "GradeItemId": <number:D2LID>|null,
    "IsAutoSetGraded": <boolean>,
    "Instructions": {
        "Text": { <composite:RichTextInput> },
        "IsDisplayed": <boolean>
    },
    "Description": {
        "Text": { <composite:RichTextInput> },
        "IsDisplayed": <boolean>
    },
    "StartDate": <string:UTCDateTime>|null,
    "EndDate": <string:UTCDateTime>|null,
    "DueDate": <string:UTCDateTime>|null,
    "DisplayInCalendar": <boolean>,
    "NumberOfAttemptsAllowed": <number>|null,  // Added with LE API v1.39
    "LateSubmissionInfo": {  // Added with LE API v1.39
        "LateSubmissionOption": <number:LATESUBMISSIONOPTION_T>,
        "LateLimitMinutes": <number>|null
    },
    "SubmissionTimeLimit": {  // Added with LE API v1.39
        "IsEnforced": <boolean>,
        "ShowClock": <boolean>,
        "TimeLimitValue": <number>
    },
    "SubmissionGracePeriod": <number>|null,  // Added with LE API v1.39
    "Password": <string>,  // Added with LE API v1.39
    "DisplayInCalendar": <boolean>,
    "Header": {  // Added with LE API v1.39
        "Text": { <composite:RichTextInput> },
        "IsDisplayed": <boolean>
    },
    "Footer": {  // Added with LE API v1.39
        "Text": { <composite:RichTextInput> },
        "IsDisplayed": <boolean>
    },
    "AllowHints": <boolean>,  // Added with LE API v1.39
    "DisableRightClick": <boolean>,  // Added with LE API v1.39
    "DisablePagerAndAlerts": <boolean>,  // Added with LE API v1.39
    "NotificationEmail": <string>,  // Added with LE API v1.39
    "CalcTypeId": <number:OverallGradeCalculation_T>,  // Added with LE API v1.39
    "RestrictIPAddressRange": null|[  // Added with LE API v1.39
        {
            "IPRangeStart": <string>,
            "IPRangeEnd": <string>|null
        }, ...
    ],
    "CategoryId": <number>|null,  // Added with LE API v1.40
    "PreventMovingBackwards": <boolean>,  // Added with LE API v1.43
    "Shuffle": <boolean>,  // Added with LE API v1.43
    "AllowOnlyUsersWithSpecialAccess": <boolean>  // Added with LE API v1.47
}
RestrictIpAddressRange

Null, or, if some IP address ranges are restricted, a list of start-end pairs that describe the restricted ranges. Within each range, both the range-start and range-end strings must be valid IPv4 addresses; if a range has range-start string, but null for the range-end, then this restricts all IP address after than the range-start address.

NumberOfAttemptsAllowed

Must be between 1 and 10 inclusive or null for unlimited.

TimeLimitValue

Represented in minutes.

SubmissionGracePeriod

Represented in minutes. Only allowed to be null when SubmissionTimeLimit.IsEnfored is false.

Password

Must not be an empty string or whitespace.

PreventMovingBackwards

When true, prevents the quiz taker from paging backwards in this quiz.

Shuffle

When true, the order of the questions is randomized.

AllowOnlyUsersWithSpecialAccess

When true, allow only users with special access to see this quiz.

Note

The AllowOnlyUsersWithSpecialAccess property is ignored (but still required with some value) if the calling user does not have permission to add special access to quizzes.

Quiz.SpecialAccessData

When creating or updating special access for a quiz, use a structure like this:

{
   "StartDate": <string:UTCDateTime>|null,
   "EndDate": <string:UTCDateTime>|null,
   "DueDate": <string:UTCDateTime>|null,
   "SubmissionTimeLimit": null|{
         "IsEnforced": <boolean>,
         "TimeLimitValue": <number>
   },
   "AttemptsAllowed": null|{
      "IsUnlimited": <boolean>,
      "NumberOfAttemptsAllowed": <number>|null
   }
}
SubmissionTimeLimit

When null, SubmissionTimeLimit will not be overridden.

TimeLimitValue

Represented in minutes. Must be between 1 and 9999 inclusive.

AttemptsAllowed

When null, AttemptsAllowed will not be overridden.

NumberOfAttemptsAllowed

Must be between 1 and 10 inclusive or null for unlimited.

Quiz.SpecialAccessUserData

When retrieving special access in a quiz, use a structure like this:

{
    "UserId": <number:D2LID>,
    "SpecialAccess": <composite:Quiz.SpecialAccessData>
}

Quiz Attempts

Quiz.QuizAttemptData

When the service sends you information about a quiz attempt, it will send back a JSON structure like this:

{
     "AttemptId": <number:D2LID>,
     "QuizId": <number:D2LID>,
     "UserId": <number:D2LID>,
     "AttemptNumber": <number>,
     "Score": <number:decimal>|null,
     "Started": <string:UTCDateTime>,
     "Completed": <string:UTCDateTime>|null,
     "AttemptFeedback": { <composite:RichText> },
     "FeedbackLastModified": <string:UTCDateTime>|null,
     "IsPublished":  <boolean>
}
Started

The date and time that this quiz attempt was started.

Completed

The date and time that this quiz attempt was completed or null if it in progress.

IsPublished

When true, the quiz attempt feedback is available to the student.

Quiz Categories

QuizCategoryData

When creating or updating a quiz category, use a structure like this:

{
    "Name": <string>,
    "SortOrder": <number>
}
QuizCategoryReadData

When the service sends you information about a quiz category, it will send back a JSON structure like this:

{
    "CategoryId": <number:D2LID>,
    "Name": <string>,
    "SortOrder": <number>
}

Questions

QUESTION_T

Quizzing supports questions that assess answers in a variety of ways. We use the term QUESTION_T to stand in for an appropriate integer type.

Question Type

Value

MultipleChoice

1

TrueFalse

2

FillInTheBlank

3

MultiSelect

4

Matching

5^

Ordering

6^

LongAnswer

7

ShortAnswer

8

Likert

9

ImageInfo

10^

TextInfo

11^

Arithmetic

12^

SignificantFigures

13^

MultiShortAnswer

14

^ QuestionInfo will be null for the these question types.

EVALULATION_T

The questions have several evaluation types. We use the term EVALULATION_T to stand in for an appropriate integer type.

Evaluation Type

Value

CaseInsensitive

0

CaseSensitive

1

RegularExpression

2

ENUMERATION_T

The questions have several evaluation types. We use the term ENUMERATION_T to stand in for an appropriate integer type.

Enumeration

Value

Numbers

1

Roman Numerals

2

UpperCase Roman Numerals

3

Letters

4

UpperCase Letters

5

No Enumeration

6

GRADINGRULE_T

The questions have grading rules. We use the term GRADINGRULE_T to stand in for an appropriate integer type.

Grading Rule

Value

All or Nothing

0

Right minus wrong

1

Correct answers

2

Equally weighted

3

STYLE_T

The questions have style options. We use the term STYLE_T to stand in for an appropriate integer type.

Style

Value

Horizontal

1

Vertical

2

Dropdown

3

CALE_T The questions have scale options. We use the term SCALE_T to stand in for an appropriate integer type.

Style

Value

One to Five

0

One to Eight

1

One to Ten

2

Agreement

3

Satisfaction

4

Frequency

5

Importance

6

Opposition

7

Question.QuestionData

When the service sends you information about a quiz question, it will send back a JSON structure like this:

{
   "QuestionId": <number:D2LID>,
   "QuestionTypeId": <number:QUESTION_T>,
   "Name": <string> | null,
   "QuestionText": { <composite:RichText> },
   "Points": <number>,
   "Difficulty": <number>,
   "Bonus": <boolean>,
   "Mandatory": <boolean>,
   "Hint": { <composite:RichText> },
   "Feedback": { <composite:RichText> },
   "LastModified": <utcdatetime>,
   "LastModifiedBy": <number:D2LID> | null,
   "SectionId": <number:D2LID>,
   "QuestionTemplateId": <number:D2LID>,
   "QuestionTemplateVersionId": <number:D2LID>,
   "QuestionInfo": { <composite:QuestionInfo> }
}

Each question type adds its own set of QuestionInfo.

Question.QuestionInfo

Multiple Choice. Question info of the MultipleChoice type (1), have these properties:

{
   "Answers": [
       {
       "PartId": <number:D2LID>,  // Added with LE API v1.45
       "Answer": { <composite:RichText> },
       "AnswerFeedback": { <composite:RichText> },
       "Weight": <number>
       }, ...
   ],
   "Randomize": <boolean>,
   "Enumeration": <number:ENUMERATION_T>
}

True-False. Question info of the TrueFalse type (2) have these properties:

{
   "TruePartId": <number:D2LID>,  // Added with LE API v1.45
   "TrueWeight": <number>,
   "TrueFeedback": { <composite:RichText> },
   "FalsePartId": <number:D2LID>,  // Added with LE API v1.45
   "FalseWeight": <number>,
   "FalseFeedback": { <composite:RichText> },
   "Enumeration": <number:ENUMERATION_T>
}

Fill In The Blank. Question info of the FillInTheBlank type (3) have these properties:

{
   "Texts": [
       {
       "Text": { <composite:RichText> }
       }, ...
   ],
   "Blanks": [
       {
       "PartId": <number:D2LID>,  // Added with LE API v1.45
       "Size": <number>,
       "Answers": [
          {
             "TextAnswer": <string>,
             "Weight": <number>,
             "EvaluationType": <number:EVALULATION_T>
          }, ...
       ]
       }, ...
   ]
}

Multi-Select. Question info of the MultiSelect type (4), have these properties:

{
    "Answers": [
        {
           "PartId": <number:D2LID>,  // Added with LE API v1.45
           "Answer": { <composite:RichText> },
           "AnswerFeedback": { <composite:RichText> },
           "IsCorrect": <boolean>
        }, ...
    ],
    "Randomize": <boolean>,
    "Enumeration": <number:ENUMERATION_T>,
    "Style": <number:STYLE_T>,
    "GradingType": <number:GRADINGRULE_T>
}

Long Answer. Question info of the LongAnswer type (7) have these properties:

{
   "PartId": <number:D2LID>,  // Added with LE API v1.45
   "EnableStudentEditor": <boolean>,
   "InitialText": { <composite:RichText> },
   "AnswerKey": { <composite:RichText> },
   "EnableAttachments": <boolean>  // Added with LE API v1.47
}

Short Answer. Question info of the ShortAnswer type (8) have these properties:

{
   "Blanks":[
       {
       "PartId": <number:D2LID>,  // Added with LE API v1.45
       "Answers":[
            {
            "Text": <string>,
            "Weight": <number>
            }, ...
       ],
       "EvaluationType": <number:EVALULATION_T>
       }, ...
   ],
   "GradingType": <number:GRADINGRULE_T>
}

Likert. Question info of the Likert type (9), have these properties:

{
   "Scale": <number:SCALE_T>,
   "NaOption": <boolean>,
   "Statements": [
       {
           "PartId": <number:D2LID>,  // Added with LE API v1.45
           "Statement": { <composite:RichText> }
       }, ...
   ],
}

Multiple Short Answer. Question info of the MultipleShortAnswer type (14) have these properties:

{
   "PartIds": [ <number:D2LID>, ... ],  // Added with LE API v1.45
   "Boxes": <number>,
   "Rows": <number>,
   "Columns": <number>,
   "Answers": [
       {
       "AnswerText": <string>,
       "Weight": <number>,
       "EvaluationType": <number:EVALUATION_T>
       }, ...
   ]
}

Actions

DELETE /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)

Delete a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Oauth2 Scopes

quizzing:quizzes:delete

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12.

DELETE /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/specialaccess/(userId)

Delete a user’s special access rule for a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

  • userId (D2LID) – User ID.

Oauth2 Scopes

quizzing:quizzes:delete

Status Codes
API Versions
  • 1.48+ – Route first appears in LMS v20.20.9.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/

Retrieve the quizzes belonging to an org unit.

Parameters
Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.34+ – Route first appears in LMS v20.19.5.

  • 1.28-1.33Deprecated as of LMS v20.20.1.

Return. This action returns an ObjectListPage JSON block containing a list of quizzes belonging to the org unit.

Note

This action only returns the quiz objects that the calling user context has permission to see. If the calling user has no permission to see any quiz objects, this action returns an empty result page.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)

Retrieve a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.34+ – Route first appears in LMS v20.19.5.

  • 1.28-1.33Deprecated as of LMS v20.20.1.

Return. This action returns a QuizReadData JSON block containing the properties of your identified quiz.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/access/

Retrieve a list of users with access to a specified quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Query Parameters
  • userId (D2LID) – Optional. Retrieve access for a single user.

  • roleId (D2LID) – Optional. Retrieve access for users with the given role.

Oauth2 Scopes

quizzing:access:read

Status Codes
API Versions
  • 1.46+ – Route first appears in LMS v20.20.7.

Return. This action returns a paged result set containing the resulting UserAccess blocks for the segment following your bookmark parameter (or the first segment if that parameter is empty or missing).

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/specialaccess/

Retrieve special access rules for users in a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.48+ – Route first appears in LMS v20.20.9.

Return. This action returns a object list page containing the resulting Quiz.SpecialAccessUserData blocks.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/specialaccess/(userId)

Retrieve a user’s special access rule for a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

  • userId (D2LID) – User ID.

Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.48+ – Route first appears in LMS v20.20.9.

Return. This action returns a Quiz.SpecialAccessData JSON block.

POST /d2l/api/le/(version)/(orgUnitId)/quizzes/

Create a new quiz.

Parameters
JSON Parameters
  • QuizData (QuizData) – Create quiz data.

Oauth2 Scopes

quizzing:quizzes:read quizzing:quizzes:create

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12.

Return. This action returns a QuizReadData JSON block containing the properties of your quiz.

PUT /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)

Update a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

JSON Parameters
  • QuizData (QuizData) – Updated quiz data.

Oauth2 Scopes

quizzing:quizzes:read quizzing:quizzes:write

Status Codes
API Versions
  • 1.34+ – Route first appears in LMS v20.19.5.

  • 1.33Deprecated as of LMS v20.20.1.

Input. Note that your provided block’s data replaces all the associated quiz’s properties on the service.

Return. This action returns a QuizReadData JSON block containing the updated properties of your quiz.

PUT /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/specialaccess/(userId)

Create or update a user’s special access rule for a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

  • userId (D2LID) – User ID.

JSON Parameters
Oauth2 Scopes

quizzing:quizzes:write

Status Codes
API Versions
  • 1.48+ – Route first appears in LMS v20.20.9.

Quiz Attempts

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/attempts/

Retrieve a list of attempts for a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Query Parameters
  • userId (D2LID) – Optional. Retrieve attempts for a single user.

Oauth2 Scopes

quizzing:attempts:read

Status Codes
API Versions
  • 1.45+ – Route first appears in LMS v20.20.6.

Return. This action returns an ObjectListPage JSON block containing a list of Quiz.QuizAttemptData belonging to the quiz.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/attempts/(attemptId)

Retrieve a quiz attempt.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

  • attemptId (D2LID) – Attempt ID.

Oauth2 Scopes

quizzing:attempts:read

Status Codes
API Versions
  • 1.44+ – Route first appears in LMS v20.20.5.

Return. This action returns a Quiz.QuizAttemptData JSON block containing the properties of your identified quiz attempt.

Quiz Categories

DELETE /d2l/api/le/(version)/(orgUnitId)/quizzes/categories/(categoryId)

Delete a quiz category.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • categoryId (D2LID) – Quiz Category ID.

Oauth2 Scopes

quizzing:quizzes:delete

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/categories/

Retrieve the quiz categories belonging to an org unit.

Parameters
Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12.

Return. This action returns an ObjectListPage JSON block containing a list of QuizCategoryReadData belonging to the org unit.

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/categories/(categoryId)

Retrieve a quiz category.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • categoryId (D2LID) – Quiz Category ID.

Oauth2 Scopes

quizzing:quizzes:read

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12

Return. This action returns a QuizCategoryReadData JSON block containing the properties of your identified quiz category.

POST /d2l/api/le/(version)/(orgUnitId)/quizzes/categories/

Create a new quiz category.

Parameters
JSON Parameters
  • categoryData (QuizCategoryData) – Quiz category data for a new quiz category.

Oauth2 Scopes

quizzing:quizzes:read quizzing:quizzes:create

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12.

Return. This action returns a QuizCategoryReadData JSON block containing the data for the newly created quiz category.

PUT /d2l/api/le/(version)/(orgUnitId)/quizzes/categories/(categoryId)

Update a quiz category.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • categoryId (D2LID) – Quiz Category ID.

JSON Parameters
Oauth2 Scopes

quizzing:quizzes:read quizzing:quizzes:write

Status Codes
API Versions
  • 1.39+ – Route first appears in LMS v20.19.12

Return. This action returns a QuizCategoryReadData JSON block containing the updated data for your quiz category.

Questions

GET /d2l/api/le/(version)/(orgUnitId)/quizzes/(quizId)/questions/

Retrieve all the questions in a quiz.

Parameters
  • version (D2LVERSION) – API version.

  • orgUnitId (D2LID) – Org unit ID.

  • quizId (D2LID) – Quiz ID.

Status Codes
API Versions
  • 1.40+ – Route first appears in LMS v20.20.1

Return. This action returns an ObjectListPage JSON block containing a list of QuestionData belonging to the quiz you specified, blocks for the segment following your bookmark parameter (or the first segment if that parameter is empty or missing).

«  Release Conditions   ·  [   home  ·   reference  ·   community   |   search  ·   index   ·  routing table   ·  scopes table   ]   ·  Surveys  »