Description: To create a new course in an academy.
Request URL: /api/v4/<orgId>/courses.json (How do I get my OrgId?)
Method: POST
OAuth scope: TrainerCentral.courseapi.CREATE
Paramaters
- {
- "course":{
- "courseName":"<courseName>",
- "subTitle":"<courseSubtitle>",
- "description":"<course description>",
- "courseCategories":[
- {"categoryName":"<category 1>"},
- {"categoryName":"<category 2>"}]
- }
- }
Default Category List
{name: "Art & Photos"},
{name: "Automotive"},
{name: "Business"},
{name: "Career"},
{name: "Data & Analytics"},
{name: "Design"},
{name: "Devices & Hardware"},
{name: "Economy & Finance"},
{name: "Education"},
{name: "Engineering"},
{name: "Entertainment & Humor"},
{name: "Environment"},
{name: "Food"},
{name: "Government & Nonprofit"},
{name: "Health & Medicine"},
{name: "Healthcare"},
{name: "Internet"},
{name: "Investor Relations"}
{name: "Law"}
{name: "Leadership & Management"}
{name: "Lifestyle"}
{name: "Marketing"}
{name: "Mobile"}
{name: "News & Politics"}
{name: "Presentations & Public Speaking"}
{name: "Real Estate"}
{name: "Recruiting & HR"}
{name: "Sales"}
{name: "Science"}
{name: "Self Improvement"}
{name: "Services"}
{name: "Small Business & Entrepreneurship"}
{name: "Social Media"}
{name: "Software"}
{name: "Spiritual"}
{name: "Sports"}
{name: "Technology"}
{name: "Travel"}
Params and description:
1. courseName - The name of the course.
2. subTitle - A subtitle for the course.
3. description - A short description of the course.
4. courseCategories - The categories under which the course falls. Kindly note that a course can fall under multiple categories . The default category list available is provided below.
Sample response:
- {
- "ticket”:{
- "maximumPurchaseLimit":"1",
- "paymentOrgId”:<paymentOrgId>,
- "description":"",
- "orgId”:<orgId>,
- "frequency":"1",
- "paymentType":"0",
- "course”:<courseId>,
- "createdTime":"1646206253501",
- "lastUpdatedTime":"1646206253501",
- "id”:<ticketId>,
- "deletedTime":"-1",
- "courseId”:<courseId>,
- "expiryDurationType":"0",
- "lastUpdatedBy”:<userId>,
- "amount":"0.0",
- "isTaxable":"false",
- "ticketType":"0",
- "isDefault":"true",
- "createdBy”:<userId>,
- "billingCycle":"-1",
- "frequencyType":"-1",
- "name":"course name",
- "expiryDuration":"0",
- "ticketId”:<ticketId>,
- "status":"1"
- },
- "courseCategories”:
- [
- {
- “moduleCategoryMappingId”:<category Mapping Id>,
- "moduleType":"1",
- "course”:<courseId>,
- "id”:<categoryId>,
- "moduleId”:<courseId>,
- "category”:<categoryId>,
- "categoryId":<categoryId>
- },
- {
- “moduleCategoryMappingId”:<category Mapping Id>,
- "moduleType":"1",
- "course”:<courseId>,
- "id”:<categoryId>,
- "moduleId”:<courseId>,
- "category”:<categoryId>,
- "categoryId":<categoryId>
- }
- ],
- "courseMembers":
- [
- {
- "role":"0",
- "userId”:<userId>,
- "orgId”:<orgId>,
- "completionPercentage":"0",
- "courseMembersId”:<courseMemberId>,
- "imageUrl”:<userImageURL>,
- "name”:<userName>,
- "course”:<courseId>,
- "time":"1646206253463",
- "id”:<courseMemberId>,
- "courseId”:<courseId>,
- "email”:<userEmail>,
- "status":"0"
- }
- ],
- "course":
- {
- "lastUpdatedBy”:<userId>,
- "decriptionId”:<descriptionId>,
- "kind":"0",
- "uniqueKey”:<uniqueKey>,
- "description”:<description>,
- "courseURL”:<course access url>,
- "type":"0",
- "orgId”:<orgId>,
- "courseName”:<courseName>,
- "enableReview":"true",
- "subTitle”:<courseSubtitle>,
- "createdBy”:<userId>,
- "lastUpdatedTime":"1646206253459",
- "time":"1646206253459",
- "id”:<courseId>,
- "courseId”:<courseId>,
- "publishStatus":"0"
- },
- "category":
- [
- {
- "createdBy”:<userId>,
- "time":"1646206253492",
- "id”:<categoryId>,
- "portal”:<orgId>,
- "categoryName”:<categoryName>,
- "categoryId”:<categoryId>,
- "orgId”:<orgId>
- },
- {
- "createdBy”:<userId>,
- "time":"1646206253492",
- "id”:<categoryId>,
- "portal”:<orgId>,
- "categoryName”:<categoryName>,
- "categoryId”:<categoryId>,
- "orgId”:<orgId>
- }
- ]
- }