Declines the leave request with the specified ID.
POST https://api.yourpayroll.co.uk/api/v2/business/{businessId}/employee/{employeeId}/leaverequest/{leaveRequestId}/decline
Parameter name | Value | Description | Additional |
---|---|---|---|
employeeId | int32 | Required | |
leaveRequestId | int32 | Required | |
businessId | string | Required |
The request body takes a complete DeclineLeaveRequest resource, containing the following writable properties:
{
"reason": "string"
}
Name | Type | Description |
---|---|---|
reason | string | String |
The following HTTP status codes may be returned, optionally with a response resource.
Status code | Description | Resource |
---|---|---|
200 | OK OK |
UkUnitLeaveRequestResponseModel |
Powered by DapperDox