Hoppa till navigering

Create Holiday

Create a new holiday

Headers

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

Förfrågan

This endpoint expects an object.
namestringObligatorisk
start_dateobjectObligatorisk
Represents a calendar date as individual numeric components.
end_dateobjectObligatorisk
Represents a calendar date as individual numeric components.
time_off_typeenumObligatorisk
Tillåtna värden:
holiday_typeenumValfriStandard är closed
Tillåtna värden:
override_hourslist of objects or nullValfri

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullValfri
location_idstring or nullValfri

For LOCATION type: the location this closure applies to.

reasonstring or nullValfri

Svar

Lyckat svar
namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Tillåtna värden:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumValfriStandard är closed
Tillåtna värden:
override_hourslist of objects or nullValfri

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullValfri
location_idstring or nullValfri

For LOCATION type: the location this closure applies to.

reasonstring or nullValfri

Fel

422
Unprocessable Entity Error