Skip to content

feat(bookings): add overrideAvailability flag to v2 create endpoint#29534

Open
GAURAV07C wants to merge 3 commits into
calcom:mainfrom
GAURAV07C:feat/override-availability-bookings
Open

feat(bookings): add overrideAvailability flag to v2 create endpoint#29534
GAURAV07C wants to merge 3 commits into
calcom:mainfrom
GAURAV07C:feat/override-availability-bookings

Conversation

@GAURAV07C

@GAURAV07C GAURAV07C commented Jun 10, 2026

Copy link
Copy Markdown

#29249
This PR is a continuation of #29254 which was previously closed due to inactivity.

It has been rebased on the latest main branch and includes fixes based on prior review feedback:

Fixed incorrect HTTP status handling:
401 Unauthorized for unauthenticated requests
403 Forbidden for authenticated users without required permissions
Fixed validation edge case where overrideAvailability: null could bypass boolean validation

@github-actions

Copy link
Copy Markdown
Contributor

Welcome to Cal.diy, @GAURAV07C! Thanks for opening this pull request.

A few things to keep in mind:

  • This is Cal.diy, not Cal.com. Cal.diy is a community-driven, fully open-source fork of Cal.com licensed under MIT. Your changes here will be part of Cal.diy — they will not be deployed to the Cal.com production app.
  • Please review our Contributing Guidelines if you haven't already.
  • Make sure your PR title follows the Conventional Commits format.

A maintainer will review your PR soon. Thanks for contributing!

@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This PR implements an organizer override feature allowing event type owners and org admins to create bookings that bypass availability checks and calendar conflict validation. The change adds an optional overrideAvailability boolean request field with authorization verification, propagates a skipAvailabilityCheck flag through all booking creation methods and into bookingMeta, updates OpenAPI schemas and endpoint documentation, and performs unrelated cleanup of deprecated webhook triggers.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding an overrideAvailability flag to the v2 create bookings endpoint, which matches the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description check ✅ Passed The PR description is directly related to the changeset, explaining the addition of overrideAvailability flag and detailing specific HTTP status and validation fixes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@CLAassistant

CLAassistant commented Jun 14, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants