# Degreed

> Manage learning in Degreed: users, courses and articles, completions, groups, assigned learning and pathways.

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

## Actions

### Add user to group

Add a user to a group as a member or a group admin.

**Inputs**

- Group (`group_id`, text, required): The group.
- User (`user`, text, required): The user.
- Role (`role`, text): The user's role in the group. Leave empty for member. One of: `members` (Member), `admins` (Group admin).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "group_id": "example",
    "role": "example",
    "user_id": "example"
  }
}
```

### Assign learning

Assign a piece of learning to a user, as required learning or assigned by someone, optionally with a due date.

**Inputs**

- User (`user`, text, required): The user to assign it to.
- User is (`user_identifier_type`, text): What the User field holds. Leave empty for a Degreed user ID. One of: `UserId` (Degreed user ID), `Email`, `EmployeeId` (Employee ID), `AliasUid` (Alias UID), `AliasEmail` (Alias email).
- Content (`content_id`, text, required): The learning to assign.
- Content is (`content_id_type`, text): What the Content field holds. Leave empty for a Degreed content ID. One of: `Id` (Degreed content ID), `ExternalId` (External ID), `ContentUrl` (Content URL).
- Content type (`content_type`, text, required): The kind of content. One of: `Article`, `Book`, `Course`, `Event`, `Video`, `Assessment`.
- Assignment (`assignment_type`, text): Required learning, or learning assigned by a person named in Assigned by. Leave empty for required. One of: `Required`, `Assigned` (Assigned by someone).
- Due (`due_at`, date and time): When it is due.
- Assigned by (`assigner_id`, text): The user who assigned it, for learning assigned by someone. They need the Assign Content permission.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "assignment-type": "example",
        "content-id": "example",
        "content-id-type": "example",
        "content-type": "example",
        "created-at": "example",
        "due-at": "example",
        "modified-at": "example",
        "status": "example",
        "user-id": "example",
        "user-identifier-type": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "required-learning"
    }
  }
}
```

### Create article

Add an article to your Degreed catalog.

**Inputs**

- Title (`title`, text, required): The article's title.
- URL (`url`, text, required): The web address of the article.
- Word count (`num_words`, number, required): How many words the article has. Degreed works out its reading time from this. At least 1.
- Summary (`summary`, text): A short summary shown on the article's card.
- Image URL (`image_url`, text): The web address of an image for the article's card.
- Published (`publish_date`, date and time): When the article was published.
- Format (`format`, text): The article's format, shown as a search filter in Degreed, such as Blog post.
- External ID (`external_id`, text): Your own ID for the article. Leave empty to use its URL.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created-at": "example",
        "degreed-url": "example",
        "external-id": "example",
        "format": "example",
        "image-url": "example",
        "language": "example",
        "learning-minutes": 1,
        "modified-at": "example",
        "num-words": 1,
        "obsolete": true,
        "provider-code": "example",
        "publish-date": "example",
        "summary": "example",
        "title": "example",
        "url": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "articles"
    }
  }
}
```

### Create course

Add a course to your Degreed catalog.

**Inputs**

- Title (`title`, text, required): The course's title.
- URL (`url`, text, required): The web address where the course is taken.
- Summary (`summary`, text): A short summary shown on the course's card.
- Length (`duration`, number): How long the course takes, in the unit chosen in Length unit. At least 0.
- Length unit (`duration_type`, text): The unit of the course's length. One of: `Minutes`, `Hours`, `Days`, `Seconds`.
- Language (`language`, text): The language the course is in, such as en.
- Image URL (`image_url`, text): The web address of an image for the course's card.
- Published (`publish_date`, date and time): When the course was published.
- Format (`format`, text): The course's format, shown as a search filter in Degreed, such as Online.
- Difficulty (`difficulty`, text): How hard the course is, such as Beginner.
- External ID (`external_id`, text): Your own ID for the course. Leave empty to use its URL.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created-at": "example",
        "degreed-url": "example",
        "difficulty": "example",
        "duration": 1,
        "duration-type": "example",
        "external-id": "example",
        "format": "example",
        "image-url": "example",
        "language": "example",
        "modified-at": "example",
        "obsolete": true,
        "publish-date": "example",
        "summary": "example",
        "title": "example",
        "url": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "courses"
    }
  }
}
```

### Create group

Create a group in Degreed.

**Inputs**

