Naar navigatie springen

Update Holiday

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

Padparameters

holiday_idstringVerplicht

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.
namestringOptioneel
start_dateobjectOptioneel
Represents a calendar date as individual numeric components.
end_dateobjectOptioneel
Represents a calendar date as individual numeric components.
holiday_typeenumOptioneelStandaard closed
Toegestane waarden:
override_hourslist of objects or nullOptioneel

Replacement working hours when holiday_type is ‘override’.

time_off_typeenumOptioneel
Toegestane waarden:
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