Reject QuestionSet
This API is used to reject the question set, which is sent for review on the Sunbird-inQuiry Platform.
This API is used to reject the question set, which is sent for review on the Sunbird-inQuiry Platform.
POST /questionset/v2/reject/{questionSet_Id}}
• The /questionset/v2/reject/{questionSet_Id} endpoint executes the "Rejecting QuestionSet" request based on parameters provided as metadata in the request body. • It points to inquiry-api-service (assessment service) - /questionset/v5/reject/{questionSet_Id} • You need to provide a valid QuestionSet Id value in the {questionSet_Id} field of the API URL. • It is mandatory to provide values for parameters marked with * • Mandatory fields cannot be null or empty.
Path Parameters
questionSet_Id*
String
Append a valid Question Set Id To the Request URL
Headers
Content-Type*
String
The Content-Type entity is the media type of the resource. Possible media types can be: Application/json
Authorization*
String
All content APIs require authorization for use. Specify the authorization key received from the administrator when placing the request for use of the API. Set Bearer {{api_key}}
x-channel-id
String
Unique identification number associated with a root organization.
Request Body
request
Object
The metadata about the questionset to be rejected
{
"id": "api.questionset.reject",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "a505a723-616f-4e3f-9a52-2f0d9924f732",
"msgid": null,
"err": null,
"status": "successful",
"errmsg": null
},
"responseCode": "OK",
"result": {
"identifier": "do_113208406116417536122",
"versionKey": "1612354279918"
}
}{
"id": "api.questionset.reject",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "cbcaa290-e132-47e6-b4d9-94212037195d",
"msgid": null,
"err": "ERR_QUESTION_SET_REJECT",
"status": "failed",
"errmsg": "QuestionSet is not in 'Review' state for identifier: do_113208406116417536122"
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
}{
"id": "api.questionset.reject",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "6fc0bd55-e99e-4ae1-80e2-7275458258ab",
"msgid": null,
"err": "NOT_FOUND",
"status": "failed",
"errmsg": "Error! Node(s) doesn't Exists. | [Invalid Node Id.]: do_1132084061164175361221"
},
"responseCode": "RESOURCE_NOT_FOUND",
"result": {
"messages": null
}
}{
"id": "api.questionset.reject",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "f234a6f0-3ac4-11eb-b0a2-8d5c9f561887",
"msgid": null,
"status": "failed",
"err": null,
"errmsg": null
},
"responseCode": "SERVER_ERROR",
"result": {}
}Request Sample
{
"request": {
"questionset": {
"rejectComment": "Rejected for testing"
}
}
}Request Schema
rejectComment
String
Question set rejection comment/reason
Yes
Success result schema
identifier
String
Unique Question identifier
versionKey
String
Unique version key for question
cURL
curl --location -g --request POST '{{host}}/questionset/v2/reject/{{questionSet_id}}' \
-H 'Authorization: Bearer {{api_key}}' \
-H 'Content-Type: application/json' \
--data-raw '{"request":{"questionset":{"rejectComment":"Not aligned"}}}' \
--compressedLast updated
Was this helpful?