Learning Plan

This end point is use for get list of learning plan

[GET] /ruangkerja/dashboard/learning-plans

Information

This API contains information about Learning Plan in Ruangkerja. Learning plan is a learning method that assigns participants to complete a number of courses set out in the Learning plan. Learning plan is used so that participants can complete the course sequentially according to the rules contained in the learning plan.

See also API: Learning Plan Course.

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 learning plan contains name

Example cURL Request

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

Example Success Response

{
    "status": "success",
    "message": "Success",
    "data": {
        "currentPage": 1,
        "totalItems": 100,
        "totalPage": 10,
        "items": [
            ...,
            {
                "serial": "LRPN-YFXP3P98",
                "name": "[Learning Plan] Menjadi Software Engineer Profesional",
                "description": "",
                "createdAt": "2022-07-22T01:00:00.000Z",
                "updatedAt": "2022-07-22T01:00:00.000Z",
                "avgPostTest": null,
                "avgPreTest": null,
                "numberOfCompleted": 0,
                "numberOfCourses": 1,
                "numberOfExpired": 0,
                "numberOfFailed": 0,
                "numberOfInProgress": 0,
                "numberOfNotStarted": 0,
                "numberOfParticipants": 1
            },
            {
                "serial": "LRPN-AJSLW15D",
                "name": "[Learning Plan] Menjadi DevOps Profesional",
                "description": "",
                "createdAt": "2022-07-22T01:00:00.000Z",
                "updatedAt": "2022-07-22T01:00:00.000Z",
                "avgPostTest": 100,
                "avgPreTest": 80,
                "numberOfCompleted": 1,
                "numberOfCourses": 1,
                "numberOfExpired": 0,
                "numberOfFailed": 0,
                "numberOfInProgress": 0,
                "numberOfNotStarted": 0,
                "numberOfParticipants": 1
            }
        ]
    }
}

Response Body Terminology

LocationTypeDescription
data.items.*.avgPostTestfloat64 (nullable)The value will be null when no one user submit Post-Test
data.items.*.avgPretestfloat64 (nullable)The value will be null when no one user submit Pre-Test

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.