Trainual

App · 25 actions

Onboard and train your team in Trainual: add and update people, organize groups, give responsibilities, assign content and follow completions.

Actions

ActionWhat it does
Add a user to a groupAdd one person to a group, keeping its other members.
Archive a userArchive (deactivate) a person, so they can no longer sign in.
Assign contentAssign a subject or other content to a user, with a due date if you like.
Create a groupCreate a role, team, department or location, with its members.
Create a responsibilityCreate a responsibility and give it to a user.
Create a userAdd a person to Trainual and choose when they get their invite.
Delete a responsibilityDelete a responsibility, taking it away from every user and group that has it.
Get a groupRead a group with the IDs of its members and managers.
Get a subjectRead one subject.
Get a userRead one active person's details.
Give a user a responsibilityGive an existing responsibility to a user.
List activitiesList what has happened in the account, newest first: content created, completed, edited and more.
List assignmentsList the content assigned to people, newest first.
List completionsList people's progress on content: scores, counts and when they finished.
List groupsList the account's groups (roles, teams, departments and locations), by name.
List responsibilitiesList responsibilities, for everyone or for one user or group.
List subjectsList the subjects (courses of content) the token can see.
List usersList the active people in the Trainual account.
Remove a user from a groupTake one person out of a group, keeping its other members.
Restore a userBring back a person who was archived.
Search contentSearch published Trainual content by words, most relevant first.
Take a responsibility from a userTake a responsibility away from a user.
Unassign contentDelete an assignment, unassigning the content from the user.
Update a groupRename a group, change its kind or description, or replace its members.
Update a userChange a person's details.

Add a user to a group

Add one person to a group, keeping its other members.

Inputs

Groupgroup_idnumberRequired
The group.At least 1.
Userperson_idnumberRequired
The user to add.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "everyone": true,
    "id": "example",
    "kind": "role",
    "manager_ids": [
      "example"
    ],
    "name": "example",
    "updated_at": "example",
    "user_ids": [
      "example"
    ]
  }
}

Archive a user

Archive (deactivate) a person, so they can no longer sign in.

Inputs

Userperson_idnumberRequired
The Trainual user.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived_scheduled_for": "example",
    "completion_percentage": 1,
    "email": "example",
    "id": "example",
    "invite_scheduled_for": "example",
    "name": "example",
    "permission": "general",
    "phone_number": "example",
    "show_in_directory": true,
    "start_date": "example",
    "status": "active",
    "suites": [
      "example"
    ],
    "time_zone": "example",
    "title": "example"
  }
}

Assign content

Assign a subject or other content to a user, with a due date if you like.

Inputs

Userperson_idnumberRequired
The user to assign it to.At least 1.
Content typecontent_typetextRequired
The kind of content to assign.One of: subject, document, page, video, test, checklist, flowchart, file, course, scorm_package (SCORM package).
Content IDcontent_idnumberRequired
The ID of the content.At least 1.
Completion requiredcompletion_requiredtrue/false
Whether they must complete it.
Duedue_date_atdate and time
When it is due.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "assigner_id": 1,
    "completion_required": true,
    "content_id": 1,
    "content_type": "subject",
    "created_at": "example",
    "due_date_at": "example",
    "id": "example",
    "updated_at": "example",
    "user_id": 1
  }
}

Create a group

Create a role, team, department or location, with its members.

Inputs

NamenametextRequired
The group's name.
Descriptiondescriptiontext
What the group is for.
Kindgroup_kindtext
What sort of group it is.One of: role, team, department, location, other.
Membersmember_idslist
The users in the group. On an update this replaces every member.
Managersmanager_idslist
The users who manage the group.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "everyone": true,
    "id": "example",
    "kind": "role",
    "name": "example",
    "updated_at": "example"
  }
}

Create a responsibility

Create a responsibility and give it to a user.

Inputs

Userperson_idnumberRequired
The user who has the responsibility.At least 1.
NamenametextRequired
What they are responsible for.
Descriptiondescriptiontext
More about the responsibility.
Content linkurltext
A link to the Trainual content that explains it.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "content_urls": [
      {
        "content_id": "example",
        "content_type": "example",
        "title": "example",
        "url": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example"
  }
}

