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 /retire/{QuestionSet_Id}

• The /retire/{QuestionSet_Id} endpoint executes a "Retire QuestionSet" request based on QuestionSet_Id to delete the specific Question set. • The endpoint for Retire QuestionSet is /questionset/v1/retire • It points to inquiry-api-service (assessment service) - /questionset/v4/retire • It is mandatory to provide values for parameters. • Mandatory fields cannot be null or empty.

Path Parameters

NameTypeDescription

QuestionSet_Id*

String

Please append a valid QuestionSet Id to the Request URL

Headers

NameTypeDescription

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

NameTypeDescription

request

Object

The body is the representation of the resource object for retiring a question set

{
  "id": "api.questionset.retire",
  "ver": "3.0",
  "ts": "2021-02-02T20:20:56ZZ",
  "params": {
    "resmsgid": "98c9f97d-f9d6-4da9-be88-2852294c2aaa",
    "msgid": null,
    "err": null,
    "status": "successful",
    "errmsg": null
  },
  "responseCode": "OK",
  "result": {
    "identifier": "do_113207939069968384112",
    "versionKey": "1612297249754"
  }
}

Success result schema

AttributeTypeDescription

identidier

String

Unique Question identifier

versionKey

String

Unique version key for question

cURL

curl --location -g --request DELETE '{{host}}/questionset/v1/retire/{{questionSet_id}}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{api_key}}' \
--header 'X-Channel-Id: {{channel_id}}' \
--data-raw '{
  "request": {
    "questionset": {
    }
  }
}'

Last updated