Saltar a la navegación

Update Holiday

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

Parámetros de ruta

holiday_idstringRequerido

Encabezados

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

Solicitud

This endpoint expects an object.
namestringOpcional
start_dateobjectOpcional
Represents a calendar date as individual numeric components.
end_dateobjectOpcional
Represents a calendar date as individual numeric components.
holiday_typeenumOpcionalValor predeterminado: closed
Valores permitidos:
override_hourslist of objects or nullOpcional

Replacement working hours when holiday_type is ‘override’.

time_off_typeenumOpcional
Valores permitidos:
resource_idstring or nullOpcional
location_idstring or nullOpcional

For LOCATION type: the location this closure applies to.

reasonstring or nullOpcional

Respuesta

Respuesta correcta.
namestring
start_dateobject
Represents a calendar date as individual numeric components.
end_dateobject
Represents a calendar date as individual numeric components.
time_off_typeenum
Valores permitidos:
idstring
created_at_unixinteger
updated_at_unixinteger
holiday_typeenumOpcionalValor predeterminado: closed
Valores permitidos:
override_hourslist of objects or nullOpcional

Replacement working hours when holiday_type is ‘override’.

resource_idstring or nullOpcional
location_idstring or nullOpcional

For LOCATION type: the location this closure applies to.

reasonstring or nullOpcional

Errores

422
Unprocessable Entity Error