Skip to main content

CurrentUserResetCourseProgress

Resets the course progress of the user provided for the course slug provided.

CurrentUserResetCourseProgress(
userId: ID
slug: String!
revokeAccess: Boolean!
): Boolean!

Directives

authAccess

This requires the current user to be in STUDENT role.

Arguments

CurrentUserResetCourseProgress.userId ● ID scalar

CurrentUserResetCourseProgress.slug ● String! non-null scalar

CurrentUserResetCourseProgress.revokeAccess ● Boolean! non-null scalar

Type

Boolean scalar

The Boolean scalar type represents true or false.

Examples

Run in Postman

Query:

CurrentUserResetCourseProgress(
$userId: ID,
$slug: String!,
$revokeAccess: Boolean!
) {
CurrentUserResetCourseProgress(
userId: $userId,
slug: $slug,
revokeAccess: $revokeAccess
)
}

Variables:

{
"userId": "58ccb96c-8e90-4464-86e0-f284442981df",
"slug": "abc123",
"revokeAccess": true
}

Response:

{
"data": {
"CurrentUserResetCourseProgress": false
}
}