Create a user

Add a person to Trainual and choose when they get their invite.

Inputs

NamenametextRequired
The person's full name.
Emailemailtext
Their email address, which they sign in with.
Job titletitletext
Their job title.
Permissionpermissiontext
What they can do in Trainual. General users can only view and complete content.One of: general, contributor, author, admin, billing_admin (Billing admin).
Phone numberphone_numbertext
Their phone number.
Start datestart_datedate
The day they start.
Time zonetime_zonetext
Their time zone, as Trainual names it, such as `America/Los_Angeles`.
Show in directoryshow_in_directorytrue/false
Whether they appear in the company directory.
Managermanager_idnumber
The user they report to.At least 1.
Invitesend_invitetext
When Trainual emails them an invite.One of: now (Send the invite now), later (Don't send an invite yet), scheduled (Send the invite at a set time).
Invite atscheduled_invite_atdate and time
When to send the invite, if Invite is set to a set time.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived_scheduled_for": "example",
    "completion_percentage": 1,
    "email": "example",
    "id": "example",
    "invite_scheduled_for": "example",
    "name": "example",
    "permission": "general",
    "phone_number": "example",
    "show_in_directory": true,
    "start_date": "example",
    "status": "active",
    "suites": [
      "example"
    ],
    "time_zone": "example",
    "title": "example"
  }
}

Delete a responsibility

Delete a responsibility, taking it away from every user and group that has it.

Inputs

Responsibilityresponsibility_idnumberRequired
The responsibility.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}

Get a group

Read a group with the IDs of its members and managers.

Inputs

Groupgroup_idnumberRequired
The group.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "everyone": true,
    "id": "example",
    "kind": "role",
    "manager_ids": [
      "example"
    ],
    "name": "example",
    "updated_at": "example",
    "user_ids": [
      "example"
    ]
  }
}

Get a subject

Read one subject.

Inputs

Subjectsubject_idnumberRequired
The subject.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived": true,
    "completion_required": true,
    "created_at": "example",
    "description": "example",
    "emoji": "example",
    "forced_order": true,
    "id": "example",
    "locked": true,
    "minutes_to_read": 1,
    "owner_id": 1,
    "published": true,
    "subject_type": "example",
    "title": "example",
    "updated_at": "example"
  }
}

Get a user

Read one active person's details.

Inputs

Userperson_idnumberRequired
The Trainual user.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived_scheduled_for": "example",
    "completion_percentage": 1,
    "email": "example",
    "id": "example",
    "invite_scheduled_for": "example",
    "name": "example",
    "permission": "general",
    "phone_number": "example",
    "show_in_directory": true,
    "start_date": "example",
    "status": "active",
    "suites": [
      "example"
    ],
    "time_zone": "example",
    "title": "example"
  }
}

Give a user a responsibility

Give an existing responsibility to a user.

Inputs

Userperson_idnumberRequired
The user.At least 1.
Responsibilityresponsibility_idnumberRequired
The responsibility.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "content_urls": [
      {
        "content_id": "example",
        "content_type": "example",
        "title": "example",
        "url": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "id": "example",
    "name": "example",
    "updated_at": "example"
  }
}

List activities

List what has happened in the account, newest first: content created, completed, edited and more.

Inputs

Userperson_idnumber
Only activity this user did, or that was about or for them.At least 1.
Typetypetext
Only activity of this kind.One of: Creation, Completion, Test attempt, Deletion, Deletion recovered, Edit, Published, Team activity, Content requests, User was automatically archived, and 5 more.
Aftercreated_afterdate and time
Only activity from this time on.
Beforecreated_beforedate and time
Only activity up to this time.
Pagepage_numbernumber
Which page of activities to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many activities to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "activity_type": "example",
        "created_at": "example",
        "id": "example",
        "key": "example",
        "owner_id": 1,
        "owner_type": "example",
        "recipient_id": 1,
        "recipient_type": "example",
        "trackable_id": 1,
        "trackable_type": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List assignments

List the content assigned to people, newest first.

Inputs

