Skip to content

API: Cannot unenroll a learner from an enterprise  #1151

@Rah1x

Description

@Rah1x
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions