diff --git a/pages/api/event-types/[id]/_patch.ts b/pages/api/event-types/[id]/_patch.ts index d44908b2b1..83bdf156ad 100644 --- a/pages/api/event-types/[id]/_patch.ts +++ b/pages/api/event-types/[id]/_patch.ts @@ -147,7 +147,37 @@ import checkTeamEventEditPermission from "../_utils/checkTeamEventEditPermission * type: array * description: A list of all available locations for the event type * items: - * type: object + * type: array + * items: + * oneOf: + * - type: object + * properties: + * type: + * type: string + * enum: ['integrations:daily'] + * - type: object + * properties: + * type: + * type: string + * enum: ['attendeeInPerson'] + * - type: object + * properties: + * type: + * type: string + * enum: ['inPerson'] + * address: + * type: string + * displayLocationPublicly: + * type: boolean + * - type: object + * properties: + * type: + * type: string + * enum: ['link'] + * link: + * type: string + * displayLocationPublicly: + * type: boolean * example: * event-type: * summary: An example of event type PATCH request diff --git a/pages/api/event-types/_post.ts b/pages/api/event-types/_post.ts index 687f4f220c..488a15e6b9 100644 --- a/pages/api/event-types/_post.ts +++ b/pages/api/event-types/_post.ts @@ -137,7 +137,37 @@ import ensureOnlyMembersAsHosts from "./_utils/ensureOnlyMembersAsHosts"; * type: array * description: A list of all available locations for the event type * items: - * type: object + * type: array + * items: + * oneOf: + * - type: object + * properties: + * type: + * type: string + * enum: ['integrations:daily'] + * - type: object + * properties: + * type: + * type: string + * enum: ['attendeeInPerson'] + * - type: object + * properties: + * type: + * type: string + * enum: ['inPerson'] + * address: + * type: string + * displayLocationPublicly: + * type: boolean + * - type: object + * properties: + * type: + * type: string + * enum: ['link'] + * link: + * type: string + * displayLocationPublicly: + * type: boolean * example: * event-type: * summary: An example of event type POST request