Below Post Body should work for the mentioned endpoint (users/{id}/userModuleGrade).
However module id format and course id format provided in this post body follows V1 module format.
So need to get the course and its course module info by calling v1 api first.
This is because userModuleGrade model format conforms to v1 api format.
courseModuleID: 208893_511761_1 , here 208893 is course_id and 511761 is module id.
POST BODY
----------------------
{
"data": {
"type": "userModuleGrade",
"attributes": {
"duration": 1,
"score": 20,
"minScore": 10,
"maxScore": 20,
"dateCompleted": "2018-07-01T04:43:37.000Z",
"dateSuccess": "2018-07-01T04:43:37.000Z",
"dateStarted": "2018-07-01T04:43:37.000Z",
"started": true,
"completed": true,
"success": true
},
"relationships" : {
"learner" : {
"data" : [
{
"id":"123456",
"type": "user"
}
]
},
"module" : {
"data" : [
{
"id":"208893_511761_1",
"type": "courseModule"
}
]
},
"course" : {
"data" : [
{
"id":"208893",
"type": "course"
}
]
}
}
}
}