I spent a considerable amount of time trying to use an API that would enrol a user in a course.
To start with I checked this link Enrollment API Enrollment Resource — Open edX Platform APIs 0.1 documentation and it seems it is possible to view list of courses only for the authenticated user but NOT for another user - am I wrong?
Also, for many API endpoints I get {
“detail”: “Authentication credentials were not provided.”
}
although I followed all the steps to get all working properly - see the image…
EDX_API_KEY can a be string key should be something like a pass phrase. Check what you have set in settings of your LMS or set it if not set. Then send same value in HTTP-X-EDX-API-KEY header when calling API.