Bulk apply leave requests

Request

POST https://apisg.yourpayroll.io/api/v2/business/{businessId}/payrun/{payRunId}/bulkapplyleaverequests

Path parameters

Parameter name Value Description Additional
payRunId int32 Required
businessId string Required

Request body

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

{
    "alignToPayRunPeriod": "boolean",
    "leaveRequestIds": [
        "int32"
    ]
}

Properties

Name Type Description
alignToPayRunPeriod boolean Boolean
leaveRequestIds[] array of int32

Response

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

Status code Description Resource
200 OK

OK

ApplyLeaveRequestResult