UpdateLearningPathAccess
Used to change the learning path status to either 'not-started', 'started', or 'not-completed' for the current user. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
UpdateLearningPathAccess(
slug: Slug!
status: String!
): Boolean!
Directives
authAccess
This requires the current user to be in
STUDENTrole.
Arguments
UpdateLearningPathAccess.slug ● Slug! non-null scalar
UpdateLearningPathAccess.status ● String! non-null scalar
Type
Boolean scalar
The
Booleanscalar type representstrueorfalse.
Examples
Query:
UpdateLearningPathAccess(
$slug: Slug!,
$status: String!
) {
UpdateLearningPathAccess(
slug: $slug,
status: $status
)
}
Variables:
{
"slug": "Slug",
"status": "abc123"
}
Response:
{
"data": {
"UpdateLearningPathAccess": false
}
}