This API is used to create Questions on the Sunbird-inQuiry Platform.
This API is used to create Question on the Sunbird-inQuiry Platform.
POST/question/v2/create
• It points to inquiry-api-service (assessment service) - /question/v5/create
• It is mandatory to provide values for parameters marked with *.
• Mandatory fields cannot be null or empty.
• The API supports QuML 1.1 version onwards. For Detailed Question schema, Please check here
• Appropriate fields need to be passed to work questions functionally well.
Headers
Name
Type
Description
Content-Type*
String
The Content-Type entity is the media type of the resource. It should beApplication/json
Authorization*
String
You require authorization to make use of the API. Raise a request to the administrator for the use of the API. You will receive the authorization key. Specify the key received, here.
Set Bearer {{api_key}}
x-channel-id
String
Unique identification number associated with a root organization.
Request Body
Name
Type
Description
request*
object
request is the representation of the resource object for creating questions, which is an object of parameters that describes the question
Following is the complete request example of creating Multiple Choice Questions (MCQ).
This includes all the required fields to create a question object, as well as to work this question functionally some other fields were also added such as editorState, responseDeclaration, qType etc.