• Free Trial
  • Products
    • LMSThe world’s easiest-to-use learning management system.
    • Training ContentA robust library of off-the-shelf learning content.
  • Solutions
    • By Use Case
      • Employee Training
      • Sales Training
      • Customer Training
      • Partner Training
      • Compliance Training
      • View all
    • By Industry
      • Technology
      • Nonprofit
      • Retail
      • Hospitality
      • Healthcare
      • View all
  • Customers
    • Learn more about Litmos customer success stories.
      • Case Studies
      • Video Testimonials
      • I Love Litmos
      • Lenny Awards
    • Featured Customer
      • Sabre, a global travel technology provider, increases revenue by using Litmos to train their sales and technical teams.
  • Pricing
  • Resources
    • Ebooks & Infographics
    • Webinars & Podcasts
    • Events
    • Integrations
    • Blog
  • About
    • Company
    • Partners
    • Awards
    • Careers
    • Sustainability
  • Free Trial
Litmos
Log in
Contact us
Support
Search
  • Free Trial
  • Products
    • LMSThe world’s easiest-to-use learning management system.
    • Training ContentA robust library of off-the-shelf learning content.
  • Solutions
    • By Use Case
      • Employee Training
      • Sales Training
      • Customer Training
      • Partner Training
      • Compliance Training
      • View all
    • By Industry
      • Technology
      • Nonprofit
      • Retail
      • Hospitality
      • Healthcare
      • View all
  • Customers
    • Learn more about Litmos customer success stories.
      • Case Studies
      • Video Testimonials
      • I Love Litmos
      • Lenny Awards
    • Featured Customer
      • Sabre, a global travel technology provider, increases revenue by using Litmos to train their sales and technical teams.
  • Pricing
  • Resources
    • Ebooks & Infographics
    • Webinars & Podcasts
    • Events
    • Integrations
    • Blog
  • About
    • Company
    • Partners
    • Awards
    • Careers
    • Sustainability
  • Free Trial

Litmos Documentation

APIs

Home › Litmos Documentation › Elearning Files Aicc Scorm And Tin Can Via API

Elearning Files Aicc Scorm And Tin Can Via API

The API’s documented here relate to managing eLearning files in Litmos Training.

Important Note: Only SCORM and Tin Can (xAPI) eLearning files can be uploaded/updated/retrieved at this time. SCORM and Tin Can files sent to this endpoint must be valid SCORM/TinCan courses packaged as .zip files. The moduleType that will be returned in any response will always be ModuleType>9</ModuleType> for SCORM and Tin Can.

The <ContentURL>string[optional, max length 1000]</ContentURL> field contain a URL that would initiate a file download in the client browser.

The <Status></Status> field represents the file’s status and can possess the following values to represent the status

  • Queued
  • Uploading
  • ReadyToProcess
  • Processing
  • Ready/Failed

Upload SCORM/Tin Can files as Modules

Request URI

POST /modules?

Request Body (XML)

<Module>
    <Name>string [max length 100]</Name>
    <Description>string [optional, max length 2000]</Description>
    <ModuleType>9</ModuleType>
    <Active>true/false</Active>
    <Code>string [max length 50]</Code>
    <HideDescription>true/false</HideDescription>
    <NewWindow>true/false</NewWindow>
    <ReviewMode>true/false</ReviewMode>
    <ContentURL>string[optional, max length 1000]</ContentURL>
</Module>

Response Body (XML)

<Module xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Id>F6oAfh3hxl81</Id>
    <ModuleType>9</ModuleType>
    <Name>Example SCORM/TC File</Name>
    <Description>Example SCORM/TC File Course Description</Description>
    <Active>true</Active>
    <ModuleRefCode/>
    <HideDescription>false</HideDescription>
    <NewWindow>true</NewWindow>
    <ReviewMode>true</ReviewMode>
    <Status>Queued</Status>
</Module>

Request Body (JSON)

{
  "Name": "string [max length 100]",
  "Description": "string [optional, max length 2000]",
  "ModuleType": "9",
  "Active": "true/false",
  "Code": "string [max length 50]",
  "HideDescription": "true/false",
  "NewWindow": "true/false",
  "ReviewMode": "true/false",
  "ContentURL": "string[optional, max length 1000]"
}

Response Body (JSON)

{
  "Id": "F6oAfh3hxl81",
  "ModuleType": 9,
  "Name": "Example SCORM/TC File",
  "Description": "Example SCORM/TC File Course Description",
  "Active": true,
  "ModuleRefCode": "",
  "HideDescription": false,
  "NewWindow": true,
  "ReviewMode": true,
  "Status": "Queued"
}

Update SCORM/Tin Can Modules

Request URI

PUT /modules/{moduleid}?

Request Body (XML)

<Module>
    <Id>string [max length 50]</Id>
    <ModuleType>9</ModuleType>
    <Name>string [max length 100]</Name>
    <Description>string [optional, max length 2000]</Description>
    <Active>true/false</Active>
    <ModuleRefCode>string [max length 50]</ModuleRefCode>
    <HideDescription>true/false</HideDescription>
    <NewWindow>true/false</NewWindow>
    <ReviewMode>true/false</ReviewMode>
    <ContentURL>string[optional, max length 1000]</ContentURL>
