Set the business-hours schedule for a number
PUT /voice/inbound-routing/business-hours
Create or REPLACE the open-hours / after-hours rule pair.
A PUT because it is a replace: calling it twice leaves two rules, not
four. It writes into the same rule list /voice/inbound-routing/rules
manages, so a hand-made rule at a lower priority still wins over it.
timezone is an IANA name and voice rejects anything it cannot load, so
a schedule cannot silently run in UTC.
Authorizations
Parameters
Header Parameters
Request Body required
Create or REPLACE the business-hours / after-hours pair for a number.
This is a two-rule bulk setup, not an addition: calling it again replaces both rules rather than adding more.
object
The open hours themselves.
object
24h HH:MM.
24h HH:MM.
IANA name (e.g. America/New_York). Voice rejects anything pytz cannot load.
Responses
200
Successful Response
object
One voice object - a collection, an agent, a route, a chat.
Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error