跳到导航

Update Holiday

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

路径参数

holiday_idstring必需

请求头

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.
holiday_typeenum可选默认为 closed
允许的值:
override_hourslist of objects or null可选

Replacement working hours when holiday_type is ‘override’.

time_off_typeenum可选
允许的值:
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