Creates a new unavailability for the employee.

Request

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

Path parameters

Parameter name Value Description Additional
employeeId string Required

Request body

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

{
    "endDate": "date-time",
    "fromDate": "date-time",
    "id": "int32",
    "reason": "string",
    "recurring": "boolean",
    "recurringDay": "string",
    "toDate": "date-time",
    "viewOnly": "boolean"
}

Properties

Name Type
endDate date-time
fromDate date-time
id int32
reason string
recurring boolean
recurringDay string
toDate date-time
viewOnly boolean

Response

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

Status code Description Resource
200 OK

OK

EssUnavailabilityModel