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
| Action | What it does |
|---|---|
| Assign a course | Assign a course to users, groups or sites, keeping its other assignments. |
| Get a lesson | Read one lesson's details. |
| Get a user's lesson progress | Read one user's progress in each lesson: opened, completed and score. |
| Get course statistics | How many people have each course, and how many opened and completed it. |
| Get leaderboard rankings | Read the rankings of an individual leaderboard. |
| Get lesson statistics | How many people opened and completed each lesson. |
| List a collection's courses | List the courses in a collection. |
| List a course's lessons | List the lessons in a course. |
| List collections | List the organization's course collections. |
| List course enrollments | List who is enrolled in which courses, with start, due and completion expiry dates. |
| List courses | List the organization's training courses, or find them by words, user, group or change date. |
| List groups | List the organization's groups. |
| List leaderboards | List the organization's individual leaderboards. |
| List learning paths | List the organization's learning paths. |
| List lesson attempts | List people's attempts at lessons, with scores and whether they passed. |
| List lesson progress events | List lesson events across the organization, such as lessons opened and completed. |
| List Rapid Refreshes | List the organization's Rapid Refresh quizzes. |
| List users | List the organization's active users. |
| Reset course progress | Clear users' progress in a course so they start it again. |
| Unassign a course | Take 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
- Course
course_idtextRequired - The course.
- Users
person_idslist - Users.
- Groups
group_idslist - Groups.
- Site IDs
site_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 ID
lesson_idtextRequired - The lesson's ID.
- Language
localetext - 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
- User
person_idtextRequired - The user.
- Course
course_idtext - Only lessons in this course.
- Changed after
changed_afterdate and time - Only progress changed from this time on.
- Changed before
changed_beforedate and time - Only progress changed up to this time.
- Page size
page_sizenumber - How many lessons per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Course
course_idtext - Only this course.
- Page size
page_sizenumber - How many courses per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Leaderboard
leaderboard_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
- Course
course_idtext - Only this course's lessons.
- Page size
page_sizenumber - How many lessons per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Collection
collection_idtextRequired - The collection.
- Include drafts
include_drafttrue/false - Whether to include draft courses.
- Page
pagenumber - Which page of courses to read, starting at 1.At least 1.
- Page size
page_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
- Course
course_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 since
modified_sincedate and time - Only collections changed since this time.
- Page
pagenumber - Which page of collections to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idtext - Only this user's enrollments.
- Course
course_idtext - Only this course's enrollments.
- Page size
page_sizenumber - How many enrollments per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Search
searchtext - Only courses matching these words.
- User
person_idtext - Only courses this user is enrolled in.
- Groups
group_idslist - Only courses assigned to these groups, directly or through a path.
- Changed since
modified_sincedate and time - Only courses changed since this time.
- Published only
published_onlytrue/false - Yes for only published courses.
- Language
localetext - The language to return courses in, such as `en`.
- Page
pagenumber - Which page of courses to read, starting at 1.At least 1.
- Page size
page_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
- Page
pagenumber - Which page of leaderboards to read, starting at 1.At least 1.
- Page size
page_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
- Page
pagenumber - Which page of paths to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idtext - Only this user's attempts.
- Course
course_idtext - Only attempts in this course.
- Lesson ID
lesson_idtext - Only attempts at this lesson.
- Started after
started_afterdate and time - Only attempts started from this time on.
- Finished before
completed_beforedate and time - Only attempts finished up to this time.
- Page size
page_sizenumber - How many attempts per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Course
course_idtext - Only events in this course.
- After
afterdate and time - Only events from this time on.
- Before
beforedate and time - Only events up to this time. Now if left empty.
- Page size
page_sizenumber - How many events per page, up to 1,000. 25 if left empty.From 1 to 1000.
- Page token
page_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
- Title
titletext - Only Rapid Refreshes with this title.
- Status
statustext - Only Rapid Refreshes in this state.One of:
all,draft,scheduled,in-progress(In progress),ended. - Page
pagenumber - Which page of Rapid Refreshes to read, starting at 1.At least 1.
- Page size
page_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 size
page_sizenumber - How many users per page, up to 200. 50 if left empty.From 1 to 200.
- Page token
page_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
- Course
course_idtextRequired - The course.
- Users
person_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
- Course
course_idtextRequired - The course.
- Users
person_idslist - Users.
- Groups
group_idslist - Groups.
- Site IDs
site_idslist - Site IDs.
Outputs
dataobject- The response from SafetyCulture Training.
Example output
{
"data": {
"groupsUpdated": 1,
"sitesUpdated": 1,
"usersUpdated": 1
}
}