Voice

Set the business-hours schedule for a number

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.

put/voice/inbound-routing/business-hours

Request

  • Base URL: https://be.graph8.com/api/v1
  • URL: https://be.graph8.com/api/v1/voice/inbound-routing/business-hours
  • Auth: HTTP bearer

Headers

Authorizationstring nullable
X-Target-Org-Idstring nullable

Request body

phone_numberstring required
timezonestring required

IANA name (e.g. America/New_York). Voice rejects anything pytz cannot load.

Response

Successful Response

dataVoicePayload required

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.

Changes

No recorded changes to this operation across all 2 revisions of this API.