POST api/Attendance/MarkAttendance

Request Information

URI Parameters

None.

Body Parameters

Collection of AttendanceModel
NameDescriptionTypeAdditional information
id

integer

None.

Comments

string

None.

IsPresent

integer

None.

IsLeave

integer

None.

teacherId

integer

None.

studentId

integer

None.

classId

integer

None.

section

string

None.

typeId

integer

None.

attendanceDate

date

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "comments": "sample string 2",
    "isPresent": 3,
    "isLeave": 4,
    "teacherId": 5,
    "studentId": 6,
    "classId": 7,
    "section": "sample string 8",
    "typeId": 9,
    "attendanceDate": "2026-06-22T02:32:41.9720001-07:00"
  },
  {
    "id": 1,
    "comments": "sample string 2",
    "isPresent": 3,
    "isLeave": 4,
    "teacherId": 5,
    "studentId": 6,
    "classId": 7,
    "section": "sample string 8",
    "typeId": 9,
    "attendanceDate": "2026-06-22T02:32:41.9720001-07:00"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAttendanceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Models">
  <AttendanceModel>
    <Comments>sample string 2</Comments>
    <IsLeave>4</IsLeave>
    <IsPresent>3</IsPresent>
    <attendanceDate>2026-06-22T02:32:41.9720001-07:00</attendanceDate>
    <classId>7</classId>
    <id>1</id>
    <section>sample string 8</section>
    <studentId>6</studentId>
    <teacherId>5</teacherId>
    <typeId>9</typeId>
  </AttendanceModel>
  <AttendanceModel>
    <Comments>sample string 2</Comments>
    <IsLeave>4</IsLeave>
    <IsPresent>3</IsPresent>
    <attendanceDate>2026-06-22T02:32:41.9720001-07:00</attendanceDate>
    <classId>7</classId>
    <id>1</id>
    <section>sample string 8</section>
    <studentId>6</studentId>
    <teacherId>5</teacherId>
    <typeId>9</typeId>
  </AttendanceModel>
</ArrayOfAttendanceModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
Version

string

None.

StatusCode

integer

None.

Message

string

None.

ResponseException

ApiError

None.

Result

Object

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.