- Name (`name`, text, required): The group's name.
- Description (`description`, text, required): What the group is for.
- Privacy (`privacy`, text): Who can join the group. Leave empty for Degreed's default. One of: `Open` (Open: anyone can join), `Closed` (Closed: people ask to join), `Private` (Private: by invitation), `Administrative` (Administrative: managed by admins).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created-at": "example",
        "description": "example",
        "external-group-id": "example",
        "name": "example",
        "privacy": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "groups"
    }
  }
}
```

### Create user

Add a user to your Degreed organization.

**Inputs**

- Employee ID (`employee_id`, text, required): The user's employee ID.
- First name (`first_name`, text, required): The user's first name.
- Last name (`last_name`, text, required): The user's last name.
- Work email (`email`, text, required): The user's work email address.
- Role (`permission_role`, text): What the user can do in Degreed. One of: `Member`, `Manager`, `LearningProfessional` (Learning professional), `CareerProfessional` (Career professional), `Admin`, `TechnicalAdmin` (Technical admin).
- Personal email (`personal_email`, text): The user's personal email address.
- Job title (`job_role`, text): The user's job title.
- Location (`location`, text): Where the user works.
- Bio (`bio`, text): A short biography, up to 2,000 characters.
- Sign-in disabled (`login_disabled`, true/false): Stop the user from signing in to Degreed.
- Profile visibility (`profile_visibility`, text): Who can see the user's profile. Leave empty for your organization's default. One of: `UseOrganizationDefault` (Organization's default), `Everyone`, `Organization` (My organization), `Private` (Private: by invitation).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "alias-uid": "example",
        "bio": "example",
        "created-at": "example",
        "daily-logins": 1,
        "display-language": "example",
        "employee-id": "example",
        "first-login-at": "example",
        "first-name": "example",
        "full-name": "example",
        "is-active-learner": true,
        "is-managed": true,
        "job-role": "example",
        "last-login-at": "example",
        "last-name": "example",
        "location": "example",
        "login-disabled": true,
        "organization-email": "example",
        "permission-role": "example",
        "personal-email": "example",
        "preferred-language": "example",
        "profile-image-url": "example",
        "profile-visibility": "example",
        "restricted": true,
        "total-points": 1
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "users"
    }
  }
}
```

### Delete article

Remove an article from your Degreed catalog. Degreed marks it obsolete.

**Inputs**

- Article (`content_id`, text, required): The article.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete completion

Delete a completion record.

**Inputs**

- Completion ID (`completion_id`, text, required): The completion's ID, from Record completion or List completions.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete course

Remove a course from your Degreed catalog. Degreed marks it obsolete.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete group

Delete a group. Its members stay in Degreed.

**Inputs**

- Group (`group_id`, text, required): The group.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Delete user

Remove a user from your Degreed organization.

**Inputs**

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

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Get content

Get a content item's title, type, length, links and who can see it.

**Inputs**

- Content (`content_id`, text, required): The content item: a course, article, video, book or other learning in Degreed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "content-type": "example",
        "created-at": "example",
        "degreed-url": "example",
        "duration": 1,
        "duration-type": "example",
        "external-id": "example",
        "format": "example",
        "image-url": "example",
        "is-internal": true,
        "is-obsolete": true,
        "language": "example",
        "learning-minutes": 1,
        "modified-at": "example",
        "owner-id": "example",
        "owner-type": "example",
        "provider": "example",
        "publish-date": "example",
        "summary": "example",
        "title": "example",
        "url": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "content"
    }
  }
}
```

### Get user

Get a user's profile by their Degreed ID, employee ID or email.

**Inputs**

- User (`user`, text, required): The user.
- Find user by (`identifier`, text): What the User field holds. Leave empty for a Degreed user ID. One of: `id` (Degreed user ID), `employee-id` (Employee ID), `email`.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "alias-uid": "example",
        "bio": "example",
        "created-at": "example",
        "daily-logins": 1,
        "display-language": "example",
        "employee-id": "example",
        "first-login-at": "example",
        "first-name": "example",
        "full-name": "example",
        "is-active-learner": true,
        "is-managed": true,
        "job-role": "example",
        "last-login-at": "example",
        "last-name": "example",
        "location": "example",
        "login-disabled": true,
        "organization-email": "example",
        "permission-role": "example",
        "personal-email": "example",
        "preferred-language": "example",
        "profile-image-url": "example",
        "profile-visibility": "example",
        "restricted": true,
        "total-points": 1
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "users"
    }
  }
}
```

### List completions

List the learning people in your organization completed in a date range of up to 7 days.

**Inputs**

- From (`from_date`, date, required): The first day to include.
- To (`to_date`, date, required): The last day to include, at most 7 days after the first.
- Date (`date_kind`, text): Which date to look at. Leave empty for when the completion was recorded in Degreed. One of: `added` (Recorded in Degreed), `completed` (Completed by the learner).
- Content type (`content_type`, text): Only completions of this kind of content. One of: `course`, `event`, `video`, `assessment`, `podcast`, `book`, `task`.
- Content (`content_id`, text): Only completions of this content.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.
- Next page (`next_page`, text): The next page's token, from a previous step's Next page. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "access-method": "example",
          "added-at": "example",
          "completed-at": "example",
          "employee-id": "example",
          "is-verified": true,
          "points-earned": "example",
          "rating": 1
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "completions"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    },
    "next_page": "example"
  }
}
```

### List group members

List the users in a group, with their role in it and when they joined.

**Inputs**

- Group (`group_id`, text, required): The group.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "employee-id": "example",
          "group-role": "example",
          "joined-at": "example"
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "users"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    }
  }
}
```

