Create Question
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
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
request*
object
request
is the representation of the resource object for creating questions, which is an object of parameters that describes the question
Sample Request
Request Schema
name
String
Represents the name of the question
Yes
code
String
Represents the unique code for the question
Yes
mimeType
String
Question mime type
Yes
primaryCategory
String
PrimaryCategory agains which question schema will be validated
Yes
Success Result Schema
identifier
String
Unique Question Identifier
versionKey
String
Unique version key of Question
cURL:
Full Request Example
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.
Last updated