Skip to content

Scheduling infrastructure for absolutely everyone.

Add team example to POST (#10041)

Syed Ali Shahbaz1a905aa33072
diff --git a/apps/api/pages/api/event-types/_post.ts b/apps/api/pages/api/event-types/_post.ts
index 488a15e6b9e..d87894c4df1 100644
--- a/apps/api/pages/api/event-types/_post.ts
+++ b/apps/api/pages/api/event-types/_post.ts
@@ -47,7 +47,6 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";
* slug:
* type: string
* description: Unique slug for the event type
- * example: my-event
* hosts:
* type: array
* items:
@@ -168,9 +167,9 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";
* type: string
* displayLocationPublicly:
* type: boolean
- * example:
+ * examples:
* event-type:
- * summary: An example of event type POST request
+ * summary: An example of an individual event type POST request
* value:
* title: Hello World
* slug: hello-world
@@ -205,6 +204,42 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts";
* }
* }
* }
+ * team-event-type:
+ * summary: An example of a team event type POST request
+ * value:
+ * title: "Tennis class"
+ * slug: "tennis-class-{{$guid}}"
+ * length: 60
+ * hidden: false
+ * position: 0
+ * teamId: 3
+ * eventName: null
+ * timeZone: null
+ * periodType: "UNLIMITED"
+ * periodStartDate: null
+ * periodEndDate: null
+ * periodDays: null
+ * periodCountCalendarDays: null
+ * requiresConfirmation: true
+ * recurringEvent:
+ * interval: 2
+ * count: 10
+ * freq: 2
+ * disableGuests: false
+ * hideCalendarNotes: false
+ * minimumBookingNotice: 120
+ * beforeEventBuffer: 0
+ * afterEventBuffer: 0
+ * schedulingType: "COLLECTIVE"
+ * price: 0
+ * currency: "usd"
+ * slotInterval: null
+ * successRedirectUrl: null
+ * description: null
+ * locations:
+ * - address: "London"
+ * type: "inPerson"
+ * metadata: {}
* tags:
* - event-types
* externalDocs: