Edit Class Course

course is another name of topic with module type

Edit course in class

post
/v1/class/topic/edit

Edit course in class

Authorizations
AuthorizationstringRequired
Query parameters
topicIdintegerOptional

id of topic / course

Body
statestring · enumOptional

state of course

Possible values:
titlestringOptional

title of course

typestring · enumOptional

content type

Possible values:
classroomIdintegerOptional

id of classroom

contentstringOptional

html content

descriptionstringOptional

description of course

moduleIdintegerOptional

id of module

Responses
200

Response

application/json
post
/v1/class/topic/edit
POST /v1/class/topic/edit HTTP/1.1
Host: services.alkamedia.id
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 117

{
  "state": "release",
  "title": "text",
  "type": "editor",
  "classroomId": 1,
  "content": "text",
  "description": "text",
  "moduleId": 1
}
200

Response

{
  "data": {
    "classroomId": 1,
    "updated_at": "text",
    "moduleId": 1,
    "title": "text",
    "description": "text",
    "id": 1,
    "created_at": "text",
    "editable": true,
    "slug": "text",
    "type": "editor",
    "uuid": "text",
    "content": "text",
    "contentId": 1,
    "kind": "course",
    "state": "release",
    "authorId": 1,
    "index": 1
  },
  "message": "success",
  "status": true
}

Last updated