mutation CompleteTrainingAssignment($actionId: String!) {
completeTrainingAssignment(actionId: $actionId) {
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"
}{
"data": {
"completeTrainingAssignment": [
{
"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
}
]
}
}completeTrainingAssignment
Completes a training occurrence on behalf of its assignee and returns the completed occurrence plus any next occurrence scheduled. Only online trainings without content can be completed this way.
completeTrainingAssignment(actionId: String!): [ActionToTrainingAssignment!]!Arguments
Id of the action for the training occurrence to complete.
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 CompleteTrainingAssignment($actionId: String!) {
completeTrainingAssignment(actionId: $actionId) {
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"
}{
"data": {
"completeTrainingAssignment": [
{
"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
}
]
}
}