Versions Compared

Key

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

Curl command to run

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

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

Default Course Config:

Code Block
{
  "objectCategoryDefinition": {
    "objectMetadata": {
      "config": {
        "frameworkMetadata": {
          "orgFWType": [
            "K-12",
            "TPD"
          ],
          "targetFWType": [
            "K-12"
          ]
        },
        "sourcingSettings": {
          "collection": {
            "maxDepth": 4,
            "objectType": "Collection",
            "primaryCategory": "Course",
            "isRoot": true,
            "iconClass": "fa fa-book",
            "children": {},
            "hierarchy": {
              "level1": {
                "name": "Course Unit",
                "type": "Unit",
                "mimeType": "application/vnd.ekstep.content-collection",
                "contentType": "CourseUnit",
                "primaryCategory": "Course Unit",
                "iconClass": "fa fa-folder-o",
                "children": {
                  "Content": []
                }
              },
              "level2": {
                "name": "Course Unit",
                "type": "Unit",
                "mimeType": "application/vnd.ekstep.content-collection",
                "contentType": "CourseUnit",
                "primaryCategory": "Course Unit",
                "iconClass": "fa fa-folder-o",
                "children": {
                  "Content": []
                }
              },
              "level3": {
                "name": "Course Unit",
                "type": "Unit",
                "mimeType": "application/vnd.ekstep.content-collection",
                "contentType": "CourseUnit",
                "primaryCategory": "Course Unit",
                "iconClass": "fa fa-folder-o",
                "children": {
                  "Content": []
                }
              },
              "level4": {
                "name": "Course Unit",
                "type": "Unit",
                "mimeType": "application/vnd.ekstep.content-collection",
                "contentType": "CourseUnit",
                "primaryCategory": "Course Unit",
                "iconClass": "fa fa-folder-o",
                "children": {
                  "Content": []
                }
              }
            }
          }
        }
      },
      "schema": {
        "properties": {
          "trackable": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "string",
                "enum": [
                  "Yes",
                  "No"
                ],
                "default": "Yes"
              },
              "autoBatch": {
                "type": "string",
                "enum": [
                  "Yes",
                  "No"
                ],
                "default": "Yes"
              }
            },
            "default": {
              "enabled": "Yes",
              "autoBatch": "Yes"
            },
            "additionalProperties": false
          },
          "monitorable": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "progress-report",
                "score-report"
              ]
            }
          },
          "credentials": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "string",
                "enum": [
                  "Yes",
                  "No"
                ],
                "default": "Yes"
              }
            },
            "default": {
              "enabled": "Yes"
            },
            "additionalProperties": false
          },
          "userConsent": {
            "type": "string",
            "enum": [
              "Yes",
              "No"
            ],
            "default": "Yes"
          },
          "mimeType": {
            "type": "string",
            "enum": [
              "application/vnd.ekstep.content-collection"
            ]
          }
        }
      }
    },
    "languageCode": [],
    "forms": {
      "create": {
        "templateName": "",
        "required": [],
        "properties": [
          {
            "name": "First Section",
            "fields": [
              {
                "code": "nameappIcon",
                "dataType": "text",
                "description": "NameappIcon of the content",
                "editable": true,
                "inputType": "textappIcon",
                "label": "TitleIcon",
                "name": "NameIcon",
                "placeholder": "TitleIcon",
                "renderingHints": {
                  "class": "sb-g-col-lg-1 required"
                },
                "required": true,
                "visible": true,
              },
 "validations": [                   {
                    "typecode": "maxname",
 
                  "valuedataType": "120text",
   
                "messagedescription": "InputName of isthe Exceededcontent",
                  }"editable": true,
                  {
  "inputType": "text",
                 "typelabel": "requiredTitle",
                "name": "Name",
    "message": "Title is required"         "placeholder": "Title",
        }        "renderingHints": {
       ]           "class": "sb-g-col-lg-1 required"
 },               {},
                "coderequired": "description"true,
                "dataTypevisible": "text"true,
                "descriptionvalidations": "Description[
  of the content",              {
  "editable": true,                 "inputTypetype": "textareamaxLength",
                    "labelvalue": "Description80",
                    "namemessage": "Description",Input is Exceeded"
                 "placeholder": "Description" },
                "renderingHints":  {
                    "classtype": "sb-g-col-lg-1 required",
                },    "message": "Title is required"
         "required": false,        }
        "visible": true,       ]
         "validations": [    },
              {
   
                "typecode": "maxdescription",
                    "valuedataType": "256text",
                "description": "Description of the content"message":,
"Input is Exceeded"              "editable": true,
   }             "inputType": "textarea",
  ]               },"label": "Description",
               { "name": "Description",
                "codeplaceholder": "keywordsDescription",
                "visiblerenderingHints": {
 true,                 "editableclass": true,"sb-g-col-lg-1"
                "dataType": "list"},
                "namerequired": "Keywords"false,
                "renderingHintsvisible": {true,
                  "classvalidations": "sb-g-col-lg-1 required" [
                  {
   },                 "descriptiontype": "KeywordsmaxLength",
 for the content",                 "inputTypevalue": "keywords256",
                    "labelmessage": "Keywords",Input is Exceeded"
                  "placeholder": "Enter Keywords",}
                ]
 "required": false,            },
    "validations": [         {
       ]         "code": "keywords",
    }             ]"visible": true,
          },      "editable": true,
   {             "namedataType": "Second Sectionlist",
                "fieldsname": "Keywords",
  [              "renderingHints": {
                  "codeclass": "primaryCategory",sb-g-col-lg-1"
                "dataType": "text"},
                "description": "TypeKeywords for the content",
                "editableinputType": false"keywords",
                "renderingHintslabel": {}"Keywords",
                "inputTypeplaceholder": "selectEnter Keywords",
                "labelrequired": "Category"false,
                "namevalidations": "Type",[]
              }
    "placeholder": "",       ]
         "required": true},
          {
            "visiblename": true"Second Section",
                "validationsfields": [
              {
 ]                },"code": "primaryCategory",
                 {"dataType": "text",
                "codedescription": "additionalCategoriesType",
                "dataTypeeditable": "list"false,
                "dependsrenderingHints": [{},
                 "inputType": "primaryCategoryselect",
                ] "label": "Category",
                "descriptionname": "Additonal Category of the ContentType",
                "editableplaceholder": true"",
                "inputTyperequired": "nestedselect"true,
                "labelvisible": "Additional Category"true,
                "namevalidations": "Additional Category", []
              },
           "placeholder": "Select Additional Category",{
                "renderingHintscode": {}"additionalCategories",
                "requireddataType": false"list",
                "visibledepends": true[
              }    "primaryCategory"
        ]           }],
          {      "description": "Additonal Category of the Content",
 "name": "Organisation Framework Terms",             "fieldseditable": true,
[                 {"inputType": "nestedselect",
                "codelabel": "frameworkAdditional Category",
                "visiblename": true"Additional Category",
                "editableplaceholder": true"Select Additional Category",
                "dataTyperenderingHints": "text"{},
                "renderingHintsrequired": {false,
                "visible": true
"class": "sb-g-col-lg-1 required"            }
    },        ]
        "description": "",  },
          {
            "labelname": "CourseOrganisation Framework TypeTerms",
                "requiredfields": true,[
              {
 "name": "Framework",
                "inputTypecode": "selectframework",
                "placeholdervisible": "Select Course Type"true,
                "outputeditable": "identifier"true,
                "validationsdataType": ["text",
                "renderingHints":  {
                    "typeclass": "sb-g-col-lg-1 required",
                 },
  "message": "Course Type is required"          "description": "",
       }         "label": "Course Type",
     ]           "required": true,
  },               {"name": "Framework",
                "codeinputType": "subjectIdsframework",
                "visibleplaceholder": true"Select Course Type",
                "editableoutput": true"identifier",
                "dataTypevalidations": "list", [
                  {
  "sourceCategory": "subject",                 "renderingHintstype": {"required",
                    "classmessage": "sb-g-col-lg-1Course Type is required"

               },   }
             "description": "",  ]
              "label": "Subjects covered in the course"},
              {
 "required": true,                 "namecode": "SubjectsubjectIds",
                "inputTypevisible": "select"true,
                "placeholdereditable": "Select Subject(s)"true,
                "outputdataType": "identifierlist",
                "validationsdepends": [
                  {"framework"
                    "type": "required",
],
                   "messagesourceCategory": "Subjects Taught is required"subject",
                "renderingHints": {
}                 ] "class": "sb-g-col-lg-1 required"
           },               {},
                "codedescription": "topicsIds",
                "visiblelabel": true "Subjects covered in the course",
                "editablerequired": true,
                "dataTypename": "listSubject",
                "sourceCategoryinputType": "topicframeworkCategorySelect",
                "renderingHintsplaceholder": {}"Select Subject(s)",
                "nameoutput": "Topicidentifier",
                "descriptionvalidations": [
 "Choose a Topics",               {
 "inputType": "topicselector",                   "labeltype": "Topicsrequired",
covered in the course",                 "placeholdermessage": "Choose Topics",Subjects Taught is required"
                "required": false, }
               "output": "identifier" ]
              },
            ]  {
          },      "code": "topicsIds",
   {             "namevisible": true,
"Target Framework Terms",              "fieldseditable": [true,
                 {"dataType": "list",
                "codedepends": "audience",[
                 "dataType": "listframework",
                 "description": "AudiencesubjectIds",
                "editable": true],
                "inputTypesourceCategory": "selecttopic",
                "renderingHints": {
 },
                "classname": "sb-g-col-lg-1 required"Topic",
                "description": "Choose a }Topics",
                "labelinputType": "Audience Typetopicselector",
                "namelabel": "Audience TypeTopics covered in the course",
                "placeholder": "SelectChoose Audience TypeTopics",
                "required": false,
                "visibleoutput": true, "identifier"
              }
   "range": [        ]
          "Student"},
          {
       "Teacher",     "name": "Target Framework Terms",
            "Parentfields",: [
              {
  "Administrator"              "code": "audience",
 ]                }"dataType": "list",
              {                 "code"description": "targetBoardIdsAudience",
                "visibleeditable": true,
                "dependsinputType": []"nestedselect",
                "editablerenderingHints": {
 true,                 "dataTypeclass": "list",sb-g-col-lg-1"
                "sourceCategory": "board"},
                "outputlabel": "identifierAudience Type",
                "renderingHintsname": {
 "Audience Type",
                "classplaceholder": "sb-g-col-lg-1 required"Select Audience Type",
                }"required": false,
                "descriptionvisible": "Board"true,
                "labelrange": "Board/Syllabus of the audience",[
                  "requiredStudent":,
true,                 "name": "Board/SyllabusTeacher",
                "inputType":  "selectParent",
                  "placeholderAdministrator":
"Select Board/Syllabus",               ]
 "validations": [             },
         {     {
                "typecode": "requiredtargetBoardIds",
                "visible": true,
  "message": "Board is required"           "depends": [],
      }          "editable": true,
     ]           "dataType": "list",
  },               {"sourceCategory": "board",
                "codeoutput": "targetMediumIdsidentifier",
                "visiblerenderingHints": true,{
                  "dependsclass": [
"sb-g-col-lg-1 required"
                },
"targetBoardIds"                 ]"description": "Board",
                "editablelabel": true"Board/Syllabus of the audience",
                "dataTyperequired": "list"true,
                "sourceCategoryname": "mediumBoard/Syllabus",
                "outputinputType": "identifierselect",
                "renderingHintsplaceholder": {
"Select Board/Syllabus",
                 "classvalidations": "sb-g-col-lg-1 required"[
                 }, {
               "description": ""     "type": "required",
                    "labelmessage": "Medium(s) of the audience",Board is required"
                "required": true, }
               "name": "Medium", ]
                "inputType": "select"},
              {
 "placeholder": "Select Medium",
                "validationscode": ["targetMediumIds",
                  {
 "visible": true,
                  "typedepends": "required",[
                  "targetBoardIds"
 "message": "Medium is required"            ],
      }          "editable": true,
     ]           "dataType": "list",
  },               {"sourceCategory": "medium",
                "codeoutput": "targetGradeLevelIdsidentifier",
                "visiblerenderingHints": true,{
                  "dependsclass": [
"sb-g-col-lg-1 required"
                },
"targetBoardIds",                "description":   "targetMediumIds",
                ] "label": "Medium(s) of the audience",
                "editablerequired": true,
                "dataTypename": "listMedium",
                "sourceCategoryinputType": "gradeLevelnestedselect",
                "outputplaceholder": "identifierSelect Medium",
                "renderingHintsvalidations": {[
                  {
  "class": "sb-g-col-lg-1 required"                 },"type": "required",
                    "descriptionmessage": "Class",Medium is required"
                  }
     "label": "Class(es) of the audience",           ]
          "required": true,   },
             "name": "Class", {
                "inputTypecode": "selecttargetGradeLevelIds",
                "placeholdervisible": "Select Class"true,
                "validationsdepends": [
                  {
 "targetBoardIds",
                  "typetargetMediumIds":
 "required",               ],
     "message": "Class is required"        "editable": true,
         }       "dataType": "list",
        ]               },
     "sourceCategory": "gradeLevel",
        {                 "code"output": "targetSubjectIdsidentifier",
                "visiblerenderingHints": true,{
                  "dependsclass": [
"sb-g-col-lg-1 required"
                 "targetBoardIds"},
                "description":  "targetMediumIdsClass",
                "label": "Class(es) "targetGradeLevelIds"of the audience",
                "required": ]true,
                "editablename": true"Class",
                "dataTypeinputType": "listnestedselect",
                "sourceCategoryplaceholder": "subjectSelect Class",
                "outputvalidations": "identifier",[
                 "renderingHints": {
                    "classtype": "sb-g-col-lg-1 required",
                },        "message": "Class is required"
        "description": "",         }
       "label": "Subject(s) of the audience",     ]
           "required": true,  },
              "name": "Subject",{
                 "inputTypecode": "selecttargetSubjectIds",
                "placeholdervisible": "Select Subject"true,
                "validationsdepends": [
                  {"targetBoardIds",
                    "typetargetMediumIds": "required",,
                  "targetGradeLevelIds"
   "message": "Subject is required"          ],
        }        "editable": true,
       ]         "dataType": "list",
    }             ]"sourceCategory": "subject",
          },      "output": "identifier",
   {             "namerenderingHints": "Fourth Section",{
                  "fieldsclass": [ "sb-g-col-lg-1 required"
                {},
                "codedescription": "author",
                "dataTypelabel": "textSubject(s) of the audience",
                "descriptionrequired": "Author of the content"true,
                "editablename": true"Subject",
                "inputType": "textnestedselect",
                "labelplaceholder": "AuthorSelect Subject",
                "namevalidations": "Author", [
                  {
  "placeholder": "Author",                 "renderingHintstype": "required",
{                    "classmessage": "sb-g-col-lg-1Subject is required"
                },  }
              "required": false, ]
              }
"visible": true           ]
   },        },
      {    {
            "codename": "attributionsFourth Section",
  
             "dataTypefields": "text",[
              {
 "description": "Attributions",
                "editablecode": true"author",
                "inputTypedataType": "text",
                "labeldescription": "AttributionsAuthor of the content",
                "nameeditable": "Attributions"true,
                "inputType": "text",
                "label": "Author",
                "name": "Author",
                "placeholder": "AttributionsAuthor",
                "renderingHints": {
                  "class": "sb-g-col-lg-1"
                },
                "required": false,
                "visible": true
              },
              {
 "required": false,               "code": "attributions",
                "dataType": "text",
                "description": "Attributions",
                "editable": true,
                "inputType": "text",
                "label": "Attributions",
                "name": "Attributions",
                "placeholder": "Attributions",
                "renderingHints": {
                  "class": "sb-g-col-lg-1"
                },
                "required": false,
                "visible": true
              },
              {
                "code": "copyright",
                "dataType": "text",
                "description": "Copyright",
                "editable": true,
                "inputType": "text",
                "label": "Copyright",
                "name": "Copyright & year",
                "placeholder": "Copyright",
                "renderingHints": {
                  "class": "sb-g-col-lg-1 required"
                },
                "required": true,
                "visible": true,
                "validations": [
                  {
                    "type": "required",
                    "message": "Copyright is required"
                  }
                ]
              },
              {
                "code": "copyrightYear",
                "dataType": "number",
                "description": "Year",
                "editable": true,
                "inputType": "text",
                "label": "Copyright Year",
                "name": "Copyright Year",
                "placeholder": "Copyright Year",
                "renderingHints": {
                  "class": "sb-g-col-lg-1 required"
                },
                "required": true,
                "visible": true,
                "validations": [
                  {
                    "type": "required",
                    "message": "Copyright Year is required"
                  }
                ]
              },
              {
                "code": "license",
                "dataType": "text",
                "description": "license",
                "editable": true,
                "inputType": "select",
                "label": "License",
                "name": "license",
                "placeholder": "Select License",
                "renderingHints": {
                  "class": "sb-g-col-lg-1 required"
                },
                "required": true,
                "visible": true,
                "defaultValue": "CC BY 4.0",
                "validations": [
                  {
                    "type": "required",
                    "message": "License is required"
                  }
                ]
              }
            ]
          }
        ]
      },
      "search": {
        "templateName": "",
        "required": [],
        "properties": [
          {
            "code": "primaryCategory",
            "dataType": "list",
            "description": "Type",
            "editable": true,
            "default": [],
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "inputType": "nestedselect",
            "label": "Content Type(s)",
            "name": "Type",
            "placeholder": "Select ContentType",
            "required": false,
            "visible": true
          },
          {
            "code": "board",
            "visible": true,
            "depends": [],
            "editable": true,
            "dataType": "list",
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "description": "Board",
            "label": "Board",
            "required": false,
            "name": "Board",
            "inputType": "select",
            "placeholder": "Select Board",
            "output": "name"
          },
          {
            "code": "medium",
            "visible": true,
            "depends": [
              "board"
            ],
            "editable": true,
            "dataType": "list",
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "description": "",
            "label": "Medium(s)",
            "required": false,
            "name": "Medium",
            "inputType": "nestedselect",
            "placeholder": "Select Medium",
            "output": "name"
          },
          {
            "code": "gradeLevel",
            "visible": true,
            "depends": [
              "board",
              "medium"
            ],
            "editable": true,
            "default": "",
            "dataType": "list",
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "description": "Class",
            "label": "Class(es)",
            "required": false,
            "name": "Class",
            "inputType": "nestedselect",
            "placeholder": "Select Class",
            "output": "name"
          },
          {
            "code": "subject",
            "visible": true,
            "depends": [
              "board",
              "medium",
              "gradeLevel"
            ],
            "editable": true,
            "default": "",
            "dataType": "list",
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "description": "",
            "label": "Subject(s)",
            "required": false,
            "name": "Subject",
            "inputType": "nestedselect",
            "placeholder": "Select Subject",
            "output": "name"
          },
          {
            "code": "topic",
            "visible": true,
            "editable": true,
            "dataType": "list",
            "depends": [
              "board",
              "medium",
              "gradeLevel",
              "subject"
            ],
            "default": "",
            "renderingHints": {
              "class": "sb-g-col-lg-1"
            },
            "name": "Topic",
            "description": "Choose a Topics",
            "inputType": "topicselector",
            "label": "Topic(s)",
            "placeholder": "Choose Topics",
            "required": false
          }
        ]
      },
      "unitMetadata": {
        "templateName": "",
        "required": [],
        "properties": [
          {
            "name": "First Section",
            "fields": [
              {
                "code": "name",
                "dataType": "text",
                "description": "Name of the content",
                "editable": true,
                "inputType": "text",
                "label": "Title",
                "name": "Title",
                "placeholder": "Title",
                "renderingHints": {
                  "class": "sb-g-col-lg-1 required"
                },
                "required": true,
                "visible": true,
                "validations": [
                  {
                    "type": "maxLength",
                    "value": "120",
                    "message": "Input is Exceeded"
                  },
                  {
                    "type": "required",
                    "message": "Title is required"
                  }
                ]
              },
              {
                "code": "description",
                "dataType": "text",
                "description": "Description of the content",
                "editable": true,
                "inputType": "textarea",
                "label": "Description",
                "name": "Description",
                "placeholder": "Description",
                "renderingHints": {
                  "class": "sb-g-col-lg-1"
                },
                "required": false,
                "visible": true,
                "validations": [
                  {
                    "type": "maxLength",
                    "value": "256",
                    "message": "Input is Exceeded"
                  }
                ]
              },
              {
                "code": "keywords",
                "visible": true,
                "editable": true,
                "dataType": "list",
                "name": "Keywords",
                "renderingHints": {
                  "class": "sb-g-col-lg-1"
                },
                "index": 3,
                "description": "Keywords for the content",
                "inputType": "keywords",
                "label": "Keywords",
                "placeholder": "Enter Keywords",
                "required": false,
                "validations": []
              },
              {
                "code": "topic",
                "visible": true,
                "depends": [],
                "editable": true,
                "dataType": "list",
                "renderingHints": {},
                "name": "Topic",
                "description": "Choose a Topics",
                "index": 11,
                "inputType": "topicselector",
                "label": "Topics",
                "placeholder": "Choose Topics",
                "required": false,
                "validations": []
              }
            ]
          }
        ]
      }
    }
  }
}

