Adobe Studying Supervisor gives the next endpoints for updating a consumer’s route enrollment:
Within the admin API, inside the Set of Consumer API, you’ll in finding the POST /customers/{userId}/userModuleGrade endpoint. You’ll be able to use this to mark a consumer as whole for the modules of a route. Right here’s a pattern payload. Please observe that after dates are set, they can’t be modified. If you want to replace a learner’s information, specify the precise timestamps for finishing touch, good fortune, and many others. For boolean box values, as soon as set to true, they can’t be reverted to false.
“`json
{
“information”: {
“sort”: “userModuleGrade”,
“attributes”: {
“finished”: true,
“dateCompleted”: “2023-07-07T22:46:00.000Z”,
“dateStarted”: “2023-07-07T20:04:51.000Z”,
“dateSuccess”: “2023-07-07T22:46:00.000Z”,
“length”: 59,
“maxScore”: 10980,
“minScore”: 89,
“ranking”: 0,
“began”: true,
“good fortune”: true
},
“relationships”: {
“route”: {
“information”: {
“sort”: “route”,
“identity”: “5541107”
}
},
“learner”: {
“information”: {
“sort”: “consumer”,
“identity”: “20103748”
}
},
“module”: {
“information”: {
“sort”: “courseModule”,
“identity”: “route:5541107_12482441_0”
}
}
}
}
}
“`
To reset a module try for a learner, use the POST /customers/{userId}/moduleResetPost endpoint. The loResourceId box accommodates the <loId/courseID>_<courseInstanceID>_<moduleId>_<moduleVersionNumber>.
Now the query is how will we get the module ID of the route to which the learner is enrolled to via API in ALM –
There are more than one API endpoints by which you’ll be able to get the module ID of the lessons.
You are going to get the module ID within the loResources information within the reaction information of the API calls discussed beneath
1. GET /learningObjects/{identity}
Request URL pattern with route ID and integrated “circumstances” parameter:
2. GET /learningObjects/{loId}/circumstances/{loInstanceId}
Request URL with courseID and courseInstanceID parameter : https://learningmanager.adobe.com/primeapi/v2/learningObjects/coursepercent3A6551356/circumstances/route:<courseID_courseInstanceID>
3.GET /customers/{identity}/enrollments/{enrollmentId}
Request URL with courseID, courseInstanceID and userID parameters
https://learningmanager.adobe.com/primeapi/v2/customers/15263446/enrollments/route:<courseID_courseInstanceID_userID>
—————————————————————————————————————————-
#Adobe finding out supervisor admin learner API #mark route finishing touch #mark module finishing touch #good fortune #the way to replace the usage of API #consumer module grades #quiz ratings API #reset module #route #finding out paths