Course Prerequisites API (Get)
Get Course Prerequisites: Provides the list of prerequisites of course via Litmos Commerce API.
Note: All requests must be Authenticated.
Authentication and Authorization
Information used for API authentication and authorization is submitted in the request header. The following header name/values are required with each request.
Header | Description |
CompanyLoginId | Company Login Id (provisioned by ViewCentral account management) |
ProductId | Product Id. 1=Learning Management, 2=Event Management |
Username | User account username |
Password | User account password |
Request URI :
GET https://api.viewcentral.com/api/courses/{ID}/prerequisites
Where {Id} is course id.
Response Codes:
HTTP Status | Description |
200 | Operation successful. Course Prerequisites object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. Course Prerequisites object not found |
Response Example:
{ "Success": true, "Error": null, "Data": [ [ { "CourseID": "Int [max length 4]", "CourseName": "String [max length 255]", "CompletionBasedOn": "String [max length 32]", "HideLaunchLink": "Bool", "PrerequisitesText": "Text", "Modified": { "CreatedBy": "string [max length 50]", "CreatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "UpdatedBy": "string [max length 50]", "UpdatedDate": "datetime [yyyy-mm-ddThh:mm:ssZ]" }, "Links": [ { "Rel": "Course", "Href": "/courses/{id}", "Method": "GET" } ] } ] ] }