Course Default Batch Schedule API
Returns the session timetable of a batch that is sold on your website, class by class. Use it on a course page to show when classes happen.
GET
/public/masterbatches/{Master_Batch_id}/classesCourse Default Batch Schedule API
curl --request GET \
--url 'https://<your-api-host>/nuSource/api/v1/public/masterbatches/{Master_Batch_id}/classes'{
"code": 200,
"message": "Success",
"schedule": [
{
"class_id": 2214,
"timings": [
{
"schedule_id": 2022,
"day": 2,
"s_hour": 13,
"s_minute": 0,
"e_hour": 16,
"e_minute": 0
},
{
"schedule_id": 2023,
"day": 6,
"s_hour": 13,
"s_minute": 0,
"e_hour": 16,
"e_minute": 0
}
],
"batch_class_count": 0,
"course_id": 24,
"tutor_id": 1
},
{
"class_id": 2215,
"timings": [
{
"schedule_id": 1996,
"day": 1,
"s_hour": 8,
"s_minute": 0,
"e_hour": 18,
"e_minute": 0
},
{
"schedule_id": 1997,
"day": 2,
"s_hour": 8,
"s_minute": 0,
"e_hour": 18,
"e_minute": 0
},
{
"schedule_id": 1998,
"day": 3,
"s_hour": 8,
"s_minute": 0,
"e_hour": 18,
"e_minute": 0
},
{
"schedule_id": 1999,
"day": 4,
"s_hour": 8,
"s_minute": 0,
"e_hour": 18,
"e_minute": 0
},
{
"schedule_id": 2000,
"day": 5,
"s_hour": 8,
"s_minute": 0,
"e_hour": 18,
"e_minute": 0
}
],
"batch_class_count": 0,
"course_id": 52,
"tutor_id": 1
}
]
}Access: Public, no API key.
Path parameters
The batch ID (the number in the URL before
/classes).Query parameters
offsetinteger
Visitor's time zone offset in minutes, as JavaScript
getTimezoneOffset() gives it (for example -330 for India). Times are converted to that zone. Default: India time.Response
codeinteger
Example:
200messagestring
Example:
Successscheduleobject[]
Show child attributesHide child attributes
schedule.class_idinteger
Example:
2214schedule.timingsobject[]
Show child attributesHide child attributes
schedule.timings.schedule_idinteger
Example:
2022schedule.timings.dayinteger
Example:
2schedule.timings.s_hourinteger
Example:
13schedule.timings.s_minuteinteger
Example:
0schedule.timings.e_hourinteger
Example:
16schedule.timings.e_minuteinteger
Example:
0schedule.batch_class_countinteger
Example:
0schedule.course_idinteger
Example:
24schedule.tutor_idinteger
Example:
1Notes: Only batches open on the website (marketplace batches) are returned; other IDs give "Invalid Bundle ID".