Przejdź do nawigacji

Update Holiday

Update an existing holiday. Only the fields sent are changed.

Parametry ścieżki

holiday_idstringWymagany

Nagłówki

xi-api-keystringOpcjonalny
xi-workspace-idstring or nullOpcjonalny
The customer workspace a reseller's API key acts on.

Żądanie

This endpoint expects an object.
namestringOpcjonalny
start_dateobjectOpcjonalny
Represents a calendar date as individual numeric components.
end_dateobjectOpcjonalny
Represents a calendar date as individual numeric components.
holiday_typeenumOpcjonalnyDomyślnie closed
Dozwolone wartości:
override_hourslist of objects or nullOpcjonalny

Replacement working hours when holiday_type is ‘override’.

time_off_typeenumOpcjonalny
Dozwolone wartości:
resource_idstring or nullOpcjonalny
location_idstring or nullOpcjonalny

For LOCATION type: the location this closure applies to.

reasonstring or nullOpcjonalny

Odpowiedź

Pomyślna odpowiedź

namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Dozwolone wartości:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumOpcjonalnyDomyślnie closed
Dozwolone wartości:
override_hourslist of objects or nullOpcjonalny

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOpcjonalny
location_idstring or nullOpcjonalny

For LOCATION type: the location this closure applies to.

reasonstring or nullOpcjonalny

Błędy

422
Unprocessable Entity Error