SafetyCulture Training

App · 20 actions

Run mobile training in SafetyCulture Training (formerly EdApp): assign courses, reset progress, and follow enrollments, lesson attempts, scores and leaderboards.

Actions

ActionWhat it does
Assign a courseAssign a course to users, groups or sites, keeping its other assignments.
Get a lessonRead one lesson's details.
Get a user's lesson progressRead one user's progress in each lesson: opened, completed and score.
Get course statisticsHow many people have each course, and how many opened and completed it.
Get leaderboard rankingsRead the rankings of an individual leaderboard.
Get lesson statisticsHow many people opened and completed each lesson.
List a collection's coursesList the courses in a collection.
List a course's lessonsList the lessons in a course.
List collectionsList the organization's course collections.
List course enrollmentsList who is enrolled in which courses, with start, due and completion expiry dates.
List coursesList the organization's training courses, or find them by words, user, group or change date.
List groupsList the organization's groups.
List leaderboardsList the organization's individual leaderboards.
List learning pathsList the organization's learning paths.
List lesson attemptsList people's attempts at lessons, with scores and whether they passed.
List lesson progress eventsList lesson events across the organization, such as lessons opened and completed.
List Rapid RefreshesList the organization's Rapid Refresh quizzes.
List usersList the organization's active users.
Reset course progressClear users' progress in a course so they start it again.
Unassign a courseTake a course away from users, groups or sites, keeping its other assignments.

Assign a course

Assign a course to users, groups or sites, keeping its other assignments.

Inputs

Coursecourse_idtextRequired
The course.
Usersperson_idslist
Users.
Groupsgroup_idslist
Groups.
Site IDssite_idslist
Site IDs.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "groupsUpdated": 1,
    "sitesUpdated": 1,
    "usersUpdated": 1
  }
}

Get a lesson

Read one lesson's details.

Inputs

Lesson IDlesson_idtextRequired
The lesson's ID.
Languagelocaletext
The language to return it in, such as `en`.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "createdDatetime": "example",
    "description": "example",
    "externalId": "example",
    "id": "example",
    "modifiedDatetime": "example",
    "title": "example"
  }
}

Get a user's lesson progress

Read one user's progress in each lesson: opened, completed and score.

Inputs

Userperson_idtextRequired
The user.
Coursecourse_idtext
Only lessons in this course.
Changed afterchanged_afterdate and time
Only progress changed from this time on.
Changed beforechanged_beforedate and time
Only progress changed up to this time.
Page sizepage_sizenumber
How many lessons per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "course_id": "example",
        "lesson_completed": true,
        "lesson_completed_at": "example",
        "lesson_id": "example",
        "lesson_opened": true,
        "lesson_opened_at": "example",
        "lesson_score": 1,
        "user_id": "example"
      }
    ],
    "next_page_token": "example"
  }
}

Get course statistics

How many people have each course, and how many opened and completed it.

Inputs

Coursecourse_idtext
Only this course.
Page sizepage_sizenumber
How many courses per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "completed_count": 1,
        "course_id": "example",
        "opened_count": 1,
        "total_users": 1
      }
    ],
    "next_page_token": "example"
  }
}

Get leaderboard rankings

Read the rankings of an individual leaderboard.

Inputs

Leaderboardleaderboard_idtextRequired
The leaderboard.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "leaderboardEndDate": "example",
    "leaderboardId": "example",
    "leaderboardName": "example",
    "leaderboardStartDate": "example",
    "rankings": [
      {
        "isNotAttempted": true,
        "participantId": "example",
        "participantName": "example",
        "rank": 1,
        "totalScore": 1
      }
    ]
  }
}

Get lesson statistics

How many people opened and completed each lesson.

Inputs

Coursecourse_idtext
Only this course's lessons.
Page sizepage_sizenumber
How many lessons per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "completed_count": 1,
        "course_id": "example",
        "lesson_id": "example",
        "opened_count": 1
      }
    ],
    "next_page_token": "example"
  }
}

List a collection's courses

List the courses in a collection.

Inputs

Collectioncollection_idtextRequired
The collection.
Include draftsinclude_drafttrue/false
Whether to include draft courses.
Pagepagenumber
Which page of courses to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many courses per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "createdDatetime": "example",
        "description": "example",
        "dueBy": "example",
        "duration": 1,
        "externalId": "example",
        "id": "example",
        "isMandatory": true,
        "isPublished": true,
        "isRecurring": true,
        "lessonCount": 1,
        "locale": "example",
        "modifiedDatetime": "example",
        "publishedDatetime": "example",
        "publishedVersionNumber": 1,
        "status": "example",
        "thumbnailUrl": "example",
        "title": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List a course's lessons

List the lessons in a course.

Inputs

Coursecourse_idtextRequired
The course.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "lessons": [
      {
        "description": "example",
        "externalId": "example",
        "id": "example",
        "minimumScore": 1,
        "status": "example",
        "title": "example"
      }
    ]
  }
}

List collections

List the organization's course collections.

Inputs

Changed sincemodified_sincedate and time
Only collections changed since this time.
Pagepagenumber
Which page of collections to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many collections per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "createdDatetime": "example",
        "description": "example",
        "externalId": "example",
        "id": "example",
        "modifiedDatetime": "example",
        "numberOfCourses": 1,
        "status": "example",
        "thumbnailUrl": "example",
        "title": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List course enrollments

