Skip to main content
PUT
Set the workspace business hours

Authorizations

Authorization
string
header
required

API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, billing:write, settings:write, platform:read, platform:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.

Body

application/json
enabled
boolean
required

Turn the workspace business hours on or off. The hours are kept while off.

weekly_hours
object
required

Weekly opening windows in the workspace time zone. Keys mon to sun; each value is an array of up to 3 ["HH:MM", "HH:MM"] start/end pairs (24h) where the end is after the start. A missing key or an empty array means closed that day.

Example:
timezone
string
required

IANA time zone of the workspace, for example Europe/Berlin. The hours are read in this zone.

holidays
object | null

Public holidays that count as closed. Use the catalog of getBookingHolidayCatalog for country, region and holiday keys. null or omitted: no holiday closures.

Example:
closed_dates
string<date>[]

Own closed days (YYYY-MM-DD, workspace time zone), for example a company outing. Up to 100.

Maximum array length: 100

Response

The saved hours.

data
object
required

Business hours of the workspace (Settings → Data → Business hours). One source for the SLA policies and the Check business hours tool; tools, booking event types, Loop and campaigns only offer these hours as a suggestion.