can anyone help me or guide me how i can enroll a user into my edx course without making him logged in ?
i am trying to call this https://www.grassroots-dev.online/api/enrollment/v1/enrollment
with these json
{
"action": "enroll",
"course_id": "course-v1:mexyon+SEOMex1+SEOMex1",
"id":2,
"user": "Shahzadbaloch43333@gmail.com",
"course_modes": "honot",
"is_active":true
}
i have tried everything but its keep responding me
{
“message”: “Course ID must be specified to create a new enrollment.”
}
then i find that i only can enroll a logged in user into a course…
is there any way to enroll a user into my open edx course with just course id user id or email or username with api secrect key and super admin access token without making him logged in???