Sets the leave allowances for the specified employee
PUT https://apisg.yourpayroll.io/api/v2/business/{businessId}/employee/{employeeId}/leaveallowances
Parameter name | Value | Description | Additional |
---|---|---|---|
businessId | string | Required | |
employeeId | string | Required |
The request body takes a complete SgLeaveAllowanceModel resource, containing the following writable properties:
[
{
"automaticallyAccrues": "boolean",
"canApplyForLeave": "boolean",
"hoursPerYear": "double",
"leaveAccrualRule": {
"accrualType": "string",
"accrueInAdvance": "boolean",
"capType": "string",
"carryOverAmount": "double",
"carryOverBehaviour": "string",
"id": "int32",
"leaveYearOffsetAmount": "int32",
"unitCap": "double"
},
"leaveCategoryId": "string",
"leaveCategoryName": "string",
"leaveUnitType": "string",
"unitType": "string",
"units": "double"
}
]
Name | Type | Description |
---|---|---|
automaticallyAccrues | boolean | Boolean |
canApplyForLeave | boolean | Boolean |
hoursPerYear | double | Decimal |
leaveAccrualRule | object | SgLeaveAccrualRuleModel |
leaveAccrualRule.accrualType | string |
LeaveAccrualType
Possible values are:
|
leaveAccrualRule.accrueInAdvance | boolean | Boolean |
leaveAccrualRule.capType | string |
LeaveAccrualCapType
Possible values are:
|
leaveAccrualRule.carryOverAmount | double | Decimal |
leaveAccrualRule.carryOverBehaviour | string |
LeaveAccrualCarryOverBehaviour
Possible values are:
|
leaveAccrualRule.id | int32 | Int32 |
leaveAccrualRule.leaveYearOffsetAmount | int32 |
Nullable |
leaveAccrualRule.unitCap | double | Decimal |
leaveCategoryId | string | String |
leaveCategoryName | string | String |
leaveUnitType | string | String |
unitType | string | String |
units | double |
Nullable |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
Powered by DapperDox