POST api/ldb/LeaveInsertion

Request Information

URI Parameters

None.

Body Parameters

LeaveRequestEntity
NameDescriptionTypeAdditional information
ApiUserName

string

None.

Token

string

None.

Empid

integer

None.

LeaveTypeId

integer

None.

LeaveFrm

string

None.

LeaveTo

string

None.

Remarks

string

None.

Procid

integer

None.

Approvedby

integer

None.

Status

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ApiUserName": "sample string 1",
  "Token": "sample string 2",
  "Empid": 3,
  "LeaveTypeId": 4,
  "LeaveFrm": "sample string 5",
  "LeaveTo": "sample string 6",
  "Remarks": "sample string 7",
  "Procid": 8,
  "Approvedby": 9,
  "Status": "sample string 10"
}

application/xml, text/xml

Sample:
<LeaveRequestEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDBAPI.Models">
  <ApiUserName>sample string 1</ApiUserName>
  <Approvedby>9</Approvedby>
  <Empid>3</Empid>
  <LeaveFrm>sample string 5</LeaveFrm>
  <LeaveTo>sample string 6</LeaveTo>
  <LeaveTypeId>4</LeaveTypeId>
  <Procid>8</Procid>
  <Remarks>sample string 7</Remarks>
  <Status>sample string 10</Status>
  <Token>sample string 2</Token>
</LeaveRequestEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LeaveResponseEntity
NameDescriptionTypeAdditional information
respCode

string

None.

respMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "respCode": "sample string 1",
  "respMessage": "sample string 2"
}

application/xml, text/xml

Sample:
<LeaveResponseEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LDBAPI.Models">
  <respCode>sample string 1</respCode>
  <respMessage>sample string 2</respMessage>
</LeaveResponseEntity>