Course Activity

This end point is use for get list of course activity

[GET] /ruangkerja/dashboard/courses

Information

This API contains information about Course in Ruangkerja. Ruangkerja have 3 categories of Course.

  • Online Course is a course contains videos and complete quizzes on Ruangkerja application.
  • Webinar Course is a course for hybrid learning by using Online Conference such as Zoom/Google Meet/etc.
  • Offline Course is a course for schedule offline activity such as workshops.

Especially for webinars and offline courses, there is a batch feature on the assignment to set the schedule for the training. See also API: Course Batch.

You can get assignment information on the course based on the course category:

*For webinars and offline courses, you need to know the batch to get assignments

Headers

NameTypeExampleRequiredDescription
Authorizationstringaccess_tokenYESToken of authentication. Get from Authentication API
Acceptstringapplication/jsonYESDefines the message format that is expected by the client
Content-Typestringapplication/jsonYESDefines the message format of the request body that is sent by the client

Parameter

NameTypeRequiredLocationDescription
pageintYESqueryQuery for skip page of collection
pageSizeintYESqueryQuery for limit result data from server. Maximum value 100
namestringOPTIONALqueryFilter course contains name

Example cURL Request

curl --location --request GET 'https://api.ruangkerja.id/ruangkerja/dashboard/courses?page=1&pageSize=100' \
--header 'Authorization: access_token'

Example Success Response

{
    "status": "success",
    "message": "Success",
    "data": {
        "currentPage": 1,
        "totalItems": 100,
        "totalPage": 10,
        "items": [
            ...,
            {
                "serial": "COURSE-EXAMPLE1",
                "name": "[ONLINE] Effisien Menggunakan Spreadsheet untuk Report",
                "description": "Gunakan spreadsheet untuk membuat pekerjaan anda menjadi lebih mudah",
                "category": "",
                "type": "ONLINE",
                "createdAt": "2022-07-22T01:00:00.000Z",
                "updatedAt": "2022-07-22T01:00:00.000Z",
                "avgPreTest": 0,
                "avgPostTest": 0,
                "numberOfBatch": 0,
                "numberOfCompleted": 0,
                "numberOfExpired": 0,
                "numberOfFailed": 0,
                "numberOfInProgress": 0,
                "numberOfNotStarted": 0,
                "numberOfParticipants": 0
            },
            {
                "serial": "COURSE-EXAMPLE2",
                "name": "[OFFLINE] Effisien Menggunakan Spreadsheet untuk Report",
                "description": "Gunakan spreadsheet untuk membuat pekerjaan anda menjadi lebih mudah",
                "category": "",
                "type": "OFFLINE",
                "createdAt": "2022-07-22T01:00:00.000Z",
                "updatedAt": "2022-07-22T01:00:00.000Z",
                "avgPreTest": 0,
                "avgPostTest": 0,
                "numberOfBatch": 0,
                "numberOfCompleted": 0,
                "numberOfExpired": 0,
                "numberOfFailed": 0,
                "numberOfInProgress": 0,
                "numberOfNotStarted": 0,
                "numberOfParticipants": 0
            },
            {
                "serial": "COURSE-EXAMPLE3",
                "name": "[WEBINAR] Effisien Menggunakan Spreadsheet untuk Report",
                "description": "Gunakan spreadsheet untuk membuat pekerjaan anda menjadi lebih mudah",
                "category": "",
                "type": "WEBINAR",
                "createdAt": "2022-07-22T01:00:00.000Z",
                "updatedAt": "2022-07-22T01:00:00.000Z",
                "avgPreTest": 0,
                "avgPostTest": 0,
                "numberOfBatch": 0,
                "numberOfCompleted": 0,
                "numberOfExpired": 0,
                "numberOfFailed": 0,
                "numberOfInProgress": 0,
                "numberOfNotStarted": 0,
                "numberOfParticipants": 0
            }
        ]
    }
}

Response Body Terminology

LocationTypeDescription
data.items.*.typeenum(ONLINE, OFFLINE, WEBINAR)The type of course

Example Failed Response

{
    "errorCode": 123,
    "message": "rpc error: code = PermissionDenied desc = Token is not valid",
    "detail": "rpc error: code = PermissionDenied desc = Token is not valid"
}

See also: Error Dictionary.