Create Class Course

course is another name of topic with module type

Create course in class

post
/v1/class/topic/create

Create course in class

Authorizations
AuthorizationstringRequired
Body
classroomIdintegerOptional

id of classroom

contentstringOptional

html content

descriptionstringOptional

description of course

moduleIdintegerOptional

id of module

statestring · enumOptional

state of course

Possible values:
titlestringOptional

title of course

typestring · enumOptional

content type

Possible values:
Responses
200

Response

application/json
post
/v1/class/topic/create
POST /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

post
/v1/assignment/base/create

create assignment

Authorizations
AuthorizationstringRequired
Body
attachmentsstring[]Optional

list of assignment attachments url. Can be document, video, etc.

classroomIdintegerOptional

id of classroom

deadlinestringOptional

string date with format YYYY-MM-DD HH:ii:ss

Example: 2024-01-30 23:59:59
externalIdstringOptional

id of form (if type is form) / id of studio (if type is studio)

kindstring · enumOptional

topic kind, must be assignment

Possible values:
titlestringOptional

assignment title

descriptionstringOptional

assignment description

moduleIdintegerOptional

id of module

typestring · enumOptional

type of assignment

Possible values:
Responses
200

Response

application/json
post
/v1/assignment/base/create
POST /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