POST api/StudentAbsent/RegisterStudentAbsentMutiple

Request Information

URI Parameters

None.

Body Parameters

RegisterStudentAbsentModel
NameDescriptionTypeAdditional information
ArrAbsent

Collection of StudentAbsentTrackClass

None.

Reason

string

None.

StudentAbsentId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ArrAbsent": [
    {
      "TrackClassId": 1,
      "TotalRow": 1,
      "ClassId": 2,
      "ClassName": "sample string 3",
      "TrackDate": "2026-06-15T16:04:44.7689792+07:00",
      "udShift": "sample string 4",
      "DayOfWeek": "Monday",
      "TypeAbsent": true,
      "AbsentReason": "sample string 5"
    },
    {
      "TrackClassId": 1,
      "TotalRow": 1,
      "ClassId": 2,
      "ClassName": "sample string 3",
      "TrackDate": "2026-06-15T16:04:44.7689792+07:00",
      "udShift": "sample string 4",
      "DayOfWeek": "Monday",
      "TypeAbsent": true,
      "AbsentReason": "sample string 5"
    }
  ],
  "Reason": "sample string 1",
  "StudentAbsentId": 1
}

application/xml, text/xml

Sample:
<RegisterStudentAbsentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EBM.Portal.Bus.Model">
  <ArrAbsent>
    <StudentAbsentTrackClass>
      <AbsentReason>sample string 5</AbsentReason>
      <ClassId>2</ClassId>
      <ClassName>sample string 3</ClassName>
      <TotalRow>1</TotalRow>
      <TrackClassId>1</TrackClassId>
      <TrackDate>2026-06-15T16:04:44.7689792+07:00</TrackDate>
      <TypeAbsent>true</TypeAbsent>
      <udShift>sample string 4</udShift>
    </StudentAbsentTrackClass>
    <StudentAbsentTrackClass>
      <AbsentReason>sample string 5</AbsentReason>
      <ClassId>2</ClassId>
      <ClassName>sample string 3</ClassName>
      <TotalRow>1</TotalRow>
      <TrackClassId>1</TrackClassId>
      <TrackDate>2026-06-15T16:04:44.7689792+07:00</TrackDate>
      <TypeAbsent>true</TypeAbsent>
      <udShift>sample string 4</udShift>
    </StudentAbsentTrackClass>
  </ArrAbsent>
  <Reason>sample string 1</Reason>
  <StudentAbsentId>1</StudentAbsentId>
</RegisterStudentAbsentModel>

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 'RegisterStudentAbsentModel'.

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/" />