### List groups

List the groups in your Degreed organization.

**Inputs**

- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.
- Next page (`next_page`, text): The next page's token, from a previous step's Next page. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "created-at": "example",
          "description": "example",
          "external-group-id": "example",
          "name": "example",
          "privacy": "example"
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "groups"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    },
    "next_page": "example"
  }
}
```

### List pathways

List your organization's pathways, optionally only those created or changed in a date range.

**Inputs**

- Changed from (`changed_from`, date): Only pathways created or changed on or after this date.
- Changed before (`changed_before`, date): Only pathways created or changed before this date.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.
- Next page (`next_page`, text): The next page's token, from a previous step's Next page. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "created-at": "example",
          "degreed-url": "example",
          "is-endorsed": true,
          "modified-at": "example",
          "primary-contact-name": "example",
          "summary": "example",
          "title": "example",
          "visibility": "example"
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "pathways"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    },
    "next_page": "example"
  }
}
```

### List user's completions

List the learning a user completed, by when it was recorded in Degreed (up to 7 days at a time).

**Inputs**

- User (`user`, text, required): The user.
- Find user by (`identifier`, text): What the User field holds. Leave empty for a Degreed user ID. One of: `id` (Degreed user ID), `employee-id` (Employee ID), `email`.
- Recorded after (`added_after`, date, required): Only completions recorded after this date.
- Recorded before (`added_before`, date, required): Only completions recorded before this date, at most 7 days after the first.
- Content type (`content_type`, text): Only completions of this kind of content. One of: `course`, `event`, `video`, `assessment`, `podcast`, `book`, `task`.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "access-method": "example",
          "added-at": "example",
          "completed-at": "example",
          "employee-id": "example",
          "is-verified": true,
          "points-earned": "example",
          "rating": 1
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "completions"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    }
  }
}
```

### List users

List the users in your Degreed organization, optionally only those added in a date range.

**Inputs**

- Added from (`created_from`, date): Only users added on or after this date.
- Added before (`created_before`, date): Only users added before this date.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.
- Next page (`next_page`, text): The next page's token, from a previous step's Next page. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "alias-uid": "example",
          "bio": "example",
          "created-at": "example",
          "daily-logins": 1,
          "display-language": "example",
          "employee-id": "example",
          "first-login-at": "example",
          "first-name": "example",
          "full-name": "example",
          "is-active-learner": true,
          "is-managed": true,
          "job-role": "example",
          "last-login-at": "example",
          "last-name": "example",
          "location": "example",
          "login-disabled": true,
          "organization-email": "example",
          "permission-role": "example",
          "personal-email": "example",
          "preferred-language": "example",
          "profile-image-url": "example",
          "profile-visibility": "example",
          "restricted": true,
          "total-points": 1
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "users"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    },
    "next_page": "example"
  }
}
```

### Record completion

Record that a user completed a piece of learning, such as a course taken outside Degreed.

**Inputs**

