POST api/leavetype/insert

Request Information

URI Parameters

None.

Body Parameters

InsertLeaveTypeRequestModel
NameDescriptionTypeAdditional information
LeaveTypeID

integer

None.

BranchID

integer

None.

LeaveTypeName

string

None.

Description

string

None.

AffectOnBasic

boolean

None.

UserID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "LeaveTypeID": 1,
  "BranchID": 2,
  "LeaveTypeName": "sample string 3",
  "Description": "sample string 4",
  "AffectOnBasic": true,
  "UserID": 6
}

application/xml, text/xml

Sample:
<InsertLeaveTypeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers">
  <AffectOnBasic>true</AffectOnBasic>
  <BranchID>2</BranchID>
  <Description>sample string 4</Description>
  <LeaveTypeID>1</LeaveTypeID>
  <LeaveTypeName>sample string 3</LeaveTypeName>
  <UserID>6</UserID>
</InsertLeaveTypeRequestModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.