Userperson_idnumber
Only this user's assignments.At least 1.
Content typecontent_typetext
The kind of content. Anything other than a subject is matched on the subject it belongs to.One of: subject, document, page, video, test, checklist, flowchart, file, course, scorm_package (SCORM package).
Content IDcontent_idnumber
The ID of the content, of the type chosen in Content type. Leave Content type empty for a subject.At least 1.
Sortsorttext
The order to list them in.One of: -created_at (Created, newest first), created_at (Created, oldest first), due_date_at (Due date, soonest first), -due_date_at (Due date, latest first), id (Oldest first (by ID)), -id (Newest first (by ID)).
Pagepage_numbernumber
Which page of assignments to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many assignments to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "assigner_id": 1,
        "completion_required": true,
        "content_id": 1,
        "content_type": "subject",
        "created_at": "example",
        "due_date_at": "example",
        "id": "example",
        "updated_at": "example",
        "user_id": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List completions

List people's progress on content: scores, counts and when they finished.

Inputs

Userperson_idnumber
Only this user's completions.At least 1.
Content typecontent_typetext
The kind of content. Anything other than a subject is matched on the subject it belongs to.One of: subject, document, page, video, test, checklist, flowchart, file, course, scorm_package (SCORM package).
Content IDcontent_idnumber
The ID of the content, of the type chosen in Content type. Leave Content type empty for a subject.At least 1.
Statusstatustext
Only completions in this state.One of: completed, uncompleted, active, inactive.
Sortsorttext
The order to list them in.One of: -created_at (Created, newest first), created_at (Created, oldest first), -completed_at (Completed, newest first), completed_at (Completed, oldest first), -updated_at (Updated, newest first), updated_at (Updated, oldest first), -score (Score, highest first), score (Score, lowest first).
Pagepage_numbernumber
Which page of completions to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many completions to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "completed_at": "example",
        "completed_content_count": 1,
        "content_id": 1,
        "content_type": "subject",
        "created_at": "example",
        "expired_at": "example",
        "id": "example",
        "score": 1,
        "total_content_count": 1,
        "updated_at": "example",
        "user_id": 1
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List groups

List the account's groups (roles, teams, departments and locations), by name.

Inputs

Kindgroup_kindtext
Only groups of this kind.One of: role, team, department, location, other.
Userperson_idnumber
Only the groups this user belongs to.At least 1.
Everyone groupeveryonetrue/false
Yes for only the account-wide Everyone group, No to leave it out.
Pagepage_numbernumber
Which page of groups to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many groups to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "created_at": "example",
        "description": "example",
        "everyone": true,
        "id": "example",
        "kind": "role",
        "name": "example",
        "updated_at": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List responsibilities

List responsibilities, for everyone or for one user or group.

Inputs

Userperson_idnumber
Only responsibilities this user has, directly or through a group.At least 1.
Groupgroup_idnumber
Only responsibilities given to this group.At least 1.
Pagepage_numbernumber
Which page of responsibilities to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many responsibilities to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "content_urls": [
          {
            "content_id": "example",
            "content_type": "example",
            "title": "example",
            "url": "example"
          }
        ],
        "created_at": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List subjects

List the subjects (courses of content) the token can see.

Inputs

Pagepage_numbernumber
Which page of subjects to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many subjects to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "archived": true,
        "completion_required": true,
        "created_at": "example",
        "description": "example",
        "emoji": "example",
        "forced_order": true,
        "id": "example",
        "locked": true,
        "minutes_to_read": 1,
        "owner_id": 1,
        "published": true,
        "subject_type": "example",
        "title": "example",
        "updated_at": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

List users

List the active people in the Trainual account.

Inputs

Sortsorttext
The order to list them in.One of: id (Oldest first (by ID)), -id (Newest first (by ID)), created_at (Created, oldest first), -created_at (Created, newest first), updated_at (Updated, oldest first), -updated_at (Updated, newest first).
Pagepage_numbernumber
Which page of users to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many users to return per page, up to 100. Trainual returns 10 if left empty.From 1 to 100.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "archived_scheduled_for": "example",
        "completion_percentage": 1,
        "email": "example",
        "id": "example",
        "invite_scheduled_for": "example",
        "name": "example",
        "permission": "general",
        "phone_number": "example",
        "show_in_directory": true,
        "start_date": "example",
        "status": "active",
        "suites": [
          "example"
        ],
        "time_zone": "example",
        "title": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