NCERT Tenant Course Config:

Curl command to create NCERT tenant-level course config .

Code Block
curl --location --request POST '{{host}}/object/category/definition/v4/create' \
--header 'Content-Type: application/json' \
--data-raw '{
  "request": {
  
  }
}'

targetFWIds default value-added as ekstep_ncert_k-12. Please update this value as CBSE K-12 Framework value and Pass the below body into the request in the above curl command

Code Block
{
    "objectCategoryDefinition": {
      "categoryId": "obj-cat:course",
      "targetObjectType": "Collection",
      "channel": "<NCERT Channel Value>",
      "objectMetadata": {
        "config": {
          "frameworkMetadata": {
            "orgFWType": [
              "K-12",
              "TPD"
            ]
          },
          "sourcingSettings": {
            "collection": {
              "maxDepth": 4,
              "objectType": "Collection",
              "primaryCategory": "Course",
              "isRoot": true,
              "iconClass": "fa fa-book",
              "children": {},
              "hierarchy": {
                "level1": {
                  "name": "Course Unit",
                  "type": "Unit",
                  "mimeType": "application/vnd.ekstep.content-collection",
                  "contentType": "CourseUnit",
                  "primaryCategory": "Course Unit",
                  "iconClass": "fa fa-folder-o",
                  "children": {
                    "Content": []
                  }
                },
                "level2": {
                  "name": "Course Unit",
                  "type": "Unit",
                  "mimeType": "application/vnd.ekstep.content-collection",
                  "contentType": "CourseUnit",
                  "primaryCategory": "Course Unit",
                  "iconClass": "fa fa-folder-o",
                  "children": {
                    "Content": []
                  }
                },
                "level3": {
                  "name": "Course Unit",
                  "type": "Unit",
                  "mimeType": "application/vnd.ekstep.content-collection",
                  "contentType": "CourseUnit",
                  "primaryCategory": "Course Unit",
                  "iconClass": "fa fa-folder-o",
                  "children": {
                    "Content": []
                  }
                },
                "level4": {
                  "name": "Course Unit",
                  "type": "Unit",
                  "mimeType": "application/vnd.ekstep.content-collection",
                  "contentType": "CourseUnit",
                  "primaryCategory": "Course Unit",
                  "iconClass": "fa fa-folder-o",
                  "children": {
                    "Content": []
                  }
                }
              }
            }
          }
        },
        "schema": {
          "properties": {
            "trackable": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "string",
                  "enum": [
                    "Yes",
                    "No"
                  ],
                  "default": "Yes"
                },
                "autoBatch": {
                  "type": "string",
                  "enum": [
                    "Yes",
                    "No"
                  ],
                  "default": "Yes"
                }
              },
              "default": {
                "enabled": "Yes",
                "autoBatch": "Yes"
              },
              "additionalProperties": false
            },
            "monitorable": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "progress-report",
                  "score-report"
                ]
              }
            },
            "credentials": {
              "type": "object",
              "properties": {
                "enabled": {
                  "type": "string",
                  "enum": [
                    "Yes",
                    "No"
                  ],
                  "default": "Yes"
                }
              },
              "default": {
                "enabled": "Yes"
              },
              "additionalProperties": false
            },
            "userConsent": {
              "type": "string",
              "enum": [
                "Yes",
                "No"
              ],
              "default": "Yes"
            },
            "mimeType": {
              "type": "string",
              "enum": [
                "application/vnd.ekstep.content-collection"
              ]
            },
            "targetFWIds": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "default": [
                "ekstep_ncert_k-12"
              ]
            }
          }
        }
      },
      "languageCode": [],
      "forms": {
        "create": {
          "templateName": "",
          "required": [],
          "properties": [
            {
              "name": "First Section",
              "fields": [
                {
                  "code": "appIcon",
                  "dataType": "text",
                  "description": "appIcon of the content",
                  "editable": true,
                  "inputType": "appIcon",
                  "label": "Icon",
                  "name": "Icon",
                  "placeholder": "Icon",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "required": true,
                  "visible": true
                },
                {
                  "code": "name",
                  "dataType": "text",
                  "description": "Name of the content",
                  "editable": true,
                  "inputType": "text",
                  "label": "Title",
                  "name": "Name",
                  "placeholder": "Title",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "required": true,
                  "visible": true,
                  "validations": [
                    {
                      "type": "maxLength",
                      "value": "80",
                      "message": "Input is Exceeded"
                    },
                    {
                      "type": "required",
                      "message": "Title is required"
                    }
                  ]
                },
                {
                  "code": "description",
                  "dataType": "text",
                  "description": "Description of the content",
                  "editable": true,
                  "inputType": "textarea",
                  "label": "Description",
                  "name": "Description",
                  "placeholder": "Description",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "required": false,
                  "visible": true,
                  "validations": [
                    {
                      "type": "maxLength",
                      "value": "256",
                      "message": "Input is Exceeded"
                    }
                  ]
                },
                {
                  "code": "keywords",
                  "visible": true,
                  "editable": true,
                  "dataType": "list",
                  "name": "Keywords",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "description": "Keywords for the content",
                  "inputType": "keywords",
                  "label": "Keywords",
                  "placeholder": "Enter Keywords",
                  "required": false,
                  "validations": []
                }
              ]
            },
            {
              "name": "Second Section",
              "fields": [
                {
                  "code": "primaryCategory",
                  "dataType": "text",
                  "description": "Type",
                  "editable": false,
                  "renderingHints": {},
                  "inputType": "select",
                  "label": "Category",
                  "name": "Type",
                  "placeholder": "",
                  "required": true,
                  "visible": true,
                  "validations": []
                },
                {
                  "code": "additionalCategories",
                  "dataType": "list",
                  "depends": [
                    "primaryCategory"
                  ],
                  "description": "Additonal Category of the Content",
                  "editable": true,
                  "inputType": "nestedselect",
                  "label": "Additional Category",
                  "name": "Additional Category",
                  "placeholder": "Select Additional Category",
                  "renderingHints": {},
                  "required": false,
                  "visible": true
                }
              ]
            },
            {
              "name": "Organisation Framework Terms",
              "fields": [
                {
                  "code": "framework",
                  "visible": true,
                  "editable": true,
                  "dataType": "text",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "",
                  "label": "Course Type",
                  "required": true,
                  "name": "Framework",
                  "inputType": "framework",
                  "placeholder": "Select Course Type",
                  "output": "identifier",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Course Type is required"
                    }
                  ]
                },
                {
                  "code": "subjectIds",
                  "visible": true,
                  "editable": true,
                  "dataType": "list",
                  "depends": [
                    "framework"
                  ],
                  "sourceCategory": "subject",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "",
                  "label": "Subjects covered in the course",
                  "required": true,
                  "name": "Subject",
                  "inputType": "frameworkCategorySelect",
                  "placeholder": "Select Subject(s)",
                  "output": "identifier",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Subjects Taught is required"
                    }
                  ]
                },
                {
                  "code": "topicsIds",
                  "visible": true,
                  "editable": true,
                  "dataType": "list",
                  "depends": [
                    "framework",
                    "subjectIds"
                  ],
                  "sourceCategory": "topic",
                  "renderingHints": {},
                  "name": "Topic",
                  "description": "Choose a Topics",
                  "inputType": "topicselector",
                  "label": "Topics covered in the course",
                  "placeholder": "Choose Topics",
                  "required": false,
                  "output": "identifier"
                }
              ]
            },
            {
              "name": "Target Framework Terms",
              "fields": [
                {
                  "code": "audience",
                  "dataType": "list",
                  "description": "Audience",
                  "editable": true,
                  "inputType": "nestedselect",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "label": "Audience Type",
                  "name": "Audience Type",
                  "placeholder": "Select Audience Type",
                  "required": false,
                  "visible": true,
                  "range": [
                    "Student",
                    "Teacher",
                    "Parent",
                    "Administrator"
                  ]
                },
                {
                  "code": "targetBoardIds",
                  "visible": true,
                  "depends": [],
                  "editable": true,
                  "dataType": "list",
                  "sourceCategory": "board",
                  "output": "identifier",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "Board",
                  "label": "Board/Syllabus of the audience",
                  "required": true,
                  "name": "Board/Syllabus",
                  "inputType": "select",
                  "placeholder": "Select Board/Syllabus",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Board is required"
                    }
                  ]
                },
                {
                  "code": "targetMediumIds",
                  "visible": true,
                  "depends": [
                    "targetBoardIds"
                  ],
                  "editable": true,
                  "dataType": "list",
                  "sourceCategory": "medium",
                  "output": "identifier",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "",
                  "label": "Medium(s) of the audience",
                  "required": true,
                  "name": "Medium",
                  "inputType": "nestedselect",
                  "placeholder": "Select Medium",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Medium is required"
                    }
                  ]
                },
                {
                  "code": "targetGradeLevelIds",
                  "visible": true,
                  "depends": [
                    "targetBoardIds",
                    "targetMediumIds"
                  ],
                  "editable": true,
                  "dataType": "list",
                  "sourceCategory": "gradeLevel",
                  "output": "identifier",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "Class",
                  "label": "Class(es) of the audience",
                  "required": true,
                  "name": "Class",
                  "inputType": "nestedselect",
                  "placeholder": "Select Class",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Class is required"
                    }
                  ]
                },
                {
                  "code": "targetSubjectIds",
                  "visible": true,
                  "depends": [
                    "targetBoardIds",
                    "targetMediumIds",
                    "targetGradeLevelIds"
                  ],
                  "editable": true,
                  "dataType": "list",
                  "sourceCategory": "subject",
                  "output": "identifier",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "description": "",
                  "label": "Subject(s) of the audience",
                  "required": true,
                  "name": "Subject",
                  "inputType": "nestedselect",
                  "placeholder": "Select Subject",
                  "validations": [
                    {
                      "type": "required",
                      "message": "Subject is required"
                    }
                  ]
                }
              ]
            },
            {
              "name": "Fourth Section",
              "fields": [
                {
                  "code": "author",
                  "dataType": "text",
                  "description": "Author of the content",
                  "editable": true,
                  "inputType": "text",
                  "label": "Author",
                  "name": "Author",
                  "placeholder": "Author",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "required": false,
                  "visible": true
                },
                {
                  "code": "attributions",
                  "dataType": "text",
                  "description": "Attributions",
                  "editable": true,
                  "inputType": "text",
                  "label": "Attributions",
                  "name": "Attributions",
                  "placeholder": "Attributions",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "required": false,
                  "visible": true
                },
                {
                  "code": "copyright",
                  "dataType": "text",
                  "description": "Copyright",
                  "editable": true,
                  "inputType": "text",
                  "label": "Copyright",
                  "name": "Copyright & year",
                  "placeholder": "Copyright",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "required": true,
                  "visible": true,
                  "validations": [
                    {
                      "type": "required",
                      "message": "Copyright is required"
                    }
                  ]
"visible": true               },
                {
                  "code": "copyrightcopyrightYear",
                  "dataType": "textnumber",
                  "description": "CopyrightYear",
                  "editable": true,
                  "inputType": "text",
                  "label": "Copyright Year",
                  "name": "Copyright & yearYear",
                  "placeholder": "Copyright & yearYear",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "required": true,
                  "visible": true,
              },    "validations": [
         {           {
     "code": "copyrightYear",                 "dataTypetype": "textrequired",
     
          "description": "Year",           "message": "Copyright Year is   required"editable":
true,                 "inputType": "text",  }
              "label": "Copyright Year",  ]
              "name": "Copyright Year"},
                "placeholder": "Copyright Year",{
                  "renderingHintscode": {"license",
                  "class": "sb-g-col-lg-1 required"dataType": "text",
                }  "description": "license",
                  "requirededitable": true,
                  "visibleinputType": true"select",
              },    "label": "License",
                  "name": "license",
   {                 "codeplaceholder": "licenseSelect License",
                  "dataTyperenderingHints": "text", {
                    "descriptionclass": "license",sb-g-col-lg-1 required"
                 "editable": true},
                  "inputTyperequired": "select"true,
                  "labelvisible": "License"true,
                  "namedefaultValue": "licenseCC BY 4.0",
                  "placeholdervalidations": [
"Select  License",                 "renderingHints": {
                      "classtype": "sb-g-col-lg-1 required",
                    },  "message": "License is required"
           "required": true,        }
        "visible": true,         ]
       "defaultValue": "CC BY 4.0"       }
       }       ]
     ]       }
   }       ]
 ]       },
        "search": {
          "templateName": "",
          "required": [],
          "properties": [
            {
              "code": "primaryCategory",
              "dataType": "list",
              "description": "Type",
              "editable": true,
              "default": [],
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "inputType": "nestedselect",
              "label": "Content Type(s)",
              "name": "Type",
              "placeholder": "Select ContentType",
              "required": false,
              "visible": true
            },
            {
              "code": "board",
              "visible": true,
              "depends": [],
              "editable": true,
              "dataType": "list",
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "description": "Board",
              "label": "Board",
              "required": false,
              "name": "Board",
              "inputType": "select",
              "placeholder": "Select Board",
              "output": "name"
            },
            {
              "code": "medium",
              "visible": true,
              "depends": [
                "board"
              ],
              "editable": true,
              "dataType": "list",
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "description": "",
              "label": "Medium(s)",
              "required": false,
              "name": "Medium",
              "inputType": "nestedselect",
              "placeholder": "Select Medium",
              "output": "name"
            },
            {
              "code": "gradeLevel",
              "visible": true,
              "depends": [
                "board",
                "medium"
              ],
              "editable": true,
              "default": "",
              "dataType": "list",
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "description": "Class",
              "label": "Class(es)",
              "required": false,
              "name": "Class",
              "inputType": "nestedselect",
              "placeholder": "Select Class",
              "output": "name"
            },
            {
              "code": "subject",
              "visible": true,
              "depends": [
                "board",
                "medium",
                "gradeLevel"
              ],
              "editable": true,
              "default": "",
              "dataType": "list",
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "description": "",
              "label": "Subject(s)",
              "required": false,
              "name": "Subject",
              "inputType": "nestedselect",
              "placeholder": "Select Subject",
              "output": "name"
            },
            {
              "code": "topic",
              "visible": true,
              "editable": true,
              "dataType": "list",
              "depends": [
                "board",
                "medium",
                "gradeLevel",
                "subject"
              ],
              "default": "",
              "renderingHints": {
                "class": "sb-g-col-lg-1"
              },
              "name": "Topic",
              "description": "Choose a Topics",
              "inputType": "topicselector",
              "label": "Topic(s)",
              "placeholder": "Choose Topics",
              "required": false
            }
          ]
        },
        "unitMetadata": {
          "templateName": "",
          "required": [],
          "properties": [
            {
              "name": "First Section",
              "fields": [
                {
                  "code": "name",
                  "dataType": "text",
                  "description": "Name of the content",
                  "editable": true,
                  "inputType": "text",
                  "label": "Title",
                  "name": "Title",
                  "placeholder": "Title",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1 required"
                  },
                  "required": true,
                  "visible": true,
                  "validations": [
                    {
                      "type": "maxmaxLength",
                      "value": "120",
                      "message": "Input is Exceeded"
                    },
                    {
                      "type": "required",
                      "message": "Title is required"
                    }
                  ]
                },
                {
                  "code": "description",
                  "dataType": "text",
                  "description": "Description of the content",
                  "editable": true,
                  "inputType": "textarea",
                  "label": "Description",
                  "name": "Description",
                  "placeholder": "Description",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
required"                  },
                  "required": false,
                  "visible": true,
                  "validations": [
                    {
                      "type": "maxmaxLength",
                      "value": "256",
                      "message": "Input is Exceeded"
                    }
                  ]
                },
                {
                  "code": "keywords",
                  "visible": true,
                  "editable": true,
                  "dataType": "list",
                  "name": "Keywords",
                  "renderingHints": {
                    "class": "sb-g-col-lg-1"
                  },
                  "index": 3,
                  "description": "Keywords for the content",
                  "inputType": "keywords",
                  "label": "Keywords",
                  "placeholder": "Enter Keywords",
                  "required": false,
                  "validations": []
                ]},
              },             {
 {                 "code": "topic",
                  "visible": true,
                  "depends": [],
                  "editable": true,
                  "dataType": "list",
                  "renderingHints": {},
                  "name": "Topic",
                  "description": "Choose a Topics",
                  "index": 11,
                  "inputType": "topicselector",
                  "label": "Topics",
                  "placeholder": "Choose Topics",
                  "required": false,
                  "validations": []
                ]}
              }]
            ]}
          }]
        ]}
      }
    }
  } }