calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.65k stars 7.7k forks source link

API support for duplicating Event Types #15407

Open GeorgeShao opened 3 months ago

GeorgeShao commented 3 months ago

Is your proposal related to a problem?

It's easy to duplicate an Event Type on the Cal.com website, by clicking the "duplicate" option in the dropdown on the Event Types page, but there doesn't appear to be any API endpoint that duplicates an Event Type.

Describe the solution you'd like

Create/expose an API endpoint to duplicate an Event Type, that behaves the same as the "duplicate" option in the dropdown on the Event Types page.

Describe alternatives you've considered

Modify the existing API route for creating an Event Type to take in a "template" or "base" parameter that identifies an existing Event Type to use as a base for all body parameters, which can be overridden by passing in body parameters for the new Event Type.

Additional context

No

Requirement/Document

(Share it here.)


House rules
PeerRich commented 3 months ago

i think you can do that with the trpc call