Update call time windows
Atomically replaces the call window configuration. Send any combination
of inbound_enabled, outbound_enabled, and windows. Omitting
windows leaves the existing schedule unchanged; including it (even as
an empty array) overwrites the whole schedule.
Window rules:
day_of_weekis 0–6 (0=Sunday … 6=Saturday).start_timeandend_timeareHH:MM(24h, workspace timezone).start_timemust be earlier thanend_time(no overnight wrap-around — use two rows on consecutive days instead).- Multiple windows per day are allowed but must not overlap.
Atomically replaces the call window configuration. Send any combination ofDocumentation Index
Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
Use this file to discover all available pages before exploring further.
inbound_enabled, outbound_enabled, and windows:
- Omitting
windowsleaves the existing schedule unchanged. - Including
windows(even as an empty array) overwrites the entire schedule for every day of the week.
Window rules
day_of_weekis0–6(0= Sunday,6= Saturday).start_timeandend_timeareHH:MMstrings in 24-hour format. They are evaluated in the workspace timezone (companies.timezone, editable from the Company settings tab).start_timemust be strictly earlier thanend_time— there is no overnight wrap-around. To express a window that crosses midnight, use two entries on consecutive days (e.g.{ day_of_week: 4, start_time: "22:00", end_time: "23:59" }and{ day_of_week: 5, start_time: "00:00", end_time: "02:00" }).- Multiple windows per day are allowed but they must not overlap.
Example request
Example response
The response mirrorsGET /call-windows so clients can update state without a follow-up read:
Disabling windows entirely
To stop gating outbound calls without losing your schedule, set the toggle off and omitwindows:
day_of_week. To close every day, pass "windows": [].
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | INVALID_CALL_WINDOWS | Two ranges on the same day overlap, or start_time is not strictly before end_time. |
| 400 | — | day_of_week is outside 0..6, or a time is not HH:MM. |
| 401 | — | Missing or invalid API key. |
Authorizations
Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys.
Body
Response
Updated configuration
Company-level configuration that gates inbound and outbound calls by
time-of-day. When outbound_enabled is true, outbound API requests
placed outside any allowed window are deferred — the response is
202 Accepted with status: "scheduled" and a scheduled_for
timestamp marking the next window opening. When inbound_enabled is
true, inbound calls received outside any allowed window are hung up
before being answered (no call_logs row is created).
A day with no windows is a closed day for whichever directions are enforced. The default schedule (seeded for every company) is Sunday through Thursday 09:00–19:00 plus Friday 09:00–11:30; Saturday is closed.
IANA timezone identifier. Reflects companies.timezone. Edit it in the Company settings tab.
"Asia/Jerusalem"
When true, inbound calls outside the window are hung up before answering. Default false.
When true, outbound calls outside the window are scheduled for the next opening. Default true.