POST api/PayrollOnNet/SycncLeaveBalance

Request Information

URI Parameters

None.

Body Parameters

Collection of AssignLeave
NameDescriptionTypeAdditional information
LeaveId

integer

None.

Balance

decimal number

None.

CompanyId

integer

None.

EmployeeCode

string

None.

EmployeeId

integer

None.

LeaveType

string

None.

Year

string

None.

HKey

string

None.

LKey

string

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "LeaveId": 1,
    "Balance": 2.0,
    "CompanyId": 3,
    "EmployeeCode": "sample string 4",
    "EmployeeId": 5,
    "LeaveType": "sample string 6",
    "Year": "sample string 7",
    "HKey": "sample string 8",
    "LKey": "sample string 9",
    "Id": 10
  },
  {
    "LeaveId": 1,
    "Balance": 2.0,
    "CompanyId": 3,
    "EmployeeCode": "sample string 4",
    "EmployeeId": 5,
    "LeaveType": "sample string 6",
    "Year": "sample string 7",
    "HKey": "sample string 8",
    "LKey": "sample string 9",
    "Id": 10
  }
]

application/xml, text/xml

Sample:
<ArrayOfAssignLeave xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CoreLibrary">
  <AssignLeave>
    <Id>10</Id>
    <Balance>2</Balance>
    <CompanyId>3</CompanyId>
    <EmployeeCode>sample string 4</EmployeeCode>
    <EmployeeId>5</EmployeeId>
    <HKey>sample string 8</HKey>
    <LKey>sample string 9</LKey>
    <LeaveId>1</LeaveId>
    <LeaveType>sample string 6</LeaveType>
    <Year>sample string 7</Year>
  </AssignLeave>
  <AssignLeave>
    <Id>10</Id>
    <Balance>2</Balance>
    <CompanyId>3</CompanyId>
    <EmployeeCode>sample string 4</EmployeeCode>
    <EmployeeId>5</EmployeeId>
    <HKey>sample string 8</HKey>
    <LKey>sample string 9</LKey>
    <LeaveId>1</LeaveId>
    <LeaveType>sample string 6</LeaveType>
    <Year>sample string 7</Year>
  </AssignLeave>
</ArrayOfAssignLeave>

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 'List`1'.

Response Information

Resource Description

APIResult
NameDescriptionTypeAdditional information
status_cd

string

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status_cd": "sample string 1",
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLibrary">
  <message>sample string 2</message>
  <status_cd>sample string 1</status_cd>
</APIResult>