Copy QuestionSet

This API is associated with copying questionset on the Sunbird Platform.

This API is associated with copying questionset on the Sunbird Platform.

POST /questionset/v2/copy/{questionSet_id}

ā€¢ The endpoint for Copy QuestionSet is /questionset/v2/copy ā€¢ It points to inquiry-api-service (assessment service) - /questionset/v5/copy ā€¢ You need to provide a valid Question Set Id value in {questionSet_id} field of the API URL. ā€¢ All parameters marked with * are mandatory. You must provide values for these parameters. ā€¢ Mandatory fields cannot be null or empty.

Path Parameters

Headers

Request Body

{
    "id": "api.questionset.copy",
    "ver": "5.0",
    "ts": "2023-06-29T07:51:03ZZ",
    "params": {
        "resmsgid": "8bba3dda-f81e-4659-8c05-55caed20d174",
        "msgid": null,
        "err": null,
        "status": "successful",
        "errmsg": null
    },
    "responseCode": "OK",
    "result": {
        "node_id": {
            "do_2138240203066900481600": "do_2138240204082216961601"
        },
        "versionKey": "1687502491400"
    }
}

Sample Request

{
  "request": {
    "questionset": {
      "createdBy": "User001",
      "createdFor": [
        "Sunbird"
      ],
      "name": "Sunbird-QS"
    }
  }
}

Request schema

Success result schema

cURL

curl --location -g --request POST '{{host}}/questionset/v2/copy/{questionSet_id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{api_key}}' \
--header 'X-Channel-Id: {{channel_id}}' \
--data-raw '{
  "request": {
    "questionset": {
      "createdBy": "User001",
      "createdFor": [
        "Sunbird"
      ],
      "name": "Sunbird-QS"
    }
  }
}'

Last updated