Get result of a course item for a given user
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
cURL
curl --request POST \ --url https://backend.codedamn.com/api/public/get-user-course-item-result \ --header 'Content-Type: application/json' \ --header 'FERMION-API-KEY: <api-key>' \ --data ' { "data": [ { "data": { "courseItemId": "<string>", "userId": "<string>", "userEmail": "[email protected]" } } ] } '
[ { "output": { "status": "ok", "data": { "result": { "isMarkedAsCompleted": true, "details": { "courseItemType": "Quiz", "quizUniqueId": "<string>", "questions": [ { "questionUniqueId": "<string>", "selectedOptionIds": [ "<string>" ] } ] } } } } } ]
API Request Body
Show child attributes
ID of the course item.
Internal userId you have been using for the user in your database
Email of the user
API Response Body
ok
Result data for the course item
Whether the course item has been marked as completed
Details specific to the course item result
Type of course item, currently only Quiz is supported
Quiz
Unique identifier for the quiz
List of questions and their selected answers
Unique identifier for the question
Array of selected option IDs for this question