Create Course
create course
Authorizations
AuthorizationstringRequired
Body
contentstringOptional
content of course
kindstring · enumOptionalPossible values:
kind of course
typestring · enumOptionalPossible values:
type of course
classroomIdintegerOptional
used if the course is only in 1 classroom
descriptionstringOptional
description of course
moduleIdintegerOptional
course group id of course
slugstringOptional
slug of course
statestring · enumOptionalPossible values:
state of course
titlestringOptional
title of course
Responses
200
Response
application/json
post
/v1/module/topic/createPOST /v1/module/topic/create HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"content": "text",
"kind": "course",
"type": "editor",
"classroomId": 1,
"description": "text",
"moduleId": 1,
"slug": "text",
"state": "release",
"title": "text"
}200
Response
{
"data": {
"authorId": 1,
"contentId": 1,
"editable": true,
"title": "text",
"uuid": "text",
"classroomId": 1,
"content": "text",
"description": "text",
"index": 1,
"state": "release",
"created_at": "text",
"id": 1,
"kind": "course",
"moduleId": 1,
"slug": "text",
"type": "editor",
"updated_at": "text"
},
"message": "success",
"status": true
}Last updated