Create Class Course
Create course in class
Authorizations
AuthorizationstringRequired
Body
classroomIdintegerOptional
id of classroom
contentstringOptional
html content
descriptionstringOptional
description of course
moduleIdintegerOptional
id of module
statestring · enumOptionalPossible values:
state of course
titlestringOptional
title of course
typestring · enumOptionalPossible values:
content type
Responses
200
Response
application/json
post
/v1/class/topic/createPOST /v1/class/topic/create HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117
{
"classroomId": 1,
"content": "text",
"description": "text",
"moduleId": 1,
"state": "release",
"title": "text",
"type": "editor"
}200
Response
{
"status": true,
"data": {
"classroomId": 1,
"content": "text",
"created_at": "text",
"index": 1,
"moduleId": 1,
"state": "release",
"contentId": 1,
"uuid": "text",
"authorId": 1,
"id": 1,
"title": "text",
"updated_at": "text",
"description": "text",
"editable": true,
"kind": "course",
"slug": "text",
"type": "editor"
},
"message": "success"
}create assignment
Authorizations
AuthorizationstringRequired
Body
attachmentsstring[]Optional
list of assignment attachments url. Can be document, video, etc.
classroomIdintegerOptional
id of classroom
deadlinestringOptionalExample:
string date with format YYYY-MM-DD HH:ii:ss
2024-01-30 23:59:59externalIdstringOptional
id of form (if type is form) / id of studio (if type is studio)
kindstring · enumOptionalPossible values:
topic kind, must be assignment
titlestringOptional
assignment title
descriptionstringOptional
assignment description
moduleIdintegerOptional
id of module
typestring · enumOptionalPossible values:
type of assignment
Responses
200
Response
application/json
post
/v1/assignment/base/createPOST /v1/assignment/base/create HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"attachments": [
"text"
],
"classroomId": 1,
"deadline": "2024-01-30 23:59:59",
"externalId": "text",
"kind": "assignment",
"title": "text",
"description": "text",
"moduleId": 1,
"type": "studio"
}200
Response
{
"data": {
"deadline": "2024-01-30 23:59:59",
"externalId": "text",
"moduleId": 1,
"title": "text",
"type": "studio",
"attachments": [
"text"
],
"classroomId": 1,
"description": "text",
"kind": "assignment"
},
"message": "success",
"status": true
}Last updated