- User (`user`, text, required): The user who completed it.
- User is (`user_identifier_type`, text): What the User field holds. Leave empty for a Degreed user ID. One of: `UserId` (Degreed user ID), `Email`, `EmployeeId` (Employee ID), `AliasUid` (Alias UID), `AliasEmail` (Alias email).
- Content (`content_id`, text, required): The content they completed.
- Content is (`content_id_type`, text): What the Content field holds. Leave empty for a Degreed content ID. One of: `Id` (Degreed content ID), `ExternalId` (External ID), `ContentUrl` (Content URL).
- Content type (`content_type`, text, required): The kind of content. One of: `Article`, `Book`, `Course`, `Event`, `Podcast`, `Task`, `Video`, `Assessment`.
- Completed (`completed_at`, date and time, required): When they completed it.
- Verified (`is_verified`, true/false): Mark the completion as verified.
- Questions correct (`questions_correct`, number): For an assessment, how many questions they answered correctly. At least 0.
- Percentile (`percentile`, number): For an assessment, the user's percentile. From 0 to 100.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "completed-at": "example",
        "content-id": "example",
        "content-id-type": "example",
        "content-type": "example",
        "is-verified": true,
        "user-id": "example",
        "user-identifier-type": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "completions"
    }
  }
}
```

### Remove assigned learning

Take a piece of required or assigned learning off a user's list.

**Inputs**

- Assignment ID (`assignment_id`, text, required): The assignment's ID, from Assign learning or a New assigned learning trigger.

**Outputs**

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

**Example output**

```json
{
  "data": {}
}
```

### Remove user from group

Take a user out of a group. They stay in Degreed.

**Inputs**

- Group (`group_id`, text, required): The group.
- User (`user`, text, required): The user.
- Role (`role`, text): The role the user has in the group. Leave empty for member. One of: `members` (Member), `admins` (Group admin).

**Outputs**

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

**Example output**

```json
{
  "data": {
    "group_id": "example",
    "role": "example",
    "user_id": "example"
  }
}
```

### Search content

Find learning content in your Degreed catalog by keyword, type, date, URL or external ID.

**Inputs**

- Keywords (`term`, text): Words to look for in the title, summary or labels.
- Content type (`content_type`, text): Only this kind of content. One of: `course`, `event`, `video`, `assessment`, `podcast`, `book`, `task`.
- Added from (`created_from`, date): Only content added on or after this date.
- Added before (`created_before`, date): Only content added before this date.
- Changed after (`modified_after`, date): Only content changed after this date.
- URL (`url`, text): Only content at this web address.
- External ID (`external_id`, text): Only content with this external ID.
- Include Degreed's catalog (`include_external`, true/false): Also return content from Degreed's own catalog and providers, not only your organization's.
- Results per page (`limit`, number): How many to return, up to 1,000. Leave empty for 100. From 1 to 1000.
- Next page (`next_page`, text): The next page's token, from a previous step's Next page. Leave empty for the first page.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": [
      {
        "attributes": {
          "content-type": "example",
          "created-at": "example",
          "degreed-url": "example",
          "duration": 1,
          "duration-type": "example",
          "external-id": "example",
          "format": "example",
          "image-url": "example",
          "is-internal": true,
          "is-obsolete": true,
          "language": "example",
          "learning-minutes": 1,
          "modified-at": "example",
          "owner-id": "example",
          "owner-type": "example",
          "provider": "example",
          "publish-date": "example",
          "summary": "example",
          "title": "example",
          "url": "example"
        },
        "id": "example",
        "links": {
          "self": "example"
        },
        "type": "content"
      }
    ],
    "links": {
      "next": "example",
      "self": "example"
    },
    "next_page": "example"
  }
}
```

### Update article

Change an article's title, link, summary or other details. Fields left empty stay as they are.

**Inputs**

- Article (`content_id`, text, required): The article.
- Title (`title`, text): The article's title.
- URL (`url`, text): The web address of the article.
- Word count (`num_words`, number): How many words the article has. Degreed works out its reading time from this. At least 1.
- Summary (`summary`, text): A short summary shown on the article's card.
- Image URL (`image_url`, text): The web address of an image for the article's card.
- Published (`publish_date`, date and time): When the article was published.
- Format (`format`, text): The article's format, shown as a search filter in Degreed, such as Blog post.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created-at": "example",
        "degreed-url": "example",
        "external-id": "example",
        "format": "example",
        "image-url": "example",
        "language": "example",
        "learning-minutes": 1,
        "modified-at": "example",
        "num-words": 1,
        "obsolete": true,
        "provider-code": "example",
        "publish-date": "example",
        "summary": "example",
        "title": "example",
        "url": "example"
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "articles"
    }
  }
}
```

### Update user

Change a user's name, email, role, job title or other details. Fields left empty stay as they are.

**Inputs**

- User (`user`, text, required): The user.
- Employee ID (`employee_id`, text): The user's employee ID.
- First name (`first_name`, text): The user's first name.
- Last name (`last_name`, text): The user's last name.
- Work email (`email`, text): The user's work email address.
- Role (`permission_role`, text): What the user can do in Degreed. One of: `Member`, `Manager`, `LearningProfessional` (Learning professional), `CareerProfessional` (Career professional), `Admin`, `TechnicalAdmin` (Technical admin).
- Personal email (`personal_email`, text): The user's personal email address.
- Job title (`job_role`, text): The user's job title.
- Location (`location`, text): Where the user works.
- Bio (`bio`, text): A short biography, up to 2,000 characters.
- Sign-in disabled (`login_disabled`, true/false): Stop the user from signing in to Degreed.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "alias-uid": "example",
        "bio": "example",
        "created-at": "example",
        "daily-logins": 1,
        "display-language": "example",
        "employee-id": "example",
        "first-login-at": "example",
        "first-name": "example",
        "full-name": "example",
        "is-active-learner": true,
        "is-managed": true,
        "job-role": "example",
        "last-login-at": "example",
        "last-name": "example",
        "location": "example",
        "login-disabled": true,
        "organization-email": "example",
        "permission-role": "example",
        "personal-email": "example",
        "preferred-language": "example",
        "profile-image-url": "example",
        "profile-visibility": "example",
        "restricted": true,
        "total-points": 1
      },
      "id": "example",
      "links": {
        "self": "example"
      },
      "type": "users"
    }
  }
}
```
