Retire QuestionSet
This API is used to retire the question set on the Sunbird-inQuiry Platform.
This API is used to retire the question set on the Sunbird-inQuiry Platform.
DELETE /questionset/v2/retire/{questionSet_id}
• The /questionset/v2/retire/{questionSet_id} endpoint executes a "Retire QuestionSet" request based on QuestionSet_Id to delete the specific Question set. • It points to inquiry-api-service (assessment service) - /questionset/v5/retire/{questionSet_id} • It is mandatory to provide values for parameters. • Mandatory fields cannot be null or empty.
Path Parameters
questionSet_id*
String
Please append a valid QuestionSet Id to the Request URL
Headers
Authorization*
String
All questionset 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 body is the representation of the resource object for retiring a question set
{
"id": "api.questionset.retire",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "98c9f97d-f9d6-4da9-be88-2852294c2aaa",
"msgid": null,
"err": null,
"status": "successful",
"errmsg": null
},
"responseCode": "OK",
"result": {
"identifier": "do_113207939069968384112",
"versionKey": "1612297249754"
}
}{
"id": "api.questionset.retire",
"ver": "5.0",
"ts": "2023-06-29T07:51:03ZZ",
"params": {
"resmsgid": "0608b59d-dfb9-4c0e-807f-1a19c9a163fe",
"msgid": null,
"err": "ERR_QUESTION_RETIRE",
"status": "failed",
"errmsg": "QuestionSet with identifier : do_113207939069968384112 is already Retired."
},
"responseCode": "CLIENT_ERROR",
"result": {
"messages": null
}
}Success result schema
identifier
String
Unique Question identifier
versionKey
String
Unique version key for question
cURL
Last updated
Was this helpful?