POST api/payroll/specialday/approve

Approve SpecialDay.

Request Information

URI Parameters

None.

Body Parameters

Systemic.Model.Payroll.mlSpecialDay+mlSpecialworkingDayMaster
NamedescriptionTypeAdditional information
SpecialDaySysID

integer

None.

SpecialDayDate

string

None.

HolidaySysID

integer

None.

Reason

string

None.

IsApproved

boolean

None.

IsCancelled

boolean

None.

CancelledReason

string

None.

Trans

Collection of Systemic.Model.Payroll.mlSpecialDay+mlSpecialworkingDayTrans

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "SpecialDaySysID": 1,
  "SpecialDayDate": "sample string 2",
  "HolidaySysID": 3,
  "Reason": "sample string 4",
  "IsApproved": true,
  "IsCancelled": true,
  "CancelledReason": "sample string 7",
  "Trans": [
    {
      "StaffSysID": 1,
      "StaffID": 2,
      "StaffName": "sample string 3",
      "IsPaidWorkingDay": true,
      "IsAllowLeaveReducation": true,
      "IsAllowPermissionReducation": true,
      "DepartmentSysID": 7,
      "Department": "sample string 8",
      "DesignationSysID": 9,
      "Designation": "sample string 10"
    },
    {
      "StaffSysID": 1,
      "StaffID": 2,
      "StaffName": "sample string 3",
      "IsPaidWorkingDay": true,
      "IsAllowLeaveReducation": true,
      "IsAllowPermissionReducation": true,
      "DepartmentSysID": 7,
      "Department": "sample string 8",
      "DesignationSysID": 9,
      "Designation": "sample string 10"
    }
  ]
}

text/xml

Sample:
<mlSpecialDay.mlSpecialworkingDayMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Payroll">
  <CancelledReason>sample string 7</CancelledReason>
  <HolidaySysID>3</HolidaySysID>
  <IsApproved>true</IsApproved>
  <IsCancelled>true</IsCancelled>
  <Reason>sample string 4</Reason>
  <SpecialDayDate>sample string 2</SpecialDayDate>
  <SpecialDaySysID>1</SpecialDaySysID>
  <Trans>
    <mlSpecialDay.mlSpecialworkingDayTrans>
      <Department>sample string 8</Department>
      <DepartmentSysID>7</DepartmentSysID>
      <Designation>sample string 10</Designation>
      <DesignationSysID>9</DesignationSysID>
      <IsAllowLeaveReducation>true</IsAllowLeaveReducation>
      <IsAllowPermissionReducation>true</IsAllowPermissionReducation>
      <IsPaidWorkingDay>true</IsPaidWorkingDay>
      <StaffID>2</StaffID>
      <StaffName>sample string 3</StaffName>
      <StaffSysID>1</StaffSysID>
    </mlSpecialDay.mlSpecialworkingDayTrans>
    <mlSpecialDay.mlSpecialworkingDayTrans>
      <Department>sample string 8</Department>
      <DepartmentSysID>7</DepartmentSysID>
      <Designation>sample string 10</Designation>
      <DesignationSysID>9</DesignationSysID>
      <IsAllowLeaveReducation>true</IsAllowLeaveReducation>
      <IsAllowPermissionReducation>true</IsAllowPermissionReducation>
      <IsPaidWorkingDay>true</IsPaidWorkingDay>
      <StaffID>2</StaffID>
      <StaffName>sample string 3</StaffName>
      <StaffSysID>1</StaffSysID>
    </mlSpecialDay.mlSpecialworkingDayTrans>
  </Trans>
</mlSpecialDay.mlSpecialworkingDayMaster>

response Information

Resource description

ServerResponse.

Api.Server.ServerResponse
NamedescriptionTypeAdditional information
response

string

None.

success

Api.Server.MlSuccess

None.

failure

Api.Server.MlError

None.

response Formats

application/json, text/json, text/html

Sample:
{
  "response": "sample string 1",
  "success": null,
  "failure": null
}

text/xml

Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server">
  <failure i:nil="true" />
  <response>sample string 1</response>
  <success i:nil="true" />
</ServerResponse>