Replace ShiftOverrides for an employee.
Shift-overrides
Replace ShiftOverrides for an employee.
Replace all ShiftOverrides for a given employee within the specified date range.
This endpoint uses a PUT semantic: all existing ShiftOverrides for the employee within
the
startsAt.between range will be removed and replaced by the ones provided in the
request body. If none exist, then the provided ShiftOverrides will simply be created.PUT
Replace ShiftOverrides for an employee.
Headers
API key. Value must be formatted like so: lucca application={api_key}.
Query Parameters
The ID of the employee whose ShiftOverrides should be replaced.
Required range:
x >= 0The date range within which existing ShiftOverrides will be replaced.
Open-ended ranges can be defined with .. characters.
Examples:
"2023-01-01--2023-01-31"
"..--2023-01-01"
"2023-01-01--.."
Body
application/json
The ID of the employee this override applies to.
Required range:
x >= 0Available options:
firstHalf, secondHalf, fullDay Start date-time of the override.
The duration of the override.
The nature of the shift override.
worked: the employee is working.off: the employee is off.partTime: part-time day.weeklyRest: weekly rest day.
Available options:
worked, off, partTime, weeklyRest Optional comment associated with the override.
Response
OK