Updates the leave request with the specified ID.


PUT https://api.yourpayroll.com.au/api/v2/business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}

Path parameters

Parameter name Value Description Additional
leaveRequestId int32 Required
businessId string Required
employeeId string Required

Request body

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

    "attachment": {
        "dateCreated": "date-time",
        "friendlyName": "string",
        "id": "int32",
        "url": "string"
    "automaticallyApprove": "boolean",
    "employeeId": "int32",
    "fromDate": "date-time",
    "hours": "double",
    "id": "int32",
    "leaveCategoryId": "int32",
    "notes": "string",
    "requireNotesForLeaveRequests": "boolean",
    "toDate": "date-time"


Name Type
attachment object
attachment.dateCreated date-time
attachment.friendlyName string
attachment.id int32
attachment.url string
automaticallyApprove boolean
employeeId int32
fromDate date-time
hours double
id int32
leaveCategoryId int32
notes string
requireNotesForLeaveRequests boolean
toDate date-time


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

Status code Description Resource
200 OK