Set Booking Hours and Rules from the CLI or API
Booking rules control how far ahead someone must book, the buffers before and after a meeting, the working hours and time zone, and meeting reminders. These rules live on the Cal.com event type that the deployment books. Erdo keeps no copy, so every booking surface follows the rules Cal.com holds. If the working-hours schedule is shared with other event types, Erdo gives this event type its own copy before changing it. The other event types keep their hours. This page applies to Cal.com only. For Google Calendar or Calendly, change the rules in that provider. You need organization admin access.CLI
Read a widget’s rules by public key or name:--hours. You can also set --buffer-before,
--buffer-after, and --reminders on or off. A set command prints the
rules read back from Cal.com.
REST API
Use your API key. The widget target can be its public key or name; the phone-line target is the agent slug.PUT stay unchanged, and working
hours sent without a time_zone keep the zone they are in today.
MCP
The MCP tools areerdo_get_voice_booking_rules and
erdo_set_voice_booking_rules.
If it refuses
404: no widget or phone line by that name in your organization.403: your account can’t change this organization’s voice settings.400with codeinvalid_argument: a value is wrong, and the message says which.400with codefailed_precondition: the deployment has no Cal.com event type yet, its calendar is Google Calendar or Calendly (change the rules there), the calendar needs reconnecting, or the phone line books through a website widget that shares its agent. The message names that widget; use its booking rules instead.
deployment.books_through_agent set to the line’s slug.
