Create Assignment

create assignment

post
/v1/assignment/base/create

create assignment

Authorizations
AuthorizationstringRequired
Body
titlestringOptional

assignment title

typestring · enumOptional

type of assignment

Possible values:
attachmentsstring[]Optional

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

descriptionstringOptional

assignment description

externalIdstringOptional

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

kindstring · enumOptional

topic kind, must be assignment

Possible values:
classroomIdintegerOptional

id of classroom

deadlinestringOptional

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

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

id of module

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

{
  "title": "text",
  "type": "studio",
  "attachments": [
    "text"
  ],
  "description": "text",
  "externalId": "text",
  "kind": "assignment",
  "classroomId": 1,
  "deadline": "2024-01-30 23:59:59",
  "moduleId": 1
}
200

Response

{
  "status": true,
  "data": {
    "kind": "assignment",
    "moduleId": 1,
    "attachments": [
      "text"
    ],
    "deadline": "2024-01-30 23:59:59",
    "externalId": "text",
    "type": "studio",
    "classroomId": 1,
    "description": "text",
    "title": "text"
  },
  "message": "success"
}

Last updated