# Litmos

> Add and update learners in Litmos, assign courses and learning paths to people and teams, and follow sign-ins, assignments, completions and certificates.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/litmos

## Actions

### Add users to team

Add one or more people to a team. People already in it are left as they are.

**Inputs**

- Team (`team`, text, required): The team.
- Users (`user_ids`, list, required): The people to add.
- Email the person (`send_email`, true/false): Whether Litmos emails the person about it. Leave empty for Litmos's default.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "assigned": [
      "example"
    ],
    "success": true
  }
}
```

### Assign courses to team

Assign one or more courses to everyone in a team.

**Inputs**

- Team (`team`, text, required): The team.
- Courses (`course_ids`, list, required): The courses to assign.
- Include sub-teams (`include_sub_teams`, true/false): Also assign them to the team's sub-teams.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "assigned": [
      "example"
    ],
    "success": true
  }
}
```

### Assign courses to user

Assign one or more courses to a person. Courses they already have are left as they are.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Courses (`course_ids`, list, required): The courses to assign.
- Email the person (`send_email`, true/false): Whether Litmos emails the person about it. Leave empty for Litmos's default.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "assigned": [
      "example"
    ],
    "success": true
  }
}
```

### Assign learning paths to user

Assign one or more learning paths to a person.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Learning paths (`learning_path_ids`, list, required): The learning paths to assign.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "assigned": [
      "example"
    ],
    "success": true
  }
}
```

### Create team

Create a team, or a sub-team inside another team.

**Inputs**

- Name (`name`, text, required): The team's name.
- Description (`description`, text): What the team is for.
- Parent team (`parent_team`, text): To make a sub-team, the team it goes inside.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Description": "example",
    "Id": "example",
    "Name": "example",
    "ParentTeamId": "example",
    "TeamCodeForBulkImport": "example"
  }
}
```

### Create user

Add a person to Litmos as a learner, team leader or admin.

**Inputs**

- First name (`first_name`, text, required): The person's first name.
- Last name (`last_name`, text, required): The person's last name.
- Email (`email`, text, required): The person's email address.
- Username (`username`, text): The name the person signs in with. Leave empty to use their email address.
- Access level (`access_level`, text): What the person can do in Litmos. Leave empty for Learner. One of: `Learner`, `Team_Leader` (Team leader), `Admin`.
- Job title (`job_title`, text): The person's job title.
- Company (`company_name`, text): The person's company.
- Work phone (`phone_work`, text): The person's work phone number.
- Mobile phone (`phone_mobile`, text): The person's mobile number in full international form, such as +17145551234.
- City (`city`, text): The city.
- State (`state`, text): The state, province or region.
- Country (`country`, text): The country.
- Manager (`manager`, text): The person's manager.
- Employee ID (`external_employee_id`, text): Your own ID for the person, such as their employee number.
- Skip first sign-in (`skip_first_login`, true/false): Turn on for people who sign in with single sign-on, so Litmos doesn't ask them to set a password at first sign-in.
- Other fields (`other_fields`, object): Any other user fields, by their Litmos name, such as {"CustomField1": "Sales"}.
- Email the person (`send_email`, true/false): Whether Litmos emails the person about it. Leave empty for Litmos's default.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "AccessLevel": "example",
    "Active": true,
    "Brand": "example",
    "City": "example",
    "CompanyName": "example",
    "Country": "example",
    "CreatedDate": "example",
    "CustomField1": "example",
    "CustomField2": "example",
    "DisableMessages": true,
    "Email": "example",
    "ExternalEmployeeId": "example",
    "FirstName": "example",
    "FullName": "example",
    "Id": "example",
    "IsCustomUsername": true,
    "JobTitle": "example",
    "LastLogin": "example",
    "LastName": "example",
    "LoginKey": "example",
    "ManagerId": "example",
    "ManagerName": "example",
    "OriginalId": "example",
    "PhoneMobile": "example",
    "PhoneWork": "example",
    "Points": 1,
    "PostalCode": "example",
    "SkipFirstLogin": true,
    "State": "example",
    "Street1": "example",
    "Street2": "example",
    "TimeZone": "example",
    "UserName": "example"
  }
}
```

### Delete team

Delete a team. Its members stay in Litmos.

**Inputs**

- Team (`team`, text, required): The team.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Delete user

Delete a person from Litmos, with their course results.

**Inputs**

- User (`user`, text, required): The person in Litmos.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Get course

Get a course's details: description, code, languages, topics, tags, due and compliance dates.

**Inputs**

