openedx / edx-enterprise

GNU Affero General Public License v3.0
43 stars 44 forks source link

API: Cannot unenroll a learner from an enterprise #1151

Open Rah1x opened 3 years ago

Rah1x commented 3 years ago

Description

Unable to unlink an enterprise leaner from the enterprise using the api.

What I Did

Followed the documentation where it says if you set is_active to false it will remove enrolment:
https://edx-enterprise-api.readthedocs.io/en/latest/api_reference/reference.html#course-enrollments-endpoint

POST: 
https://{url}/enterprise/api/v1/enterprise-customer/{uuid}/course_enrollments/

DATA:
[
    {
        "course_run_id": "{course string}",
        "course_mode": "no-id-professional",
        "user_email": "{email_address}",
        "is_active": false
    }
]

RESPONSE:
(code = 200)
[
    {
        "detail": "success"
    }
]

OUTCOME:
nothing happened, the user / learner is still there
edx-abolger commented 3 years ago

This has been logged internally as ENT-4232. This issue number is internal to edX and will allow our internal team to prioritize this work as part of our internal road maps and sprints.

Rah1x commented 3 years ago

What does that even mean?

This has been logged internally as ENT-4232