Optional
userId: numberThe ID of the user.
Optional
courseId: stringThe ID of the course.
Optional
topicId: stringThe ID of the topic.
Optional
learningElementId: numberThe ID of the learning element.
An object containing the new rating of the student and learning element.
const { studentRating, learningElementRating } = await postCalculateRating(userId, courseId, topicId, learningElementId)
Generated using TypeDoc
Sends a POST request to calculate new ratings in the backend.
This service function sends an HTTP request to calculate a new student and learning element rating using the backend API.