How to get a quiz ID via API

Introduction

You may need to retrieve information about a specific quiz using the LMS365 (Learn365) API, such as when you're looking at a learner's quiz answers in the QuizAttempts section. To do this, you'll need the unique quiz ID.

This article describes how to get a quiz ID using the LMS365 (Learn365) API.

 

To get a quiz ID using the LMS365 (Learn365) API, follow these steps:

To be able to use the LMS365 (Learn365) API, you should be authorized with the relevant API key on https:/api.365.systems

1. In https:/api.365.systems, navigate to the Quizzes section, expand it, find GET ​/odata​/v2​/Quizzes (this returns a list of all quizzes on the tenant), and select Try it out in the top right-hand corner.

 

the_try_it_out_button.png

 

This opens the Parameters section, which includes the query parameters fields that can be completed if you want to narrow down the response data.

 

EXAMPLE

In the $filter field, enter Title eq 'quiz title', as shown in the following image. As a result, the response will show results for this quiz only. The information returned will include the quiz ID.

narrow_down_the_search.png

 

2. Select Execute to run the request.

3. Go to the Responses block to check the results:

  • Number 2xx (for example, 200) under Code shows that the request worked correctly.
  • You can Download the data from the response to your computer in .JSON format.
  • If no query parameters were set in the Parameters block to narrow the response, in the Response body field you can see all the quizzes on the tenant and their data, including their IDs. Search via Ctrl+F for a specific quiz ID or title and copy it to use wherever you want.
  • If your request contained specific filtering parameters as described previously, the response will contain this data for this specific quiz, including its ID.

 

response_body.png

 

Was this article helpful?
0 out of 0 found this helpful

Comments

Article is closed for comments.