Vai alla navigazione

Create Holiday

Create a new holiday

Header

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

Richiesta

This endpoint expects an object.
namestringObbligatorio
start_dateobjectObbligatorio
Represents a calendar date as individual numeric components.
end_dateobjectObbligatorio
Represents a calendar date as individual numeric components.
time_off_typeenumObbligatorio
Valori consentiti:
holiday_typeenumOpzionalePredefinito a closed
Valori consentiti:
override_hourslist of objects or nullOpzionale

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOpzionale
location_idstring or nullOpzionale

For LOCATION type: the location this closure applies to.

reasonstring or nullOpzionale

Risposta

Risposta riuscita
namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Valori consentiti:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumOpzionalePredefinito a closed
Valori consentiti:
override_hourslist of objects or nullOpzionale

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOpzionale
location_idstring or nullOpzionale

For LOCATION type: the location this closure applies to.

reasonstring or nullOpzionale

Errori

422
Unprocessable Entity Error