Updates the leave allowance template with the specified ID.
PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/leaveallowancetemplate/{id}
Parameter name | Value | Description | Additional |
---|---|---|---|
id | int32 | Required | |
businessId | string | Required |
The request body takes a complete AuLeaveAllowanceTemplateModel resource, containing the following writable properties:
{
"awardId": "int32",
"awardName": "string",
"externalId": "string",
"id": "int32",
"leaveAccrualStartDateType": "string",
"leaveCategories": [
{
"accrualRuleLeaveYearOffsetAmount": "int32",
"canApplyForLeave": "boolean",
"contingentPeriod": "double",
"entitlementPeriod": "double",
"leaveAccrualRuleAccrualType": "string",
"leaveAccrualRuleAccrueInAdvance": "boolean",
"leaveAccrualRuleCapType": "string",
"leaveAccrualRuleCarryOverAmount": "double",
"leaveAccrualRuleCarryOverBehaviour": "string",
"leaveAccrualRuleUnitCap": "double",
"leaveCategoryId": "int32",
"leaveCategoryName": "string",
"leaveLoading": "double",
"leaveUnitType": "string",
"unitType": "string",
"units": "double"
}
],
"leaveLoadingCalculatedFromPayCategoryId": "int32",
"leaveYearStart": "date-time",
"name": "string",
"source": "string"
}
Name | Type | Description |
---|---|---|
awardId | int32 |
Nullable |
awardName | string | String |
externalId | string | String |
id | int32 | Int32 |
leaveAccrualStartDateType | string |
Nullable Possible values are:
|
leaveCategories[] | array | |
leaveCategories[].accrualRuleLeaveYearOffsetAmount | int32 |
Nullable |
leaveCategories[].canApplyForLeave | boolean | Boolean |
leaveCategories[].contingentPeriod | double |
Nullable |
leaveCategories[].entitlementPeriod | double |
Nullable |
leaveCategories[].leaveAccrualRuleAccrualType | string |
LeaveAccrualType
Possible values are:
|
leaveCategories[].leaveAccrualRuleAccrueInAdvance | boolean | Boolean |
leaveCategories[].leaveAccrualRuleCapType | string |
LeaveAccrualCapType
Possible values are:
|
leaveCategories[].leaveAccrualRuleCarryOverAmount | double | Decimal |
leaveCategories[].leaveAccrualRuleCarryOverBehaviour | string |
LeaveAccrualCarryOverBehaviour
Possible values are:
|
leaveCategories[].leaveAccrualRuleUnitCap | double | Decimal |
leaveCategories[].leaveCategoryId | int32 | Int32 |
leaveCategories[].leaveCategoryName | string | String |
leaveCategories[].leaveLoading | double |
Nullable |
leaveCategories[].leaveUnitType | string |
Nullable Possible values are:
|
leaveCategories[].unitType | string |
Nullable Possible values are:
|
leaveCategories[].units | double |
Nullable |
leaveLoadingCalculatedFromPayCategoryId | int32 |
Nullable |
leaveYearStart | date-time |
Nullable |
name | string | String |
source | string |
ExternalService
Possible values are:
|
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
AuLeaveAllowanceTemplateModel |