Academic Management

Save Class (Add/Update)










cURL Example:
# Add Class
                curl -X POST https://schoolapi.indexscreener.in/academic/class/save \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "class_name": "Grade 10", "section": "A", "level": 10}'
                
                # Update Class
                curl -X POST https://schoolapi.indexscreener.in/academic/class/save \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "class_id": 1, "class_name": "Grade 10", "section": "B", "level": 10}'
                

        

Delete Class




cURL Example:
curl -X POST https://schoolapi.indexscreener.in/academic/class/delete \
                -H "Content-Type: application/json" \
                -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                -d '{"clientId": "client1", "class_id": 1}'
            

        

List Classes




cURL Example:
# List Classes for Current Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/class/list \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1"}'
                
                # List Classes for Specific Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/class/list \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "academic_year_id": 2}'
                

        

Save Timetable (Add/Update)



















cURL Example:
# Add Timetable
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/save \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "class_id": 1, "day_of_week": "Monday", "start_time": "08:00", "end_time": "09:00", "subject": "Math", "staff_id": 1}'
                
                # Update Timetable
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/save \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "timetable_id": 1, "class_id": 1, "day_of_week": "Monday", "start_time": "08:00", "end_time": "09:00", "subject": "Math", "staff_id": 1}'
                

        

Delete Timetable




cURL Example:
curl -X POST https://schoolapi.indexscreener.in/academic/timetable/delete \
                -H "Content-Type: application/json" \
                -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                -d '{"clientId": "client1", "timetable_id": 1}'
            

        

List Timetables




cURL Example:
# List Timetables for Current Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/list \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1"}'
                
                # List Timetables for Specific Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/list \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "academic_year_id": 2}'
                

        

Get Timetable







cURL Example:
# Get Timetable for Current Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/get \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "class_id": 1}'
                
                # Get Timetable for Specific Academic Year
                curl -X POST https://schoolapi.indexscreener.in/academic/timetable/get \
                    -H "Content-Type: application/json" \
                    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
                    -d '{"clientId": "client1", "class_id": 1, "academic_year_id": 2}'
                

        
Create Staff cURL Commands to Test the API with New Paths

Save Class (Add/Update)

# Add Class
    curl -X POST https://schoolapi.indexscreener.in/academic/class/save \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
        -d '{"clientId": "client1", "class_name": "Grade 10", "section": "A", "level": 10}'
    
    # Update Class
    curl -X POST https://schoolapi.indexscreener.in/academic/class/save \
        -H "Content-Type: application/json" \
        -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
        -d '{"clientId": "client1", "class_id": 1, "class_name": "Grade 10", "section": "B", "level": 10}'
    

Delete Class

curl -X POST https://schoolapi.indexscreener.in/academic/class/delete \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
    -d '{"clientId": "client1", "class_id": 1}'

Save Timetable (Add/Update)

    # Add Timetable
curl -X POST https://schoolapi.indexscreener.in/academic/timetable/save \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
    -d '{"clientId": "client1", "class_id": 1, "day_of_week": "Monday", "start_time": "08:00", "end_time": "09:00", "subject": "Math", "staff_id": 1}'

# Update Timetable
curl -X POST https://schoolapi.indexscreener.in/academic/timetable/save \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
    -d '{"clientId": "client1", "timetable_id": 1, "class_id": 1, "day_of_week": "Monday", "start_time": "08:00", "end_time": "09:00", "subject": "Math", "staff_id": 1}'

Delete Timetable

    curl -X POST https://schoolapi.indexscreener.in/academic/timetable/delete \
    -H "Content-Type: application/json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \
    -d '{"clientId": "client1", "timetable_id": 1}'