v3

latestOpenAPI 3.1.02026-07-31144319609.5 KB
TargetHour

put/targethours/{id}

Path parameters

idinteger required
Example:1

Request body

type'weekly' | 'monthly' required

Possible values:

  • weekly: Weekly
  • monthly: Monthly
date_sincestring date required
date_untilstring date nullable
mondaynumber float
tuesdaynumber float
wednesdaynumber float
thursdaynumber float
fridaynumber float
saturdaynumber float
sundaynumber float
monthly_targetnumber float
workday_mondayboolean
workday_tuesdayboolean
workday_wednesdayboolean
workday_thursdayboolean
workday_fridayboolean
workday_saturdayboolean
workday_sundayboolean
compensation_dailyinteger

Compensation for daily target hours in minutes

compensation_monthlyinteger

Compensation for monthly target hours in minutes

holiday_fixed_credit0 | 1
surcharge_models_idinteger nullable

Example request

{
  "date_since": "2023-02-28",
  "date_until": "2023-02-28"
}

Response

Successful operation

Example response

{
  "targethoursRow": {
    "id": 10,
    "users_id": 10,
    "surcharge_models_id": 10,
    "type": "weekly",
    "date_since": "2023-02-28",
    "date_until": "2023-03-03",
    "monday": 8.5,
    "tuesday": 8.5,
    "wednesday": 8.5,
    "thursday": 8.5,
    "friday": 8.5,
    "saturday": 8.5,
    "sunday": 8.5,
    "absence_fixed_credit": true,
    "compensation_daily": 30.5,
    "compensation_monthly": 0.5
  }
}