Exercises

Generate mcq format exercises

  • Check the diagnostic test to see why this api is also asynchronous

  • You can use this API to generate the mcq format exercises

Path: /api/v1/exercises/mcqs/

Method: POST

Payload Definition

  • curriculum(required): object

    • content: string

      • We will use this content to generate test questions

    • topics: list of string

      • for which topics questions need to be generated

  • grade(required): number

    • Grade of student

  • level(required): number

    • The level for which the mcqs need to be generated

  • demography(required): string

    • demography of student(urban,semi-urban, rural…)

  • interest(required): string

    • Interests of students like sports, cooking, etc…

  • generation(Mandatory): number

    • 1: The first individual in a family tree to complete at least one baccalaureate degree.

    • 2: The individual whose parents have completed at least one baccalaureate degree.

    • 3: The individual whose grandparents and parents have completed at least one baccalaureate degree.

  • question_type(required): string

    • Type of question which needs to be generated. If the type of question is passed we will generate those types of questions if not it will generate a mix of questions.

  • num_of_questions(Optional): number

    • A maximum of 25 mcqs can be generated

    • If the parameter is not passed we will generate the 10 questions which is the default value.

  • lexemes(Optional): list of string

    • words need to be emphasized while generating the passage & questions.

Request Data

Response Data

Examples

Request Data

Response Data

Check the status of the mcq exercise creation

  • Use this api to poll/check the status of mcq exercise creation

Path: /api/v1/exercises/mcqs/<mcq_exercises_id>/status/

Method: GET

Request Data

Response Data

Example

Request Data

Response Data

Last updated