cURL
curl --request POST \ --url https://api.example.com/user/class/invites/redeem \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>" } '
{ "id": 123, "class_id": 123, "student_id": 123, "status": "active", "enrolled_at": "2023-11-07T05:31:56Z", "invite_code_id": 123, "completed_at": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
로그인 후, 클래스 초대코드(6자리)만 입력하는 요청 스키마.
Successful Response
active
inactive
completed
dropped