नेविगेशन पर जाएँ

Create Holiday

Create a new holiday

हेडर

xi-api-keystringवैकल्पिक
xi-workspace-idstring or nullवैकल्पिक
The customer workspace a reseller's API key acts on.

अनुरोध

This endpoint expects an object.
namestringआवश्यक
start_dateobjectआवश्यक
Represents a calendar date as individual numeric components.
end_dateobjectआवश्यक
Represents a calendar date as individual numeric components.
time_off_typeenumआवश्यक
अनुमत मान:
holiday_typeenumवैकल्पिकडिफ़ॉल्ट: closed
अनुमत मान:
override_hourslist of objects or nullवैकल्पिक

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullवैकल्पिक
location_idstring or nullवैकल्पिक

For LOCATION type: the location this closure applies to.

reasonstring or nullवैकल्पिक

रिस्पॉन्स

सफल रिस्पॉन्स

namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
अनुमत मान:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumवैकल्पिकडिफ़ॉल्ट: closed
अनुमत मान:
override_hourslist of objects or nullवैकल्पिक

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullवैकल्पिक
location_idstring or nullवैकल्पिक

For LOCATION type: the location this closure applies to.

reasonstring or nullवैकल्पिक

त्रुटियाँ

422
Unprocessable Entity Error