Create Question
This API is used to create Questions on the Sunbird-inQuiry Platform.
Last updated
This API is used to create Questions on the Sunbird-inQuiry Platform.
Last updated
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.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
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.
Attribute | Type | Description | Required |
---|---|---|---|
Attribute | 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*
object
request
is the representation of the resource object for creating questions, which is an object of parameters that describes the question
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
identifier
String
Unique Question Identifier
versionKey
String
Unique version key of Question