> ## 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 a number's business hours

> Replaces a number's own hours. Send `useOwnHours: false` alone to return the number to the company hours; its own hours are kept for later. With `useOwnHours: true`, send every field. **It applies to the next call.** The number's other settings do not change.

**Emergency redirect.** To send every call of a number to one phone number today, set `useOwnHours: true`, add a special date for today with `closedAllDay: true`, and set a `closedAction` of type `redirect`. Business hours keep no versions: keep the previous object, and to switch back, send the object you kept as it is. The object a read returns for hours never saved (`useOwnHours: false`, `closedAction: null` and empty lists) is accepted too, as `useOwnHours: false` alone. With `useOwnHours: 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): `useOwnHours` is not compared, the number returns to the company hours, also when it used its own, and the stored closed action is kept. `timeZone` and `updatedAt` are ignored, as in every save. With `useOwnHours: true`, or with other settings, the `null` is `422 VALIDATION.INVALID_FIELD`. After an emergency redirect the stored hours are no longer the ones you kept, so a kept object with such a `null` is refused: set a value in it before you send it back. With `useOwnHours: true` a save always needs one.



## 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 company business hours](https://help.cloudtalk.io/api-reference/business-hours/replace-company-business-hours.md)
- [Get a number's business hours](https://help.cloudtalk.io/api-reference/business-hours/get-a-numbers-business-hours.md)


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