Warning: include(../common/nav.html): Failed to open stream: No such file or directory in /home/indexscreener/schoolapi.indexscreener.in/templates/academic/schedule.html on line 2
Warning: include(): Failed opening '../common/nav.html' for inclusion (include_path='.:/opt/alt/php83/usr/share/pear:/opt/alt/php83/usr/share/php:/usr/share/pear:/usr/share/php') in /home/indexscreener/schoolapi.indexscreener.in/templates/academic/schedule.html on line 2
Save Class Schedule (Add/Update)
sh
curl -X POST http://yourdomain.com/api/academic/schedule/save \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"scheduleData": {
"schedule_id": null, # Use null for adding new schedule or provide schedule_id for updating
"class_id": 1,
"section": "A",
"staff_id": 1,
"subject_id": 1,
"day_of_week": "Monday",
"period_id": 1,
"academic_year_id": 1
}
}'
Delete Class Schedule
curl -X POST http://yourdomain.com/api/academic/schedule/delete \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"schedule_id": 1 # Provide the schedule_id to be deleted
}'
List Class Schedules
curl -X POST http://yourdomain.com/api/academic/schedule/list \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"limit": 10, # Optional: number of records to fetch
"offset": 0 # Optional: offset for pagination
}'
Get Class Schedule Details by ID
curl -X POST http://yourdomain.com/api/academic/schedule/get \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
-d '{
"clientId": "client1",
"staff_id": 1 # Provide the staff_id to get the details
}'