Updates the leave allowance template with the specified ID.


PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/leaveallowancetemplate/{id}

Path parameters

Parameter name Value Description Additional
id int32 Required
businessId string Required

Request body

The request body takes a complete LeaveAllowanceTemplateModel resource, containing the following writable properties:

    "externalId": "string",
    "id": "int32",
    "leaveCategories": [
            "canApplyForLeave": "boolean",
            "contingentPeriod": "double",
            "entitlementPeriod": "double",
            "leaveCategoryId": "int32",
            "leaveLoading": "double",
            "unitType": "string",
            "units": "double"
    "name": "string",
    "source": "string"


Name Type
externalId string
id int32
leaveCategories[] array
leaveCategories[].canApplyForLeave boolean
leaveCategories[].contingentPeriod double
leaveCategories[].entitlementPeriod double
leaveCategories[].leaveCategoryId int32
leaveCategories[].leaveLoading double
leaveCategories[].unitType string
leaveCategories[].units double
name string
source string


The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
200 OK