Remove a user from a group

Take one person out of a group, keeping its other members.

Inputs

Groupgroup_idnumberRequired
The group.At least 1.
Userperson_idnumberRequired
The user to remove.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "everyone": true,
    "id": "example",
    "kind": "role",
    "manager_ids": [
      "example"
    ],
    "name": "example",
    "updated_at": "example",
    "user_ids": [
      "example"
    ]
  }
}

Restore a user

Bring back a person who was archived.

Inputs

Userperson_idnumberRequired
The Trainual user.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived_scheduled_for": "example",
    "completion_percentage": 1,
    "email": "example",
    "id": "example",
    "invite_scheduled_for": "example",
    "name": "example",
    "permission": "general",
    "phone_number": "example",
    "show_in_directory": true,
    "start_date": "example",
    "status": "active",
    "suites": [
      "example"
    ],
    "time_zone": "example",
    "title": "example"
  }
}

Search content

Search published Trainual content by words, most relevant first.

Inputs

Search forquerytextRequired
The words to search for.
Content typestypeslist
Only these kinds of content. Leave empty to search all of them.One or more of: subjects, documents, pages, tests, flowcharts, videos, files, checklists, courses.
Pagepage_numbernumber
Which page of results to read, starting at 1.At least 1.
Page sizepage_sizenumber
How many results per page, up to 25.From 1 to 25.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "count": 1,
    "items": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "owner_id": 1,
        "status": "example",
        "subject_id": 1,
        "title": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "next_page": 1,
    "page": 1,
    "total_count": 1,
    "total_pages": 1
  }
}

Take a responsibility from a user

Take a responsibility away from a user. The responsibility itself stays.

Inputs

Userperson_idnumberRequired
The user.At least 1.
Responsibilityresponsibility_idnumberRequired
The responsibility.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}

Unassign content

Delete an assignment, unassigning the content from the user.

Inputs

Assignment IDassignment_idnumberRequired
The assignment's ID.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}

Update a group

Rename a group, change its kind or description, or replace its members.

Inputs

Groupgroup_idnumberRequired
The group.At least 1.
Namenametext
The group's new name. Leave empty to keep it.
Descriptiondescriptiontext
What the group is for.
Kindgroup_kindtext
What sort of group it is.One of: role, team, department, location, other.
Membersmember_idslist
The users in the group. On an update this replaces every member.
Managersmanager_idslist
The users who manage the group.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "created_at": "example",
    "description": "example",
    "everyone": true,
    "id": "example",
    "kind": "role",
    "name": "example",
    "updated_at": "example"
  }
}

Update a user

Change a person's details. Fields left empty stay as they are.

Inputs

Userperson_idnumberRequired
The Trainual user.At least 1.
Namenametext
The person's full name.
Emailemailtext
Their email address, which they sign in with.
Job titletitletext
Their job title.
Permissionpermissiontext
What they can do in Trainual. General users can only view and complete content.One of: general, contributor, author, admin, billing_admin (Billing admin).
Phone numberphone_numbertext
Their phone number.
Start datestart_datedate
The day they start.
Time zonetime_zonetext
Their time zone, as Trainual names it, such as `America/Los_Angeles`.
Show in directoryshow_in_directorytrue/false
Whether they appear in the company directory.
Managermanager_idnumber
The user they report to.At least 1.

Outputs

dataobject
The response from Trainual.
Example output
{
  "data": {
    "archived_scheduled_for": "example",
    "completion_percentage": 1,
    "email": "example",
    "id": "example",
    "invite_scheduled_for": "example",
    "name": "example",
    "permission": "general",
    "phone_number": "example",
    "show_in_directory": true,
    "start_date": "example",
    "status": "active",
    "suites": [
      "example"
    ],
    "time_zone": "example",
    "title": "example"
  }
}

On this page