diff --git a/apps/api/lib/validations/event-type.ts b/apps/api/lib/validations/event-type.ts index ffe4cc4bed..5d84b03cca 100644 --- a/apps/api/lib/validations/event-type.ts +++ b/apps/api/lib/validations/event-type.ts @@ -67,6 +67,7 @@ const schemaEventTypeCreateParams = z seatsPerTimeSlot: z.number().optional(), seatsShowAttendees: z.boolean().optional(), bookingFields: eventTypeBookingFields.optional(), + scheduleId: z.number().optional(), }) .strict(); @@ -85,6 +86,7 @@ const schemaEventTypeEditParams = z seatsPerTimeSlot: z.number().optional(), seatsShowAttendees: z.boolean().optional(), bookingFields: eventTypeBookingFields.optional(), + scheduleId: z.number().optional(), }) .strict(); diff --git a/apps/api/pages/api/event-types/[id]/_patch.ts b/apps/api/pages/api/event-types/[id]/_patch.ts index 2468d1621b..0cd8b3cf24 100644 --- a/apps/api/pages/api/event-types/[id]/_patch.ts +++ b/apps/api/pages/api/event-types/[id]/_patch.ts @@ -52,6 +52,9 @@ import checkTeamEventEditPermission from "../_utils/checkTeamEventEditPermission * slug: * type: string * description: Unique slug for the event type + * scheduleId: + * type: number + * description: The ID of the schedule for this event type * hosts: * type: array * items: diff --git a/apps/api/pages/api/event-types/_post.ts b/apps/api/pages/api/event-types/_post.ts index d87894c4df..d588b40d68 100644 --- a/apps/api/pages/api/event-types/_post.ts +++ b/apps/api/pages/api/event-types/_post.ts @@ -60,6 +60,9 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts"; * hidden: * type: boolean * description: If the event type should be hidden from your public booking page + * scheduleId: + * type: number + * description: The ID of the schedule for this event type * position: * type: integer * description: The position of the event type on the public booking page @@ -178,6 +181,7 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts"; * position: 0 * eventName: null * timeZone: null + * scheduleId: 5 * periodType: UNLIMITED * periodStartDate: 2023-02-15T08:46:16.000Z * periodEndDate: 2023-0-15T08:46:16.000Z