- Course (`course`, text, required): The course.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Active": true,
    "Certificate": true,
    "Code": "example",
    "CompleteInOrder": true,
    "ComplianceDate": "example",
    "CourseCode": "example",
    "CourseImageURL": "example",
    "CreatedDate": "example",
    "Description": "example",
    "DueDate": "example",
    "Id": "example",
    "IncludeInLibrary": true,
    "Languages": [
      "example"
    ],
    "Name": "example",
    "OriginalId": "example",
    "Skills": "example",
    "Tags": "example",
    "Topics": "example",
    "UpdatedDate": "example"
  }
}
```

### Get user

Get a person's full profile: name, email, access level, last sign-in, manager and custom fields.

**Inputs**

- User (`user`, text, required): The person in Litmos.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "AccessLevel": "example",
    "Active": true,
    "Brand": "example",
    "City": "example",
    "CompanyName": "example",
    "Country": "example",
    "CreatedDate": "example",
    "CustomField1": "example",
    "CustomField2": "example",
    "DisableMessages": true,
    "Email": "example",
    "ExternalEmployeeId": "example",
    "FirstName": "example",
    "FullName": "example",
    "Id": "example",
    "IsCustomUsername": true,
    "JobTitle": "example",
    "LastLogin": "example",
    "LastName": "example",
    "LoginKey": "example",
    "ManagerId": "example",
    "ManagerName": "example",
    "OriginalId": "example",
    "PhoneMobile": "example",
    "PhoneWork": "example",
    "Points": 1,
    "PostalCode": "example",
    "SkipFirstLogin": true,
    "State": "example",
    "Street1": "example",
    "Street2": "example",
    "TimeZone": "example",
    "UserName": "example"
  }
}
```

### List achievements

List completed courses and certificates earned, newest first, for everyone or one person.

**Inputs**

- User (`user`, text): Only this person's achievements. Leave empty for everyone's.
- Since (`since`, date and time): Only achievements earned since this time.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AchievementDate": "example",
      "AchievementId": "example",
      "CertificateId": "example",
      "CourseId": "example",
      "Description": "example",
      "FirstName": "example",
      "LastName": "example",
      "Result": "example",
      "Score": 1,
      "Title": "example",
      "Type": "example",
      "UserId": "example"
    }
  ]
}
```

### List course results

List every person's results on every course that changed between two days: progress, completion and compliance.

**Inputs**

- From (`since`, date, required): The first day to include.
- To (`to`, date, required): The last day to include.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "Active": true,
      "Code": "example",
      "Complete": true,
      "CompletedDate": "example",
      "CompliantTillDate": "example",
      "CourseId": "example",
      "CourseName": "example",
      "CourseOriginalId": "example",
      "Email": "example",
      "FirstName": "example",
      "Id": "example",
      "LastName": "example",
      "Overdue": true,
      "PercentageComplete": "example",
      "UpToDate": true,
      "UpdatedDate": "example",
      "UserName": "example",
      "UserOriginalId": "example"
    }
  ]
}
```

### List course's users

List the people assigned to a course, with how far each has got.

**Inputs**

- Course (`course`, text, required): The course.
- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "Completed": true,
      "CompliantTill": "example",
      "DueDate": "example",
      "FirstName": "example",
      "Id": "example",
      "LastName": "example",
      "PercentageComplete": "example",
      "UserName": "example"
    }
  ]
}
```

### List courses

List the courses in your Litmos account, optionally by name.

**Inputs**

- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessTillDate": "example",
      "AccessTillDays": 1,
      "Active": true,
      "Code": "example",
      "CourseCodeForBulkImport": "example",
      "CourseTeamLibrary": true,
      "Description": "example",
      "ForSale": true,
      "Id": "example",
      "Name": "example",
      "OriginalId": "example",
      "Tags": "example"
    }
  ]
}
```

### List learning paths

List the learning paths in your Litmos account, optionally by name.

**Inputs**

- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessTillDate": "example",
      "AccessTillDays": 1,
      "Active": true,
      "Description": "example",
      "ForSale": true,
      "Id": "example",
      "IsEquivalency": true,
      "LearningPathTeamLibrary": true,
      "Name": "example",
      "OriginalId": "example"
    }
  ]
}
```

### List team members

List the active people in a team.

**Inputs**

- Team (`team`, text, required): The team.
- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessLevel": "example",
      "Active": true,
      "Brand": "example",
      "Email": "example",
      "FirstName": "example",
      "Id": "example",
      "LastName": "example",
      "UserName": "example"
    }
  ]
}
```

### List teams

List the teams in your Litmos account, optionally by name.

**Inputs**

- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "Description": "example",
      "Id": "example",
      "Name": "example",
      "ParentTeamId": "example",
      "TeamCodeForBulkImport": "example"
    }
  ]
}
```

### List user's courses

List the courses assigned to a person, with how far they've got and whether they're complete or overdue.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessTillDate": "example",
      "Active": true,
      "AssignedDate": "example",
      "Code": "example",
      "Complete": true,
      "CompletedDate": "example",
      "Id": "example",
      "IsLearningPath": true,
      "Name": "example",
      "OriginalId": "example",
      "Overdue": true,
      "PercentageComplete": 1,
      "ResultId": "example",
      "StartDate": "example",
      "UpToDate": true
    }
  ]
}
```

### List user's learning paths

List the learning paths assigned to a person, with their progress.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Search (`search`, text): Only records whose name contains this text.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessTillDate": "example",
      "Active": true,
      "AssignedDate": "example",
      "Complete": true,
      "CompletedDate": "example",
      "Id": "example",
      "Name": "example",
      "OriginalId": "example",
      "PercentageComplete": 1,
      "ResultId": "example",
      "StartDate": "example"
    }
  ]
}
```

### List users

List the people in your Litmos account, optionally only those matching a name, username, email or company.

**Inputs**

- Search (`search`, text): Only people whose username, name, email or company contains this text.
- Include inactive people (`show_inactive`, true/false): Include deactivated people too.
- How many (`limit`, number): How many to return, up to 1000. Leave empty for 100. From 1 to 1000.
- Skip (`start`, number): How many to skip, to read the next page. Leave empty to start at the first. At least 0.

**Outputs**

- `data` (list): The response from Litmos.

**Example output**

```json
{
  "data": [
    {
      "AccessLevel": "example",
      "Active": true,
      "Brand": "example",
      "Email": "example",
      "FirstName": "example",
      "Id": "example",
      "LastName": "example",
      "UserName": "example"
    }
  ]
}
```

### Remove user from team

Take a person out of a team.

**Inputs**

- Team (`team`, text, required): The team.
- User (`user`, text, required): The person in Litmos.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Reset course progress

Reset a person's results on a course, so it's incomplete and at 0% again and they can retake it.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Course (`course`, text, required): The course.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Unassign course from user

Take a course away from a person.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Course (`course`, text, required): The course.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Unassign learning path from user

Take a learning path away from a person.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- Learning path (`learning_path`, text, required): The learning path.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "Id": "example",
    "success": true
  }
}
```

### Update user

Change a person's details, or deactivate them. Fields left empty stay as they are.

**Inputs**

- User (`user`, text, required): The person in Litmos.
- First name (`first_name`, text): The person's first name.
- Last name (`last_name`, text): The person's last name.
- Email (`email`, text): The person's email address.
- Access level (`access_level`, text): What the person can do in Litmos. Leave empty for Learner. One of: `Learner`, `Team_Leader` (Team leader), `Admin`.
- Job title (`job_title`, text): The person's job title.
- Company (`company_name`, text): The person's company.
- Work phone (`phone_work`, text): The person's work phone number.
- Mobile phone (`phone_mobile`, text): The person's mobile number in full international form, such as +17145551234.
- City (`city`, text): The city.
- State (`state`, text): The state, province or region.
- Country (`country`, text): The country.
- Manager (`manager`, text): The person's manager.
- Employee ID (`external_employee_id`, text): Your own ID for the person, such as their employee number.
- Skip first sign-in (`skip_first_login`, true/false): Turn on for people who sign in with single sign-on, so Litmos doesn't ask them to set a password at first sign-in.
- Other fields (`other_fields`, object): Any other user fields, by their Litmos name, such as {"CustomField1": "Sales"}.
- Active (`active`, true/false): Turn off to deactivate the person, or on to reactivate them.

**Outputs**

- `data` (object): The response from Litmos.

**Example output**

```json
{
  "data": {
    "AccessLevel": "example",
    "Active": true,
    "Brand": "example",
    "City": "example",
    "CompanyName": "example",
    "Country": "example",
    "CreatedDate": "example",
    "CustomField1": "example",
    "CustomField2": "example",
    "DisableMessages": true,
    "Email": "example",
    "ExternalEmployeeId": "example",
    "FirstName": "example",
    "FullName": "example",
    "Id": "example",
    "IsCustomUsername": true,
    "JobTitle": "example",
    "LastLogin": "example",
    "LastName": "example",
    "LoginKey": "example",
    "ManagerId": "example",
    "ManagerName": "example",
    "OriginalId": "example",
    "PhoneMobile": "example",
    "PhoneWork": "example",
    "Points": 1,
    "PostalCode": "example",
    "SkipFirstLogin": true,
    "State": "example",
    "Street1": "example",
    "Street2": "example",
    "TimeZone": "example",
    "UserName": "example"
  }
}
```
