Creates a new unavailability for the employee.
POST https://apimy.yourpayroll.io/api/v2/business/{businessId}/unavailability
Parameter name | Value | Description | Additional |
---|---|---|---|
businessId | string | Required |
The request body takes a complete UnavailabilitySaveModel resource, containing the following writable properties:
{
"employeeId": "int32",
"endDate": "date-time",
"fromDate": "date-time",
"id": "int32",
"reason": "string",
"recurring": "boolean",
"recurringDay": "string",
"toDate": "date-time"
}
Name | Type | Description |
---|---|---|
employeeId | int32 | Int32 |
endDate | date-time |
Nullable |
fromDate | date-time | DateTime |
id | int32 | Int32 |
reason | string | String |
recurring | boolean | Boolean |
recurringDay | string |
Nullable Possible values are:
|
toDate | date-time |
Nullable |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
UnavailabilityModel |
Powered by DapperDox