mutation UpdateActionProgress($actionId: String!, $progressPct: Int!) {
updateActionProgress(actionId: $actionId, progressPct: $progressPct) {
action {
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
actionId
assignment {
actions {
__typename
}
id
latestAction {
assigned {
__typename
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
latestActionId
nextAt
nextTraining {
anchor
assignedGroups {
__typename
}
assignedUsers {
__typename
}
followup {
__typename
}
id
materials {
__typename
}
}
}
assignmentId
present
progressPct
}
}{
"actionId": "string",
"progressPct": 1
}{
"data": {
"updateActionProgress": [
{
"action": {
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"actionId": "id",
"assignment": {
"actions": [
{
"__typename": "ActionToTrainingAssignment"
}
],
"id": "id",
"latestAction": {
"assigned": {
"__typename": "User"
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"latestActionId": "id",
"nextAt": "value",
"nextTraining": {
"anchor": "string",
"assignedGroups": [
{
"__typename": "UserGroup"
}
],
"assignedUsers": [
{
"__typename": "User"
}
],
"followup": {
"__typename": "Training"
},
"id": "id",
"materials": [
{
"__typename": "TrainingMaterial"
}
]
}
},
"assignmentId": "id",
"present": true,
"progressPct": 1
}
]
}
}updateActionProgress
Records progress through the content of a training occurrence and returns the updated occurrence plus any next occurrence scheduled on completion. Reaching 100 completes the occurrence unless the training has a quiz or is held in person.
updateActionProgress(actionId: String!, hasQuiz: Boolean, progressPct: Int!): [ActionToTrainingAssignment!]!Arguments
Id of the action for the training occurrence.
Whether the training has a quiz that must still be passed.
Percentage of the content viewed, from 0 to 100.
Returns
The action that tracks this occurrence.
Id of the 'TRAINING' action that tracks this occurrence.
The training assignment this occurrence was issued under.
Id of the training assignment this occurrence belongs to.
Whether the learner was marked as attended, for in-person trainings.
How much of the training content the learner has viewed, from 0 to 100.
The answers the learner submitted to the training quiz.
Whether the SCORM package reported that the learner failed it.
The training, at the version the occurrence was issued against.
mutation UpdateActionProgress($actionId: String!, $progressPct: Int!) {
updateActionProgress(actionId: $actionId, progressPct: $progressPct) {
action {
assigned {
allowedLocations {
__typename
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
actionId
assignment {
actions {
__typename
}
id
latestAction {
assigned {
__typename
}
assignment {
__typename
}
canChangeStatus
completedDate
createdAt
dueDate
}
latestActionId
nextAt
nextTraining {
anchor
assignedGroups {
__typename
}
assignedUsers {
__typename
}
followup {
__typename
}
id
materials {
__typename
}
}
}
assignmentId
present
progressPct
}
}{
"actionId": "string",
"progressPct": 1
}{
"data": {
"updateActionProgress": [
{
"action": {
"assigned": {
"allowedLocations": [
{
"__typename": "Location"
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"actionId": "id",
"assignment": {
"actions": [
{
"__typename": "ActionToTrainingAssignment"
}
],
"id": "id",
"latestAction": {
"assigned": {
"__typename": "User"
},
"assignment": {
"__typename": "ActionToTrainingAssignment"
},
"canChangeStatus": true,
"completedDate": "value",
"createdAt": "value",
"dueDate": "value"
},
"latestActionId": "id",
"nextAt": "value",
"nextTraining": {
"anchor": "string",
"assignedGroups": [
{
"__typename": "UserGroup"
}
],
"assignedUsers": [
{
"__typename": "User"
}
],
"followup": {
"__typename": "Training"
},
"id": "id",
"materials": [
{
"__typename": "TrainingMaterial"
}
]
}
},
"assignmentId": "id",
"present": true,
"progressPct": 1
}
]
}
}