Skip to Content
0
Sep 13, 2019 at 11:37 AM

LMS API - How to get Learning History for a component (course) instead of User

1186 Views

I am trying to get the Learning history of a specific course, but the API request using the "Learning History" service always expects the "targetUserID" value. How to skip this and get all results based on the component Id.

My Request:

https://xxxx.plateau.com/learning/odatav4/public/user/learningHistory/v1/learninghistorys?$filter=(criteria/itemID eq 'YYY_1807_ssssssssss')&select=componentID&$top=50

Response i am getting:

{ "error": { "code": null, "message": "ERROR: User ID cannot be null\n", "operationStatusDetail": { "status": "FAILED", "operation": null, "warnings": [], "errors": [ { "code": "500", "message": "User ID cannot be null", "fieldName": null } ] } } }

Please help