cURL
curl --request PATCH \ --url https://api.example.com/partner/{partner_id}/classes/{class_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "status": "planned", "description": "<string>", "start_at": "2023-11-07T05:31:56Z", "end_at": "2023-11-07T05:31:56Z", "capacity": 123, "timezone": "<string>", "location": "<string>", "online_url": "<string>", "invite_only": true, "course_id": 123, "primary_model_id": 123, "allowed_model_ids": [ 123 ] } '
{ "name": "<string>", "id": 123, "partner_id": 123, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "status": "planned", "description": "<string>", "start_at": "2023-11-07T05:31:56Z", "end_at": "2023-11-07T05:31:56Z", "capacity": 123, "timezone": "<string>", "location": "<string>", "online_url": "<string>", "invite_only": true, "primary_model_id": 123, "allowed_model_ids": [ 123 ], "course_id": 123, "invite_codes": [ { "id": 123, "partner_id": 123, "class_id": 123, "code": "<string>", "target_role": "<string>", "used_count": 123, "status": "<string>", "created_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "max_uses": 123, "created_by": 123 } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
강사 ID
x >= 1
planned
active
ended
Successful Response
DB → 응답용 스키마
Show child attributes