Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Curl command to update Primary Category Definition

Code Block
curl -L -X PATCH '{{host}}/object/category/definition/v4/update/obj-cat:multiple-choice-question_question_all' \
-H 'Content-Type: application/json' \
--data-raw '{
  "request": {
    
  }
}'

Pass the below body into the request in the above curl command

Code Block
{
  "request": {
    "objectCategoryDefinition": {
      "objectMetadata": {
        "config": {},
        "schema": {
          "properties": {
            "mimeType": {
              "type": "string",
              "enum": [
                "application/vnd.sunbird.question"
              ]
            },
            "interactionTypes": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "choice"
                ]
              }
            }
          }
        }
      }
    }
  }
}