Skip to main content
PATCH
FIXED · call For new Google Calendar or Cal.com voice bookings, collect spelled name and email separately. Finish the combined read-back and get a later clear yes before the write, even with require_booking_confirmation=false. To reschedule or cancel an existing Cal.com appointment that changed across lookups, read back the current target in full and get a fresh yes. Google Calendar skips this; its moves and cancels follow require_booking_confirmation. Confirm success only after the calendar write succeeds. SMS uses its own flow. NOT OFFERED → do this instead · number The booking zone cannot change general call time. Set calcom_timezone_override on the number to an IANA zone, or null to inherit. Cal.com uses number → agent → saved connection → Europe/London. With a booking context, read effective_calcom_timezone and effective_calcom_timezone_source. Google Calendar keeps its own number-calendar setting. YOU CAN CHANGE · number Supported Google Calendar settings include availability hours, timezone and invitation behaviour. These configure that number’s booking calendar. timezone, hours, slot_minutes, calendar_id, send_invites. SCOPE · number For an owned number assigned to an agent, send only return_url to start Google Calendar consent. Open the returned url for the calendar owner. A competing calendar is refused. Read the number’s status after consent to confirm connection. Read the compact AI rules Set calendar timezone, weekly hours, slot length and caller invitations for an owned Nixflex number. Omitted settings retain their saved value.
Method: PATCH ·
Success: 200 ·
Scope: Owning account
The important part
  • Send all seven days when changing working_hours and use an IANA time zone.
  • send_invites requests Google notifications; it does not confirm inbox delivery.

Authentication

Use Authorization: Bearer KEY_ID:KEY_SECRET for the owning account. An organisation API key has Owner authority. Personal sessions use the role rules documented in Authentication; do not treat a Member session as an API key.

Request fields

Send one or more fields. Omission preserves each saved value. hours replaces the whole map: provide all seven lowercase weekday names, each null or exactly ["HH:MM", "HH:MM"]. Closing must follow opening on the same day; overnight intervals are refused. Legacy defaults are Monday–Friday 09:00–17:00, 30-minute slots and primary calendar. send_invites is a JSON boolean. Existing connections default to true when the value is absent. A string such as "false", null or a number is refused. When enabled, Google is asked to email the caller an invitation, update or cancellation; Google controls delivery. No owner attendee or separate owner email is added. Setting false requests no Google notification. See booking flow.

Response fields

200 returns the following shape. The response contains safe settings and send_invites; it contains no OAuth credentials.

Example request

Production HTTP examples. Replace the placeholder identifiers with resources owned by the account. Set NIXFLEX_API_KEY privately; never print it.

Example response

Illustrative response with placeholder identifiers.

Errors

Branch on error.code, not the wording of error.message. The envelope includes type, code, message, doc_url and details. invalid_send_invites means the value was not a boolean. PATCH requires a connected calendar.

Retry and idempotency

Disable automatic write retries. A lost response leaves the result uncertain; read the affected resource before another deliberate action. No general Idempotency-Key replay guarantee applies. See retry rules.

Authorizations

Authorization
string
header
required

KEY_ID:KEY_SECRET from the owning account. Keep it server-side. A verified personal dashboard Bearer session may be used where the operation documents role-based access.

Path Parameters

phoneNumber
string
required

Owned E.164 number. URL-encode the leading +.

Pattern: ^\+[1-9][0-9]{1,14}$

Body

application/json
timezone
string

IANA timezone. Explicit per-number timezone wins; older settings can inherit the agent timezone.

Maximum string length: 100
hours
object

Replace the entire seven-day map. Omit to retain saved hours.

slot_minutes
enum<integer>

Older connections default to 30 minutes.

Available options:
15,
30,
45,
60
calendar_id
string

Editable calendar ID; primary by default.

Required string length: 1 - 1024
Pattern: ^[^\s\x00-\x1f\x7f]+$
send_invites
boolean

Defaults to true when not previously stored. Omission on PATCH preserves the setting. Google controls delivery.

Response

Success. Cache-Control: no-store.

timezone
string
required

IANA timezone. Explicit per-number timezone wins; older settings can inherit the agent timezone.

Maximum string length: 100
hours
object
required

Replace the entire seven-day map. Omit to retain saved hours.

slot_minutes
enum<integer>
required

Older connections default to 30 minutes.

Available options:
15,
30,
45,
60
calendar_id
string
required

Editable calendar ID; primary by default.

Required string length: 1 - 1024
Pattern: ^[^\s\x00-\x1f\x7f]+$
send_invites
boolean
required

Defaults to true when not previously stored. Omission on PATCH preserves the setting. Google controls delivery.