Creates a new leave request for the employee.

Request

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

Path parameters

Parameter name Value Description Additional
employeeId string Required

Request body

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

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

Properties

Name Type
attachment byte
attachmentId int32
fromDate date-time
hours double
id int32
leaveCategoryId int32
notes string
toDate date-time

Response

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

Status code Description Resource
200 OK

OK