Przejdź do nawigacji

Create Holiday

Create a new holiday

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.
namestringWymagany
start_dateobjectWymagany
Represents a calendar date as individual numeric components.
end_dateobjectWymagany
Represents a calendar date as individual numeric components.
time_off_typeenumWymagany
Dozwolone wartości:
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

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