Skip to main content

UpdateTopicAndCourseProgress

Updates the progress a user has made on a course, article, video, or other content types. The progress is provided as a percentage. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

UpdateTopicAndCourseProgress(
topicId: ID!
progress: Int!
): Boolean!

Directives

authAccess

This requires the current user to be in STUDENT role.

Arguments

UpdateTopicAndCourseProgress.topicId ● ID! non-null scalar

The id of the topic.

UpdateTopicAndCourseProgress.progress ● Int! non-null scalar

A number between 0 - 100 where 100 represents the topic being completed fully.

Type

Boolean scalar

The Boolean scalar type represents true or false.

Examples

Run in Postman

Query:

UpdateTopicAndCourseProgress(
$topicId: ID!,
$progress: Int!
) {
UpdateTopicAndCourseProgress(
topicId: $topicId,
progress: $progress
)
}

Variables:

{
"topicId": "58ccb96c-8e90-4464-86e0-f284442981df",
"progress": 678
}

Response:

{
"data": {
"UpdateTopicAndCourseProgress": false
}
}