Copy Question

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

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

POST /question/v1/copy/{Question_Id}

• The endpoint for Copy Question is /question/v1/copy • It points to inquiry-api-service (assessment service) - /question/v4/copy • You need to provide a valid Question Id value in {Question_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.question.copy",
    "ver": "3.0",
    "ts": "2023-06-23T06:41:31ZZ",
    "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": {
    "question": {
      "createdBy": "User001",
      "createdFor": [
        "Sunbird"
      ],
      "name": "Sunbird-Question"
    }
  }
}

Request schema

Success result schema

cURL

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

Last updated