Get All Holidays
Get all holidays/time-off entries for the current workspace with optional filters
헤더
xi-api-key
xi-workspace-id
The customer workspace a reseller's API key acts on.
쿼리 매개변수
start_unix
Filter entries overlapping from this timestamp
end_unix
Filter entries overlapping before this timestamp
time_off_type
Filter by type: location, staff, or asset
허용된 값:
resource_id
Filter by associated resource ID (staff/asset)
location_id
Filter by location ID
응답
성공 응답
name
start_date
Represents a calendar date as individual numeric components.
end_date
Represents a calendar date as individual numeric components.
time_off_type
허용된 값:
id
created_at_unix
updated_at_unix
holiday_type
허용된 값:
override_hours
Replacement working hours when holiday_type is ‘override’.
resource_id
location_id
For LOCATION type: the location this closure applies to.
reason
오류
422
Unprocessable Entity Error