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
| Action | What it does |
|---|---|
| Add a user to a group | Add one person to a group, keeping its other members. |
| Archive a user | Archive (deactivate) a person, so they can no longer sign in. |
| Assign content | Assign a subject or other content to a user, with a due date if you like. |
| Create a group | Create a role, team, department or location, with its members. |
| Create a responsibility | Create a responsibility and give it to a user. |
| Create a user | Add a person to Trainual and choose when they get their invite. |
| Delete a responsibility | Delete a responsibility, taking it away from every user and group that has it. |
| Get a group | Read a group with the IDs of its members and managers. |
| Get a subject | Read one subject. |
| Get a user | Read one active person's details. |
| Give a user a responsibility | Give an existing responsibility to a user. |
| List activities | List what has happened in the account, newest first: content created, completed, edited and more. |
| List assignments | List the content assigned to people, newest first. |
| List completions | List people's progress on content: scores, counts and when they finished. |
| List groups | List the account's groups (roles, teams, departments and locations), by name. |
| List responsibilities | List responsibilities, for everyone or for one user or group. |
| List subjects | List the subjects (courses of content) the token can see. |
| List users | List the active people in the Trainual account. |
| Remove a user from a group | Take one person out of a group, keeping its other members. |
| Restore a user | Bring back a person who was archived. |
| Search content | Search published Trainual content by words, most relevant first. |
| Take a responsibility from a user | Take a responsibility away from a user. |
| Unassign content | Delete an assignment, unassigning the content from the user. |
| Update a group | Rename a group, change its kind or description, or replace its members. |
| Update a user | Change a person's details. |
Add a user to a group
Add one person to a group, keeping its other members.
Inputs
- Group
group_idnumberRequired - The group.At least 1.
- User
person_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
- User
person_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
- User
person_idnumberRequired - The user to assign it to.At least 1.
- Content type
content_typetextRequired - The kind of content to assign.One of:
subject,document,page,video,test,checklist,flowchart,file,course,scorm_package(SCORM package). - Content ID
content_idnumberRequired - The ID of the content.At least 1.
- Completion required
completion_requiredtrue/false - Whether they must complete it.
- Due
due_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
- Name
nametextRequired - The group's name.
- Description
descriptiontext - What the group is for.
- Kind
group_kindtext - What sort of group it is.One of:
role,team,department,location,other. - Members
member_idslist - The users in the group. On an update this replaces every member.
- Managers
manager_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
- User
person_idnumberRequired - The user who has the responsibility.At least 1.
- Name
nametextRequired - What they are responsible for.
- Description
descriptiontext - More about the responsibility.
- Content link
urltext - 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
- Name
nametextRequired - The person's full name.
- Email
emailtext - Their email address, which they sign in with.
- Job title
titletext - Their job title.
- Permission
permissiontext - 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 number
phone_numbertext - Their phone number.
- Start date
start_datedate - The day they start.
- Time zone
time_zonetext - Their time zone, as Trainual names it, such as `America/Los_Angeles`.
- Show in directory
show_in_directorytrue/false - Whether they appear in the company directory.
- Manager
manager_idnumber - The user they report to.At least 1.
- Invite
send_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 at
scheduled_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
- Responsibility
responsibility_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
- Group
group_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
- Subject
subject_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
- User
person_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
- User
person_idnumberRequired - The user.At least 1.
- Responsibility
responsibility_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
- User
person_idnumber - Only activity this user did, or that was about or for them.At least 1.
- Type
typetext - 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. - After
created_afterdate and time - Only activity from this time on.
- Before
created_beforedate and time - Only activity up to this time.
- Page
page_numbernumber - Which page of activities to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idnumber - Only this user's assignments.At least 1.
- Content type
content_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 ID
content_idnumber - The ID of the content, of the type chosen in Content type. Leave Content type empty for a subject.At least 1.
- Sort
sorttext - 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)). - Page
page_numbernumber - Which page of assignments to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idnumber - Only this user's completions.At least 1.
- Content type
content_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 ID
content_idnumber - The ID of the content, of the type chosen in Content type. Leave Content type empty for a subject.At least 1.
- Status
statustext - Only completions in this state.One of:
completed,uncompleted,active,inactive. - Sort
sorttext - 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). - Page
page_numbernumber - Which page of completions to read, starting at 1.At least 1.
- Page size
page_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
- Kind
group_kindtext - Only groups of this kind.One of:
role,team,department,location,other. - User
person_idnumber - Only the groups this user belongs to.At least 1.
- Everyone group
everyonetrue/false - Yes for only the account-wide Everyone group, No to leave it out.
- Page
page_numbernumber - Which page of groups to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idnumber - Only responsibilities this user has, directly or through a group.At least 1.
- Group
group_idnumber - Only responsibilities given to this group.At least 1.
- Page
page_numbernumber - Which page of responsibilities to read, starting at 1.At least 1.
- Page size
page_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
- Page
page_numbernumber - Which page of subjects to read, starting at 1.At least 1.
- Page size
page_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
- Sort
sorttext - 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). - Page
page_numbernumber - Which page of users to read, starting at 1.At least 1.
- Page size
page_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
- Group
group_idnumberRequired - The group.At least 1.
- User
person_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
- User
person_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 for
querytextRequired - The words to search for.
- Content types
typeslist - 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. - Page
page_numbernumber - Which page of results to read, starting at 1.At least 1.
- Page size
page_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
- User
person_idnumberRequired - The user.At least 1.
- Responsibility
responsibility_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 ID
assignment_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
- Group
group_idnumberRequired - The group.At least 1.
- Name
nametext - The group's new name. Leave empty to keep it.
- Description
descriptiontext - What the group is for.
- Kind
group_kindtext - What sort of group it is.One of:
role,team,department,location,other. - Members
member_idslist - The users in the group. On an update this replaces every member.
- Managers
manager_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
- User
person_idnumberRequired - The Trainual user.At least 1.
- Name
nametext - The person's full name.
- Email
emailtext - Their email address, which they sign in with.
- Job title
titletext - Their job title.
- Permission
permissiontext - 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 number
phone_numbertext - Their phone number.
- Start date
start_datedate - The day they start.
- Time zone
time_zonetext - Their time zone, as Trainual names it, such as `America/Los_Angeles`.
- Show in directory
show_in_directorytrue/false - Whether they appear in the company directory.
- Manager
manager_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"
}
}