</Module>

Response Body (XML)

<Module xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Id>F6oAfh3hxl81</Id>
    <ModuleType>9</ModuleType>
    <Name>Example SCORM/TC File Updated</Name>
    <Description>Example SCORM/TC File Course Description Updated</Description>
    <Active>true</Active>
    <ModuleRefCode></ModuleRefCode>
    <HideDescription>false</HideDescription>
    <NewWindow>true</NewWindow>
    <ReviewMode>true</ReviewMode>
    <Status>Queued</Status>
</Module>

Request Body (JSON)

{
  "Id": "string [max length 50]",
  "ModuleType": "9",
  "Name": "string [max length 100]",
  "Description": "string [optional, max length 2000]",
  "Active": "true/false",
  "ModuleRefCode": "",
  "HideDescription": "false",
  "NewWindow": "true",
  "ReviewMode": "true",
  "ContentURL": "string[optional, max length 1000]",
}

Response Body (JSON)

{
  "Id": "Y5z6QDLHG3A1",
  "ModuleType": 9,
  "Name": "Example SCORM/TC File Updated",
  "Description": "Example SCORM/TC File Course Description Updated",
  "Active": true,
  "ModuleRefCode": "",
  "HideDescription": false,
  "NewWindow": true,
  "ReviewMode": true,
  "Status": "Ready"
}

Retrieve SCORM/Tin Can Modules

Request URI

GET /modules/{moduleid}?

Response Body (XML)

<Module xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <Id>Y5z6QDLHG3A1</Id>
    <ModuleType>9</ModuleType>
    <Name>New API TEST FOR SCORM UPDATE</Name>
    <Description>New API TEST FOR SCORM UPDATE</Description>
    <Active>true</Active>
    <ModuleRefCode/>
    <HideDescription>false</HideDescription>
    <NewWindow>false</NewWindow>
    <ReviewMode>true</ReviewMode>
    <Status>Ready</Status>
</Module>

Response Body (JSON)

{
  "Id": "Y5z6QDLHG3A1",
  "ModuleType": 9,
  "Name": "New API TEST FOR SCORM UPDATE",
  "Description": "New API TEST FOR SCORM UPDATE",
  "Active": true,
  "ModuleRefCode": "",
  "HideDescription": false,
  "NewWindow": false,
  "ReviewMode": true,
  "Status": "Ready"
}

Delete a Module

Delete a module record.

Request URI

DELETE /modules/{moduleid}?

Response Header

200 OK

Add a AICC/SCORM/Tin Can Module to a Course

A module can be copied, linked or mirrored into a course. It is important to understand the difference of each before adding the module into the course as it will have implications for module content management and reporting.

Request URIs

POST /courses/{courseid}/modules/copy?

POST /courses/{courseid}/modules/link?

POST /courses/{courseid}/modules/mirror?

Request Body (XML)

<Modules>
    <Module>
        <Id>string [max length 50]</Id>
    </Module>
</Modules>

Request Body (JSON)

{
  "Modules": {
    "Module": {
      "Id": ""
    }
  }
}

Response Header

200 OK

Remove a AICC/SCORM/Tin Can Module From a Course

Request URIs

DELETE /courses/{courseid}/module/{moduleid}

Response Header

200 OK

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of Litmos.

The information contained herein may be changed without prior notice. Some software products marketed by Litmos and its distributors contain proprietary software components of other software vendors. National product specifications may vary.

These materials are provided by Litmos for informational purposes only, without representation or warranty of any kind, and Litmos or its affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for Litmos company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

In particular Litmos or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation, and Litmos or its affiliated companies’ strategy and possible future developments, products, and/or platform directions and functionality are all subject to change and may be changed by Litmos or its affiliated companies at any time for any reason without notice.

The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, and they should not be relied upon in making purchasing decisions.

© 2022 Litmos or a Litmos affiliate company. All rights reserved.

Litmos and other Litmos products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Litmos (or a Litmos affiliate company) in the United States and other countries. All other product and service names mentioned are the trademarks of their respective companies.

Match keywords.

Useful Links

  • Release Notes
  • Customer Portal

In this article

Related articles

  1. Users Via API
  2. Date Range Delta Queries Via API
  3. Instructor Led Training Via API

Also of Interest

  • Corporate Learning Management System
  • Enterprise Learning Strategy
  • Corporate Training Programs
  • Corporate LMS
  • Enterprise Learning Management System
  • LMS Platform
  • eLearning Platform
  • What is a learning management system?
  • See Additional Resources

Solutions by Use Case

  • Employee Training
  • Customer Training
  • Compliance Training
  • Sales Training
  • Operations Training
  • Gig Worker Training
  • Contractor Training
  • Supplier Training

Solutions by Industry

  • Technology
  • Nonprofit
  • Retail
  • Hospitality
  • Healthcare

Contact Us

Contact
UK: +44 20 4551 1606
USA: +1 925 490 0401
AUS: +61 3 7066 4851
Email
Support
Address
Contact Us
Litmos Reviews Litmos Reviews
Litmos Careers Careers

© 2023 Litmos US, L.P. and affiliates. All rights reserved.

  • Privacy Statement
  • Terms & Conditions
  • Website Terms