ELearning Schedule API (Get, Create, & Update)
Below will highlight the details of the APIs that have be created including what calls for these APIs look like as part of the process that a Litmos Training Operations customer might develop in order to get schedule information or add / update a schedule.
Get Schedule (eLearning)
Provides the details of schedule via Litmos Training Operations 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: Get details of all eLearning schedules in Litmos Training Operations application (subscription listing and bundle are excluded)
URI: GET https://api.viewcentral.com/api/schedules/eLearning
Response Codes:
HTTP Status | Description |
200 | Operation successful. schedule object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. schedule object not found |
Response Example:
{ "Success": true, "Error": null, "Data": [ { "ID": "int[max length 4] ", "ApprovalStatus": "String [max length 50]", "CancelReason": "String [max length 50]", "DisplayStartDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayEndDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayInAttendeeView": "Bool", "DurationType": "String [max length 50]", "Duration": "Numeric [max length 7]", "Url": "String [max length 255]", "ImageUrl": "String [max length 255]", "ImageUrl2": "String [max length 255]", "IsSubSchedule": "Bool", "Language": "String [max length 50]", "NumberOfCredits": "Numeric [max length 13]", "RegistrationStartDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndTime": "ddThh:mm:ssZ", "ScheduleGroupId": "String [max length 50]", "Name": "String [max length 255]", "Status": "String [max length 50]", "SubStatus": "String [max length 50]", "AutoAttend": "Bool", "TrainingHours": "Numeric [max length 8]", "CustomDetail1": "String [max length 1024]", "CustomDetail2": "String [max length 1024]", "CustomDetail3": "String [max length 1024]", "CustomDetail4": "String [max length 1024]", "CustomDetail5": "String [max length 1024]", "CustomDetail6": "String [max length 1024]", "InheritBusinessUnitFromCourse": "Bool", "UseCourseDuration": "Bool", "Active": "Bool", "CourseTypes": [ "String", "String" ], "BusinessUnit": { "ID": "Int [max length 4]" }, "Location": { "ID": "Int [max length 4]" }, "SubLocation": { "ID": " Int [max length 4]" //existing }, "Course": { "ID": "Int [max length 4]" }, "DeliveryMethod": "Required string [max length 1024]", "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": "Self", "Href": "/schedules/eLearning/{id}", "Method": "GET" }, { "Rel": "Schedule Translations", "Href": "/schedules/{id}/translations", "Method": "GET" }, { "Rel": "Schedule Pricing", "Href": "/schedule/{id}/price", "Method": "GET" } ] } ] }
Request: Get details of an eLearning schedule using filter in Litmos Training Operations application (subscription listing and bundle are excluded)
URI: GET https://api.viewcentral.com/api/schedules/eLearning?name=
Request Filters : Name = schedule name.
Sl.No | Key | Value |
1 | Name | String [max length 255] |
Response Codes:
HTTP Status | Description |
200 | Operation successful. schedule object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. schedule object not found |
Request: Get details of an eLearning schedule using schedule id in Litmos Training Operations application (subscription listing and bundle are excluded)
URI: GET https://api.viewcentral.com/api/schedules/eLearning/{ID}
Response :
HTTP Status | Description |
200 | Operation successful. schedule object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. schedule object not found |
Create Schedule ( eLearning)
Create an eLearning schedule via Litmos Training Operations API. (Provide course object in request body).
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 LTO account management) |
ProductId | Product Id. 1=Learning Management, 2=Event Management |
Username | User account username |
Password | User account password |
Request: Provide created schedule object in request body
URI: POST https://api.viewcentral.com/api/Schedules/eLearning
Request Example :
{ "ID": "Required int[max length 4] ", "ApprovalStatus": "String [max length 50]", "CancelReason": "String [max length 50]", "DisplayStartDate": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayEndDate": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayInAttendeeView": "Bool", "DurationType": "Optional String [max length 50]", "Duration": "Optional Numeric [max length 10]", "Url": "Optional String [max length 255]", "ImageUrl": "Optional String [max length 255]", "ImageUrl2": "Optional String [max length 255]", "IsSubSchedule": "Bool", "Language": "Optional String [max length 50]", "NumberOfCredits": "Optional Numeric [max length 13]", "RegistrationStartDate": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndDate": "Optional datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndTime": "Optional ddThh:mm:ssZ", "GroupId": "Optional String [max length 50]", "Name": "Optional String [max length 255]", "Status": "Required String [max length 50]", "SubStatus": "String [max length 50]", "AutoAttend": "Bool", "CustomDetail1": "Optional String [max length 1024]", "CustomDetail2": "Optional String [max length 1024]", "CustomDetail3": "Optional String [max length 1024]", "CustomDetail4": "Optional String [max length 1024]", "CustomDetail5": "Optional String [max length 1024]", "CustomDetail6": "Optional String [max length 1024]", "InheritBusinessUnitFromCourse": "Bool", "UseCourseDuration": "Bool", "Active": "Bool", "CourseTypes": [ "String", "String" ], //Optional "BusinessUnit": { "ID": "Optional Int [max length 4]" }, "Location": { "ID": "Required Int [max length 4]" }, "SubLocation": { "ID": " Optional Int [max length 4]" }, "Course": { "ID": "Required Int [max length 4]" }, "DeliveryMethod": "Required string [max length 1024]" }
Response Codes:
HTTP Status | Description |
200 | Operation successful. schedule object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. schedule object not found |
Update Schedule ( eLearning)
Update an eLearning schedule via Litmos Training Operations API. (Provide course object in request body).
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 LTO account management) |
ProductId | Product Id. 1=Learning Management, 2=Event Management |
Username | User account username |
Password | User account password |
Request: Provide updated schedule object in request body
URI: PUT https://api.viewcentral.com/api/schedules/eLearning/{ID}
Request Example :
{ "ID": "int[max length 4] ", "ApprovalStatus": "String [max length 50]", "CancelReason ": "String [max length 50]", "DisplayStartDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayEndDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "DisplayInAttendeeView": "Bool", "DurationType": "String [max length 50]", "Duration": "Numeric [max length 7] ", "Url": "String [max length 255]", "ImageUrl": "String [max length 255]", "ImageUrl2": "String [max length 255]", "IsSubSchedule": "Bool", "Language": "String [max length 50]", "NumberOfCredits": "Numeric [max length 13]", "RegistrationStartDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndDate": "datetime [yyyy-mm-ddThh:mm:ssZ]", "RegistrationEndTime": "ddThh:mm:ssZ", "ScheduleGroupId": "String [max length 50]", "Name": "String [max length 255]", "Status": "String [max length 50]", "SubStatus": "String [max length 50]", "AutoAttend": "Bool", "TrainingHours": "Numeric [max length 8]", "CustomDetail1": "String [max length 1024]", "CustomDetail2": "String [max length 1024]", "CustomDetail3": "String [max length 1024]", "CustomDetail4": "String [max length 1024]", "CustomDetail5": "String [max length 1024]", "CustomDetail6": "String [max length 1024]", "InheritBusinessUnitFromCourse": "Bool", "UseCourseDuration": "Bool", "Active": "Bool", "CourseTypes": [ "String", "String" ], "BusinessUnit": { "ID": "Optional Int [max length 4]" }, "Location": { "ID": "Required Int [max length 4]" }, "SubLocation": { "ID": " Optional Int [max length 4]" }, "Course": { "ID": "Required Int [max length 4]" }, "DeliveryMethod": "Required string [max length 1024]" }
Response Codes:
HTTP Status | Description |
200 | Operation successful. schedule object returned in response |
400 | Operation not successful. Response contains error information |
404 | Operation not successful. schedule object not found |