Skip to main content

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:
Set weekday hours and a time zone:
Read or change a phone line by its voice agent slug:
You can repeat --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.
The REST response contains the deployment, provider, event type, and the rules Cal.com currently holds. Omitted fields in a PUT stay unchanged, and working hours sent without a time_zone keep the zone they are in today.

MCP

The MCP tools are erdo_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.
  • 400 with code invalid_argument: a value is wrong, and the message says which.
  • 400 with code failed_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.
A widget whose own booking is off but whose phone line books shows the line’s rules, with deployment.books_through_agent set to the line’s slug.