Naar navigatie springen

Create Holiday

Create a new holiday

Headers

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

Verzoek

This endpoint expects an object.
namestringVerplicht
start_dateobjectVerplicht
Represents a calendar date as individual numeric components.
end_dateobjectVerplicht
Represents a calendar date as individual numeric components.
time_off_typeenumVerplicht
Toegestane waarden:
holiday_typeenumOptioneelStandaard closed
Toegestane waarden:
override_hourslist of objects or nullOptioneel

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOptioneel
location_idstring or nullOptioneel

For LOCATION type: the location this closure applies to.

reasonstring or nullOptioneel

Response

Geslaagde response
namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Toegestane waarden:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumOptioneelStandaard closed
Toegestane waarden:
override_hourslist of objects or nullOptioneel

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOptioneel
location_idstring or nullOptioneel

For LOCATION type: the location this closure applies to.

reasonstring or nullOptioneel

Fouten

422
Unprocessable Entity Error