Hi.
I am having issue when sumbitting scores to moodle using lti 1.3 integration. I am following official imsglobal spec.
In external tool for IMS LTI Assignment and Grade services I have selected "Use this service for grade sync and column management".
Then I make a post request to lineitemurl/scores with token in the header and score in the body like:
{
ActivityProgress = ActivityProgress.Completed,
GradingProgress = GradingProgess.FullyGraded,
ScoreGiven = scoreReceived,
ScoreMaximum = 100,
TimeStamp = DateTime.UtcNow,
UserId = ltiRequest.UserId
}
but getting in reply that score is incorrect:
Error:"Incorrect score received{\"activityProgress\":\"Completed\",\"comment\":null,\"gradingProgress\":\"FullyGraded\",\"scoreGiven\":80.0,\"scoreMaximum\":100.0,\"timestamp\":\"2023-06-21T16:14:31.0469841Z\",\"userId\":\"7\"}"
However mentioned in error score is compliant with imsglobas spec.
Do you know how to fix it? I can't find api logs in moodle interface.
by Vitalii Volkov.