POST api/payroll/leave/delete

Delete Leave.

Request Information

URI Parameters

None.

Body Parameters

Systemic.Model.Payroll.mlLeave+mlStaffLeave
NamedescriptionTypeAdditional information
LeaveSysID

integer

None.

StaffName

string

None.

StaffID

integer

None.

StaffSysID

integer

None.

NoOfDays

decimal number

None.

FromDate

string

None.

ToDate

string

None.

StatusName

string

None.

StatusSysID

integer

None.

Meridian

string

None.

MeridianSysID

integer

None.

Reason

string

None.

IsApproved

boolean

None.

ApprovedBy

string

None.

ApprovedDate

string

None.

Request Formats

application/json, text/json, text/html

Sample:
{
  "LeaveSysID": 1,
  "StaffName": "sample string 2",
  "StaffID": 3,
  "StaffSysID": 4,
  "NoOfDays": 5.0,
  "FromDate": "sample string 6",
  "ToDate": "sample string 7",
  "StatusName": "sample string 8",
  "StatusSysID": 9,
  "Meridian": "sample string 10",
  "MeridianSysID": 11,
  "Reason": "sample string 12",
  "IsApproved": true,
  "ApprovedBy": "sample string 14",
  "ApprovedDate": "sample string 15"
}

text/xml

Sample:
<mlLeave.mlStaffLeave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Payroll">
  <ApprovedBy>sample string 14</ApprovedBy>
  <ApprovedDate>sample string 15</ApprovedDate>
  <FromDate>sample string 6</FromDate>
  <IsApproved>true</IsApproved>
  <LeaveSysID>1</LeaveSysID>
  <Meridian>sample string 10</Meridian>
  <MeridianSysID>11</MeridianSysID>
  <NoOfDays>5</NoOfDays>
  <Reason>sample string 12</Reason>
  <StaffID>3</StaffID>
  <StaffName>sample string 2</StaffName>
  <StaffSysID>4</StaffSysID>
  <StatusName>sample string 8</StatusName>
  <StatusSysID>9</StatusSysID>
  <ToDate>sample string 7</ToDate>
</mlLeave.mlStaffLeave>

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>