curl --request POST \
--url http://localhost:5000/api/attendance/mark \
--header 'Content-Type: application/json' \
--data '{
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT"
}'
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
}
Record a student attendance entry for a given date and status.
curl --request POST \
--url http://localhost:5000/api/attendance/mark \
--header 'Content-Type: application/json' \
--data '{
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT"
}'
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
}
Creates a new attendance record for a student. Pass the student’s MongoDB ObjectId, the date of attendance, and the attendance status.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/praveenarya123/sps-backend/llms.txt
Use this file to discover all available pages before exploring further.
2026-03-18T00:00:00.000Z).PRESENT, ABSENT, LATE.curl --request POST \
--url http://localhost:5000/api/attendance/mark \
--header 'Content-Type: application/json' \
--data '{
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT"
}'
{
"_id": "64c9a3b7d2e1f0a987654321",
"studentId": "64b8f1a2c3d4e5f678901234",
"date": "2026-03-18T00:00:00.000Z",
"status": "PRESENT",
"__v": 0
}