> ## Documentation Index
> Fetch the complete documentation index at: https://help.cloudtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Replace company business hours

> Replaces the company business hours. Every field except the read-only ones is required. The object a read returns is accepted back as it is, the one for hours never saved (`enabled: false` and `closedAction: null`) included. With `enabled: false`, a closed action a read shows with `soundId`, `voicemailBoxId` or `phoneNumber` `null` is accepted too, when `openingHours`, `specialDates`, `holidaysClosed` and `closedAction` are what a read returns now (in any order): `enabled` is not compared, the hours switch off, also when they were on, and the stored closed action is kept. `timeZone` and `updatedAt` are ignored, as in every save. With `enabled: true`, or with other settings, the `null` is `422 VALIDATION.INVALID_FIELD`. **It applies to the next call.** Business hours run before the call flow: when closed, callers get the closed action instead of the flow. Business hours keep no versions: keep the previous object if you may want to switch back.



## API Specification

The full API specification for this endpoint is available in the [documentation index](https://help.cloudtalk.io/llms.txt).


## Related topics

- [Changelog](https://help.cloudtalk.io/changelog.md)
- [Replace a number's business hours](https://help.cloudtalk.io/api-reference/business-hours/replace-a-numbers-business-hours.md)
- [Get company business hours](https://help.cloudtalk.io/api-reference/business-hours/get-company-business-hours.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.