Documentation

Enrollment

Leave course

Removes the user from a course (soft delete - status changed to "dropped"). Progress is preserved in case the user re-enrolls.

ProductionStagingUAT
DELETEhttps://ankiren.com/api/courses/{courseId}/enroll

Parameters

Path Parameters

  • courseIdintegerpathRequired

    Course ID

Responses

200 · Left course successfully

  • successboolean
application/json
{
  "success": true
}

Sample Code

Đổi ngôn ngữ ở ô Language trên thanh Documentation.

cURL
curl -X DELETE 'https://ankiren.com/api/courses/{courseId}/enroll' \
  -H 'Authorization: Bearer <token>' \
  -H 'Accept: application/json'