Anyone plz help me, can anyone tell me how can i enroll user into a course from my local system

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???

You can enroll a user in a course via the Instructor Dashboard without making them log in.

you cannot do use that API…I’m stuck with the same…as this API is only for the logged users.