Courses
Enroll in course
Enrolls the authenticated user in a published course.
ProductionStagingUAT
POSThttps://math.ankiren.com/api/me/courses/{courseId}/enroll
Parameters
Path Parameters
- courseIdintegerpathRequired
Responses
201 · Enrolled successfully
- idintegerRequired
- userIdstringRequired
- courseIdintegerRequired
- enrolledAtstring<date-time>Required
application/json
{ "id": 1, "userId": "clxyz123", "courseId": 1, "enrolledAt": "2025-01-15T10:00:00Z" }
Sample Code
Đổi ngôn ngữ ở ô Language trên thanh Documentation.
cURL
curl -X POST 'https://math.ankiren.com/api/me/courses/{courseId}/enroll' \
-H 'Authorization: Bearer <token>' \
-H 'Accept: application/json'