set_availability_rules
Set buffer times before/after events and per-day working hours on a calendar to automatically apply them to availability queries.
Instructions
Set or replace the availability rules on a calendar — buffer times before/after events and optional per-day working hours. When these rules are set, every availability query on this calendar automatically applies them (busy-block expansion for buffers, masking outside working hours). Upsert: overwrites any existing rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | IANA timezone used to interpret working_hours (e.g. America/New_York) | UTC |
| calendar_id | Yes | Calendar to configure | |
| working_hours | No | Per-day working hours map in the calendar's timezone; omit keys for off-days. Pass null to remove any working-hours constraint. | |
| buffer_after_minutes | No | Minutes of buffer after each event (0–120) | |
| buffer_before_minutes | No | Minutes of buffer before each event (0–120) |