Updates the leave request with the specified ID.

Request

POST https://api.yourpayroll.com.au/api/v2/ess/{employeeId}/leave/{leaveRequestId}

Path parameters

Parameter name Value Description Additional
leaveRequestId int32 Required
employeeId string Required

Request body

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

{
    "attachment": "byte",
    "attachmentId": "int32",
    "filename": "string",
    "fromDate": "date-time",
    "hours": "double",
    "id": "int32",
    "leaveCategoryId": "int32",
    "notes": "string",
    "toDate": "date-time"
}

Properties

Name Type Description
attachment byte Byte[]
attachmentId int32 Nullable
filename string String
fromDate date-time

Required

hours double

Required

id int32 Int32
leaveCategoryId int32

Required

notes string String
toDate date-time

Required

Response

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

Status code Description Resource
200 OK

OK