Warning: include(common/nav.html): Failed to open stream: No such file or directory in /home/indexscreener/schoolapi.indexscreener.in/templates/academic/year.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/year.html on line 2

1. Save (Create or Update) an Academic Year

cURL Command:

sh
curl -X POST http://yourdomain.com/api/academic/year/save \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \ -d '{ "clientId": "client1", "academic_year_id": null, "start_date": "2024-06-01", "end_date": "2025-05-01", "is_current": 1 }'

2. Delete an Academic Year

cURL Command:

sh
curl -X POST http://yourdomain.com/api/academic/year/delete \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \ -d '{ "clientId": "client1", "academic_year_id": 1 }'

3. List Academic Years

cURL Command:

sh
curl -X POST http://yourdomain.com/api/academic/year/list \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \ -d '{ "clientId": "client1" }'

4. Get a Specific Academic Year by ID

cURL Command:

sh
curl -X POST http://yourdomain.com/api/academic/year/get \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE" \ -d '{ "clientId": "client1", "academic_year_id": 1 }'