Skip to main content

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 STUDENT role.

Arguments

UpdateLearningPathAccess.slug ● Slug! non-null scalar

UpdateLearningPathAccess.status ● String! non-null scalar

Type

Boolean scalar

The Boolean scalar type represents true or false.

Examples

Run in Postman

Query:

UpdateLearningPathAccess(
$slug: Slug!,
$status: String!
) {
UpdateLearningPathAccess(
slug: $slug,
status: $status
)
}

Variables:

{
"slug": "Slug",
"status": "abc123"
}

Response:

{
"data": {
"UpdateLearningPathAccess": false
}
}