Passer à la navigation

Create Holiday

Create a new holiday

En-têtes

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

Requête

This endpoint expects an object.
namestringRequis
start_dateobjectRequis
Represents a calendar date as individual numeric components.
end_dateobjectRequis
Represents a calendar date as individual numeric components.
time_off_typeenumRequis
Valeurs autorisées:
holiday_typeenumOptionnelPar défaut closed
Valeurs autorisées:
override_hourslist of objects or nullOptionnel

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOptionnel
location_idstring or nullOptionnel

For LOCATION type: the location this closure applies to.

reasonstring or nullOptionnel

Réponse

Réponse réussie

namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Valeurs autorisées:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumOptionnelPar défaut closed
Valeurs autorisées:
override_hourslist of objects or nullOptionnel

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOptionnel
location_idstring or nullOptionnel

For LOCATION type: the location this closure applies to.

reasonstring or nullOptionnel

Erreurs

422
Unprocessable Entity Error