POST api/Schedule/SaveOrUpdateStudentsAttendance

Request Information

URI Parameters

None.

Body Parameters

AttendanceList
NameDescriptionTypeAdditional information
Attendance

Collection of RegisteredStudentsbySessionId

None.

Request Formats

application/json, text/json

Sample:
{
  "Attendance": [
    {
      "ScheduleId": 1,
      "PgNumber": 2,
      "PgLimit": 1,
      "OrderList": "sample string 3",
      "SessionId": 1,
      "StudentName": "sample string 4",
      "StudentId": 5,
      "Email": "sample string 6",
      "ClassName": "sample string 7",
      "StartDate": "2025-09-06T13:46:41.6399395+00:00",
      "ScheduleName": "sample string 9",
      "SesWeek": 10,
      "Total_count": 11,
      "Present": true,
      "Id": 13,
      "mailCheckBox": true
    },
    {
      "ScheduleId": 1,
      "PgNumber": 2,
      "PgLimit": 1,
      "OrderList": "sample string 3",
      "SessionId": 1,
      "StudentName": "sample string 4",
      "StudentId": 5,
      "Email": "sample string 6",
      "ClassName": "sample string 7",
      "StartDate": "2025-09-06T13:46:41.6399395+00:00",
      "ScheduleName": "sample string 9",
      "SesWeek": 10,
      "Total_count": 11,
      "Present": true,
      "Id": 13,
      "mailCheckBox": true
    }
  ]
}

application/xml, text/xml

Sample:
<AttendanceList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HLSClientPortal.Models">
  <Attendance>
    <RegisteredStudentsbySessionId>
      <ClassName>sample string 7</ClassName>
      <Email>sample string 6</Email>
      <Id>13</Id>
      <OrderList>sample string 3</OrderList>
      <PgLimit>1</PgLimit>
      <PgNumber>2</PgNumber>
      <Present>true</Present>
      <ScheduleId>1</ScheduleId>
      <ScheduleName>sample string 9</ScheduleName>
      <SesWeek>10</SesWeek>
      <SessionId>1</SessionId>
      <StartDate>2025-09-06T13:46:41.6399395+00:00</StartDate>
      <StudentId>5</StudentId>
      <StudentName>sample string 4</StudentName>
      <Total_count>11</Total_count>
      <mailCheckBox>true</mailCheckBox>
    </RegisteredStudentsbySessionId>
    <RegisteredStudentsbySessionId>
      <ClassName>sample string 7</ClassName>
      <Email>sample string 6</Email>
      <Id>13</Id>
      <OrderList>sample string 3</OrderList>
      <PgLimit>1</PgLimit>
      <PgNumber>2</PgNumber>
      <Present>true</Present>
      <ScheduleId>1</ScheduleId>
      <ScheduleName>sample string 9</ScheduleName>
      <SesWeek>10</SesWeek>
      <SessionId>1</SessionId>
      <StartDate>2025-09-06T13:46:41.6399395+00:00</StartDate>
      <StudentId>5</StudentId>
      <StudentName>sample string 4</StudentName>
      <Total_count>11</Total_count>
      <mailCheckBox>true</mailCheckBox>
    </RegisteredStudentsbySessionId>
  </Attendance>
</AttendanceList>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'AttendanceList'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />