Sets the standard hours for this employee.

Request

PUT https://apimy.yourpayroll.io/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:

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

Properties

Name Type Description
advancedWorkWeekConfiguration string Nullable

Possible values are:

  • StartTimeAndStopTime
  • HourOnly
  • WorkDayType
employeeId int32 Int32
fullTimeEquivalentHours double Nullable
standardHoursPerDay double Decimal
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[].workDayType string Nullable

Possible values are:

  • Full
  • Half
  • Off
  • Rest
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