edx-enterprise icon indicating copy to clipboard operation
edx-enterprise copied to clipboard

API: Cannot unenroll a learner from an enterprise

Open Rah1x opened this issue 4 years ago • 2 comments

  • enterprise version: 3.2.14

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

Rah1x avatar Feb 11 '21 08:02 Rah1x

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.

edx-abolger avatar Mar 01 '21 13:03 edx-abolger

What does that even mean?

This has been logged internally as ENT-4232

Rah1x avatar Mar 03 '21 03:03 Rah1x