Sets the standard hours for this employee.

Request

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

Path parameters

Parameter name Value Description Additional
businessId string Required
employeeId string Required

Request body

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

{
    "employeeId": "int32",
    "standardHoursPerWeek": "double",
    "standardWorkDays": [
        {
            "breakEndTime": "string",
            "breakStartTime": "string",
            "dayOfWeek": "int32",
            "endTime": "string",
            "hours": "double",
            "id": "int32",
            "locationId": "int32",
            "startTime": "string",
            "week": "int32",
            "workTypeId": "int32"
        }
    ],
    "useAdvancedWorkWeek": "boolean"
}

Properties

Name Type Description
employeeId int32 Int32
standardHoursPerWeek double Decimal
standardWorkDays[] array
standardWorkDays[].breakEndTime string String
standardWorkDays[].breakStartTime string String
standardWorkDays[].dayOfWeek int32 Int32
standardWorkDays[].endTime string String
standardWorkDays[].hours double Decimal
standardWorkDays[].id int32 Int32
standardWorkDays[].locationId int32 Nullable
standardWorkDays[].startTime string String
standardWorkDays[].week int32 Int32
standardWorkDays[].workTypeId int32 Nullable
useAdvancedWorkWeek boolean Boolean

Response

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

Status code Description Resource
200 OK

OK

StandardHoursModel