Request

PUT https://api.yourpayroll.co.uk/api/v2/business/{businessId}/employee/{employeeId}/statutoryleave/ssp/{periodOfLeaveId}

Path parameters

Parameter name Value Description Additional
employeeId int32 Required
periodOfLeaveId int32 Required
businessId string Required

Request body

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

{
    "endDate": "date-time",
    "osp": {
        "halfDayFirstDay": "boolean",
        "halfDayLastDay": "boolean",
        "leaveCategoryId": "int32"
    },
    "startDate": "date-time"
}

Properties

Name Type Description
endDate date-time Nullable
osp object UkOspUpdateModel
osp.halfDayFirstDay boolean Nullable
osp.halfDayLastDay boolean Nullable
osp.leaveCategoryId int32 Nullable
startDate date-time Nullable

Response

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

Status code Description Resource
200 OK

OK

PeriodOfLeaveModel