List who is enrolled in which courses, with start, due and completion expiry dates.

Inputs

Userperson_idtext
Only this user's enrollments.
Coursecourse_idtext
Only this course's enrollments.
Page sizepage_sizenumber
How many enrollments per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "completion_expiry_at": "example",
        "course_id": "example",
        "due_at": "example",
        "start_at": "example",
        "user_id": "example"
      }
    ],
    "next_page_token": "example"
  }
}

List courses

List the organization's training courses, or find them by words, user, group or change date.

Inputs

Searchsearchtext
Only courses matching these words.
Userperson_idtext
Only courses this user is enrolled in.
Groupsgroup_idslist
Only courses assigned to these groups, directly or through a path.
Changed sincemodified_sincedate and time
Only courses changed since this time.
Published onlypublished_onlytrue/false
Yes for only published courses.
Languagelocaletext
The language to return courses in, such as `en`.
Pagepagenumber
Which page of courses to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many courses per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "createdDatetime": "example",
        "description": "example",
        "dueBy": "example",
        "duration": 1,
        "externalId": "example",
        "id": "example",
        "isMandatory": true,
        "isPublished": true,
        "isRecurring": true,
        "lessonCount": 1,
        "locale": "example",
        "modifiedDatetime": "example",
        "publishedDatetime": "example",
        "publishedVersionNumber": 1,
        "status": "example",
        "thumbnailUrl": "example",
        "title": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List groups

List the organization's groups.

Inputs

None.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "groups": [
      {
        "id": "example",
        "name": "example"
      }
    ]
  }
}

List leaderboards

List the organization's individual leaderboards.

Inputs

Pagepagenumber
Which page of leaderboards to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many leaderboards per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "endDate": "example",
        "id": "example",
        "learnerAccess": true,
        "name": "example",
        "participantGroupId": "example",
        "startDate": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List learning paths

List the organization's learning paths.

Inputs

Pagepagenumber
Which page of paths to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many paths per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "id": "example",
        "isPublished": true,
        "title": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List lesson attempts

List people's attempts at lessons, with scores and whether they passed.

Inputs

Userperson_idtext
Only this user's attempts.
Coursecourse_idtext
Only attempts in this course.
Lesson IDlesson_idtext
Only attempts at this lesson.
Started afterstarted_afterdate and time
Only attempts started from this time on.
Finished beforecompleted_beforedate and time
Only attempts finished up to this time.
Page sizepage_sizenumber
How many attempts per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "attempt_id": "example",
        "completed_datetime": "example",
        "course_id": "example",
        "lesson_id": "example",
        "score": 1,
        "started_datetime": "example",
        "success": true,
        "user_id": "example"
      }
    ],
    "next_page_token": "example"
  }
}

List lesson progress events

List lesson events across the organization, such as lessons opened and completed.

Inputs

Coursecourse_idtext
Only events in this course.
Afterafterdate and time
Only events from this time on.
Beforebeforedate and time
Only events up to this time. Now if left empty.
Page sizepage_sizenumber
How many events per page, up to 1,000. 25 if left empty.From 1 to 1000.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "course_id": "example",
        "event_date_time": "example",
        "event_name": "example",
        "lesson_id": "example",
        "lesson_score": 1,
        "user_id": "example"
      }
    ],
    "next_page_token": "example"
  }
}

List Rapid Refreshes

List the organization's Rapid Refresh quizzes.

Inputs

Titletitletext
Only Rapid Refreshes with this title.
Statusstatustext
Only Rapid Refreshes in this state.One of: all, draft, scheduled, in-progress (In progress), ended.
Pagepagenumber
Which page of Rapid Refreshes to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many Rapid Refreshes per page, up to 1,000. 25 if left empty.From 1 to 1000.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "has_next_page": true,
    "items": [
      {
        "description": "example",
        "endDate": "example",
        "id": "example",
        "schedule": "example",
        "startDate": "example",
        "status": "example",
        "title": "example"
      }
    ],
    "page": 1,
    "total_count": 1
  }
}

List users

List the organization's active users.

Inputs

Page sizepage_sizenumber
How many users per page, up to 200. 50 if left empty.From 1 to 200.
Page tokenpage_tokentext
To read the next page, the next_page_token a previous step returned.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "created_at": "example",
        "email": "example",
        "first_name": "example",
        "last_name": "example",
        "locale": "example",
        "status": "example",
        "timezone": "example",
        "user_id": "example",
        "username": "example"
      }
    ],
    "next_page_token": "example"
  }
}

Reset course progress

Clear users' progress in a course so they start it again.

Inputs

Coursecourse_idtextRequired
The course.
Usersperson_idslistRequired
The users whose progress to reset.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {}
}

Unassign a course

Take a course away from users, groups or sites, keeping its other assignments.

Inputs

Coursecourse_idtextRequired
The course.
Usersperson_idslist
Users.
Groupsgroup_idslist
Groups.
Site IDssite_idslist
Site IDs.

Outputs

dataobject
The response from SafetyCulture Training.
Example output
{
  "data": {
    "groupsUpdated": 1,
    "sitesUpdated": 1,
    "usersUpdated": 1
  }
}

On this page