Hi there!
I am hoping to use the course completed webhook to track when users complete required training in an ILT course. While the webhook does have a date completed field, I am concerned this triggers when the instructor marks the student as complete in Docebo, not when the student actually completed the course. This is important as there is legal significance around when this training expires, so I want to retrieve the date of the final event in their assigned session to ensure an instructor inputting grades late does not cause us to record a later expiry date (It’s ok if the expiry date ends up being a couple days early. It is very bad if it ends up being late).
The webhook gives me both the user_id and course_id which is great, however I am trying to find an API call that will allow me to find the sessions a learner is enrolled in. I found the course enrollment API which allows you to filter course enrollment by user, but it does not seem to provide a field for session enrollment info in the response.
If this doesn’t exist I could work backwards from the course ID to scan through each session associated with the course until I find the given user, but this seems inefficient and would be annoying to program haha.
It’s totally possible I have just been overlooking a simple API call since there’s a lot and no great way to search through the API Browser, so any help or ideas would be highly appreciated.
Thank you!
