Setup Extra Class
Adds a one-off extra session to a class (subject batch), outside its regular schedule. Put the class ID (from "Get Batch Details") in the URL. You can target all enrolled students or only some of them.
/class/{class_id}/extracurl --request POST \
--url 'https://<your-api-host>/nuSource/api/v1/class/{class_id}/extra' \
--header 'APIKEY: <your-api-key>' \
--header 'ORGID: <your-org-id>' \
--form 'JSONString={"tutor_id":"15","class_date":"21 Jul 2022","s_hour":13,"s_minute":0,"e_hour":14,"e_minute":0,"topics":"THis Is Extra Class","virtual_class_type":0,"all_selected":true}'{
"code": 5010,
"message": "The tutor assigned to this class is not available in the given time slot(s)."
}Access: Institute admins, tutors, students and parents, plus custom roles with scheduling write permission. The class must belong to your current organization.
Request body: form-data with one field, JSONString, containing this JSON:
JSONStringD Mon YYYY (for example 1 Jul 2022).1 if the session ends after midnight. Without it, an end time earlier than the start time fails with code 5021.true to notify every enrolled student; student_ids is then ignored.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 6.1 to turn on the Zoom waiting room.2 Extra (default), 1 Exam, 0 Normal.1 marks the session as optional.0 to skip notifications. Default 1.1 skips the tutor, student and duplicate-session clash checks.Notes: Unless force_schedule is 1, the request fails with code 5010 "The tutor assigned to this class is not available in the given time slot(s).", 5011 if students have another session then (the message lists the clashes), or 5012 "Class already scheduled for given date and time." Notifications (SMS and app) go to the selected students, their parents, the tutor and admins, following your notification settings. Rate limit: 100 requests per minute; going over locks you out for 30 minutes.