Docs home

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.

POST/class/attendance/{attendance_id}/update
Edit and Reschedule Batch Class
curl --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:

Path parameters
attendance_idintegerrequired
The session to change.
BodyJSONString
class_datestringrequired
New date, as D Mon YYYY (for example 1 Jul 2022 or 01 Jul 2022).
s_hourintegerrequired
Start hour, 0-23, in your timezone.
s_minuteintegerrequired
Start minute, 0-59.
e_hourintegerrequired
End hour, 0-23. If the end is earlier than the start, the session is treated as ending the next day.
e_minuteintegerrequired
End minute, 0-59.
tutor_idintegerrequired
Tutor who will take the session.
topicsstring
Topics to be taught. Replaces the current text; sent empty if left out.
is_liveinteger
1 for a live (online) session, 0 for offline. Default 0.
Only when is_live is 1: 1 Zoom Meeting (default), 5 Zoom Webinar, 6 Custom Link.
1 to turn on the Zoom waiting room. Default 0.
exam_namestring
Session name for batch-level sessions. If left out, the stored session name is cleared.
1 skips the tutor, student and duplicate-session clash checks. Default 0.
Response200application/json
codeinteger
Example: 200
messagestring
Example: Class Updated

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.

Updated yesterday

Ask AI