POST api/LeaveItem
Request Information
URI Parameters
None.
Body Parameters
LeaveItemParam| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| Description | string |
None. |
|
| IsPaidTimeOff | boolean |
None. |
|
| IsEnable | boolean |
None. |
|
| PayPercentage | decimal number |
None. |
|
| StartDate | string |
None. |
|
| EndDate | string |
None. |
|
| PrequalifyingPeriod | integer |
None. |
|
| PrequalifyingPeriodLength | integer |
None. |
|
| PrequalifyingPeriodValue | integer |
None. |
|
| IsOpeningBalance | boolean |
None. |
|
| LeaveCalculationBasis | integer |
None. |
|
| LeaveEntitlement | string |
None. |
|
| WeeklyWorkingHours | string |
None. |
|
| RepeatEntitlementOccurenceAnnually | boolean |
None. |
|
| RepeatRules | integer |
None. |
|
| RepeatEvery | integer |
None. |
|
| EntitlementLimitation | integer |
None. |
|
| IsPaidOutIfNotUsed | boolean |
None. |
|
| IsPaidOutOnTermination | boolean |
None. |
|
| UserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"Description": "sample string 2",
"IsPaidTimeOff": true,
"IsEnable": true,
"PayPercentage": 5.0,
"StartDate": "sample string 6",
"EndDate": "sample string 7",
"PrequalifyingPeriod": 8,
"PrequalifyingPeriodLength": 9,
"PrequalifyingPeriodValue": 10,
"IsOpeningBalance": true,
"LeaveCalculationBasis": 12,
"LeaveEntitlement": "sample string 13",
"WeeklyWorkingHours": "sample string 14",
"RepeatEntitlementOccurenceAnnually": true,
"RepeatRules": 16,
"RepeatEvery": 17,
"EntitlementLimitation": 18,
"IsPaidOutIfNotUsed": true,
"IsPaidOutOnTermination": true,
"UserId": 21
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.