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": 24, "objectType": "Collection", "primaryCategory": "Course", "isRoot": true, "iconClass": "fa fa-book", "children": {}, "hierarchy": { "level1": { "name": "ModuleCourse Unit", "type": "Unit", "mimeType": "application/vnd.ekstep.content-collection", "contentType": "CourseUnit", "primaryCategory": "Course Unit", "iconClass": "fa fa-folder-o", "children": {} }, "Content": [] "level2": { } "name": "Sub-Module", }, "typelevel2": "Unit",{ "mimeTypename": "application/vnd.ekstep.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", "schema": { "propertiestype": {"Unit", "trackable": { "typemimeType": "objectapplication/vnd.ekstep.content-collection", "propertiescontentType": "CourseUnit", { "enabledprimaryCategory": {"Course Unit", "typeiconClass": "stringfa fa-folder-o", "enumchildren": [{ "YesContent",: [] } "No" }, ], "defaultlevel4": "Yes"{ }, "autoBatch"name": { "Course Unit", "type": "stringUnit", "enummimeType": ["application/vnd.ekstep.content-collection", "contentType": "YesCourseUnit", "primaryCategory": "Course Unit"No", "iconClass": ]"fa fa-folder-o", "defaultchildren": "Yes"{ } "Content": [] }, } "default": { } "enabled": "Yes", } "autoBatch": "Yes" } } }, }, "additionalPropertiesschema": false{ },"properties": { "monitorabletrackable": { "type": "arrayobject", "itemsproperties": { "typeenabled": "string", { "enumtype": ["string", "progress-reportenum",: [ "score-report" "Yes", ] "No" } }], "credentials": { "typedefault": "objectYes", "properties": { }, "enabledautoBatch": { "type": "string", "enum": [ "Yes", "No" ], "default": "Yes" } }, "default": { "enabled": "Yes", "autoBatch": "Yes" }, "additionalProperties": false }, "userConsentmonitorable": { "type": "stringarray", "enumitems": { [ "type": "Yesstring", "Noenum": [ ] "progress-report", "default": "Yesscore-report" }, ] "mimeType": { } "type": "string", }, "enumcredentials": [{ "type": "application/vnd.ekstep.content-collection""object", ]"properties": { } } } }, "languageCode": [], "forms": { "create": { "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": "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" } ] }, { "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": [ { "templateNametype": "maxLength", "required "value": [],"256", "propertiesmessage": ["Input is Exceeded" } { ] "name": "First Section", }, "fields": [ { "code": "namekeywords", "dataTypevisible": "text"true, "descriptioneditable": "Name of the content",true, "editabledataType": true"list", "inputTypename": "textKeywords", "labelrenderingHints": "Name",{ "nameclass": "Name",sb-g-col-lg-1" "placeholder": "Name", }, "renderingHintsdescription": {"Keywords for the content", "classinputType": "sb-g-col-lg-1 required""keywords", },"label": "Keywords", "requiredplaceholder": true"Enter Keywords", "visiblerequired": truefalse, "validations": [] } { ] }, "type": "max", { "valuename": "120Second Section", "fields": [ "message": "Input is Exceeded" { }"code": "primaryCategory", { "dataType": "text", "typedescription": "requiredType", "messageeditable": "Titlefalse, is required" "renderingHints": {}, ] "inputType": "select", }, "label": "Category", { "codename": "descriptionType", "dataTypeplaceholder": "text", "descriptionrequired": "Description of the content",true, "editablevisible": true, "inputTypevalidations": "textarea",[] "label": "Description",}, { "name": "Description", "placeholdercode": "DescriptionadditionalCategories", "renderingHintsdataType": { "list", "classdepends": "sb-g-col-lg-1 required"[ "primaryCategory" }, "required": true], "visibledescription": true "Additonal Category of the Content", "validationseditable": [true, { "inputType": "nestedselect", "typelabel": "maxAdditional Category", "valuename": "120Additional Category", "messageplaceholder": "InputSelect isAdditional ExceededCategory", "renderingHints": {}, { "required": false, "typevisible": "required", true } "message": "Title is required" ] }, { ] "name": "Organisation Framework Terms", }, "fields": {[ "code": "keywords",{ "visiblecode": true, "framework", "editablevisible": true, "dataTypeeditable": "list"true, "namedataType": "Keywordstext", "renderingHints": { "class": "sb-g-col-lg-1 required" }, "description": ""Keywords for, the content", "inputTypelabel": "keywordsCourse Type", "labelrequired": "keywords"true, "placeholdername": "Enter KeywordsFramework", "requiredinputType": false"framework", "validationsplaceholder": "Select [Course Type", { "output": "identifier", "typevalidations": "required",[ { "message": "Keyword is required" "type": "required", } ] "message": "Course Type is required" } ] } }, ] { "name": "Second Section"}, "fields": [ { "code": "subjectIds", { "codevisible": "primaryCategory"true, "dataTypeeditable": "text"true, "descriptiondataType": "Typelist", "editabledepends": [ true, "renderingHintsframework": {}, "inputType": "select" ], "labelsourceCategory": "Typesubject", "namerenderingHints": "Type", { "placeholderclass": "",sb-g-col-lg-1 required" "required": true}, "visibledescription": true"", "validationslabel": [ "Subjects covered in the course", { "required": true, "typename": "requiredSubject", "messageinputType": "BoardframeworkCategorySelect", is required" "placeholder": }"Select Subject(s)", ] "output": "identifier", }, "validations": [ { { "code": "additionalCategories", "dataTypetype": "listrequired", "depends "message": "Subjects Taught [is required" "primaryCategory" } ], ] "description": "Additonal Category of the Content"}, { "editable": true, "inputTypecode": "nestedselecttopicsIds", "labelvisible": true, "Additional Category", "nameeditable": true, "Additional Category", "placeholderdataType": "Selectlist", Additional Category", "renderingHintsdepends": {},[ "requiredframework": false, "visible": true "subjectIds" } ], ] }, "sourceCategory": "topic", { "namerenderingHints": "Organisation Framework Terms", {}, "fields": [ "name": "Topic", { "codedescription": "frameworkChoose a Topics", "visibleinputType": true"topicselector", "editablelabel": true, "Topics covered in the course", "dataTypeplaceholder": "textChoose Topics", "renderingHintsrequired": {false, "classoutput": "sb-g-col-lg-1 requiredidentifier" }, ] "description": "", }, "label": "Framework Type", { "requiredname": true,"Target Framework Terms", "namefields": "Framework",[ { "inputType": "select", "placeholdercode": "Selectaudience", Framework Type", "outputdataType": "identifierlist", "validationsdescription": ["Audience", { "editable": true, "typeinputType": "requirednestedselect", "message": "Framework Type is required"renderingHints": { } "class": "sb-g-col-lg-1" ] }, }, "label": "Audience Type", { "codename": "subjectIdsAudience Type", "visibleplaceholder": true"Select Audience Type", "editablerequired": truefalse, "dataTypevisible": "list"true, "sourceCategoryrange": "subject", [ "renderingHintsStudent":, { "classTeacher": "sb-g-col-lg-1 required", }"Parent", "description": "Administrator", "label": "Subjects Taught", ] "required": true}, { "name": "Subject", "inputTypecode": "selecttargetBoardIds", "placeholdervisible": true, "Select Subject", "outputdepends": "identifier"[], "validationseditable": [true, { "dataType": "list", "typesourceCategory": "requiredboard", "messageoutput": "Subjects Taught is required"identifier", }"renderingHints": { ] "class": "sb-g-col-lg-1 required" }, }, { "codedescription": "topicsIdsBoard", "visiblelabel": true "Board/Syllabus of the audience", "editablerequired": true, "dataTypename": "listBoard/Syllabus", "sourceCategoryinputType": "topicselect", "renderingHintsplaceholder": {},"Select Board/Syllabus", "namevalidations": "Topic",[ { "description": "Choose a Topics", "type": "required", "inputType": "topicselector", "labelmessage": "TopicsBoard Covered In The Course",is required" "placeholder": "Choose Topics", } "required": false, ] "output": "identifier" }, } { ] }"code": "targetMediumIds", { "visible": true, "name": "Target Framework Terms", "fieldsdepends": [ "targetBoardIds" { "code": "audience", ], "dataTypeeditable": "list"true, "descriptiondataType": "Additonal Category of the Content",list", "editablesourceCategory": true"medium", "inputTypeoutput": "selectidentifier", "renderingHints": { "class": "sb-g-col-lg-1 required" }, "label": "Audience Type",}, "namedescription": "Audience Type", "placeholderlabel": "Select Audience TypeMedium(s) of the audience", "required": falsetrue, "visiblename": true"Medium", "rangeinputType": "nestedselect", [ "placeholder": "StudentSelect Medium", "Teachervalidations",: [ "Administrator" { ] }"type": "required", { "message": "Medium is required" "code": "targetBoardIds", } "visible": true, "depends": [], "editable": true,}, { "dataType": "list", "sourceCategorycode": "boardtargetGradeLevelIds", "outputvisible": "identifier"true, "renderingHintsdepends": {[ "class": "sb-g-col-lg-1 required"targetBoardIds", "targetMediumIds" }, "description": "Board", ], "labeleditable": "Board/Syllabus",true, "requireddataType": true"list", "namesourceCategory": "Board/SyllabusgradeLevel", "inputTypeoutput": "selectidentifier", "placeholderrenderingHints": "Select Board/Syllabus",{ "validationsclass": [ "sb-g-col-lg-1 required" { }, "typedescription": "requiredClass", "messagelabel": "Board is required"Class(es) of the audience", } "required": true, ] "name": "Class", }, "inputType": "nestedselect", { "codeplaceholder": "targetMediumIdsSelect Class", "visiblevalidations": true,[ "depends": [{ "targetBoardIds" "type": "required", ], "message": "Class is required" "editable": true, "dataType": "list",} "sourceCategory": "medium", ] "output": "identifier"}, "renderingHints": { "classcode": "sb-g-col-lg-1 required"targetSubjectIds", "visible": }true, "descriptiondepends": "", [ "label": "MediumtargetBoardIds", "required": true,targetMediumIds", "nametargetGradeLevelIds": "Medium", "inputType": "select" ], "placeholdereditable": true, "Select Medium", "validationsdataType": ["list", { "sourceCategory": "subject", "typeoutput": "requiredidentifier", "messagerenderingHints": "Medium is required" { } "class": "sb-g-col-lg-1 required" ] }, }, "description": "", { "codelabel": "targetGradeLevelIdsSubject(s) of the audience", "visiblerequired": true, "dependsname": ["Subject", "targetBoardIdsinputType": "nestedselect", "targetMediumIdsplaceholder": "Select Subject", ], "validations": [ "editable": true, { "dataType": "list", "sourceCategorytype": "gradeLevelrequired", "output": "identifier", "message": "Subject is required" "renderingHints": { } "class": "sb-g-col-lg-1 required" ] }, } "description": "Class", ] "label": "Class", }, "required": true, { "name": "ClassFourth Section", "inputTypefields": "select",[ "placeholder": "Select Class",{ "validationscode": ["author", { "dataType": "text", "typedescription": "requiredAuthor of the content", "messageeditable": "Classtrue, is required" "inputType": "text", } ] "label": "Author", }, "name": "Author", { "codeplaceholder": "targetSubjectIdsAuthor", "visiblerenderingHints": { true, "dependsclass": ["sb-g-col-lg-1" "targetBoardIds"}, "targetMediumIdsrequired": false, "targetGradeLevelIdsvisible": true ] }, "editable": true,{ "dataTypecode": "listattributions", "sourceCategorydataType": "subjecttext", "outputdescription": "identifierAttributions", "renderingHintseditable": {true, "classinputType": "sb-g-col-lg-1 required""text", }"label": "Attributions", "descriptionname": "Attributions", "labelplaceholder": "SubjectAttributions", "requiredrenderingHints": { true, "nameclass": "Subject",sb-g-col-lg-1" "inputType": "select" }, "placeholderrequired": false, "Select Subject", "validationsvisible": [true }, { "type": "required",{ "messagecode": "Subject is requiredcopyright", } "dataType": "text", ] "description": "Copyright", } "editable": true, ] }, "inputType": "text", { "namelabel": "Fourth SectionCopyright", "fields": [ "name": "Copyright & year", { "codeplaceholder": "authorCopyright", "dataTyperenderingHints": "text",{ "descriptionclass": "Author of the content",sb-g-col-lg-1 required" }, "editable": true, "inputTyperequired": "text"true, "labelvisible": "Author"true, "namevalidations": "Author",[ "placeholder": "Author", { "renderingHints": { "type": "required", "class": "sb-g-col-lg-1 required" "message": "Copyright is required" }, } "required": true, ] "visible": true }, { "code": "attributionscopyrightYear", "dataType": "textnumber", "description": "AttributionsYear", "editable": true, "inputType": "text", "label": "AttributionsCopyright Year", "name": "AttributionsCopyright Year", "placeholder": "AttributionsCopyright Year", "renderingHints": { "class": "sb-g-col-lg-1 required" }, "required": true, "visible": true, },"validations": [ { "codetype": "copyrightrequired", "dataTypemessage": "text",Copyright Year is required" "description": "Copyright & year",} "editable": true, ] "inputType": "text" }, "label": "Copyright & year",{ "namecode": "Copyrightlicense", & year", "placeholderdataType": "Copyrighttext", & year", "renderingHintsdescription": {"license", "classeditable": "sb-g-col-lg-1 required"true, }"inputType": "select", "requiredlabel": true"License", "visiblename": true"license", }, "placeholder": "Select License", { "renderingHints": { "code": "license", "dataTypeclass": "text",sb-g-col-lg-1 required" "description": "license", }, "editablerequired": true, "inputTypevisible": "select"true, "labeldefaultValue": "licenseCC BY 4.0", "namevalidations": "license",[ "placeholder": "Select license", { "renderingHints": { "type": "required", "class": "sb-g-col-lg-1 required" "message": "License is required" }, } "required": true, ] "visible": true } ] } ] }, "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": truefalse, "visible": true, "validations": [ { "type": "max",{ "value": "120", "message"type": "Input is Exceeded" }maxLength", { "typevalue": "required256", "message": "TitleInput is requiredExceeded" } ] }, { "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"label": "Enter Keywords", "required": false, "validations": [ { "type": "required", "messageplaceholder": "Keyword is required"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": [ { "type": "required", ] "message": "Topic is required" } ] } ] } ] } } } } |