Edit and Reschedule Batch Class
Changes the date, time, tutor, topics or live settings of one scheduled batch session. Put the session's `attendance_id` (from "List of Batch Class") in the URL. This is an older endpoint; for sessions created with "Create Session", use "Update Session" instead.
/class/attendance/{attendance_id}/updatecurl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/class/attendance/{attendance_id}/update' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"tutor_id":15,"class_date":"02 Jul 2022","s_hour":17,"s_minute":0,"e_hour":18,"e_minute":0,"send_sms":1,"is_live":1,"zoom_room_waiting":0,"new_class_id":1941,"attendance_id":22857,"external_class_link":null,"exam_type":0,"virtual_class_type":1,"topics":"Not Available For SOme time"}'{
"code": 200,
"message": "Class Updated"
}Access: Institute admins and tutors, plus custom roles with scheduling write permission.
Request body: form-data with one field, JSONString, containing this JSON:
JSONStringD Mon YYYY (for example 1 Jul 2022 or 01 Jul 2022).1 for a live (online) session, 0 for offline. Default 0.is_live is 1: 1 Zoom Meeting (default), 5 Zoom Webinar, 6 Custom Link.virtual_class_type is 6.1 to turn on the Zoom waiting room. Default 0.1 skips the tutor, student and duplicate-session clash checks. Default 0.Notes: Unless force_schedule is 1, the request fails with code 5010 if the tutor is busy, 5011 if enrolled students have another session at that time, or 5012 "Class already scheduled for given date and time." If the date or time changed, students, parents, the tutor and admins are notified (SMS and app notifications, following your notification settings). Rate limit: 100 requests per minute; going over locks you out for 30 minutes.