feat: v2 book team events using teamSlug & eventTypeSlug (#20585)
* feat: v2 book team events using teamSlug & eventTypeSlug * fix: tests
This commit is contained in:
1 parent
a11c2cc52c
commit
8974f8f9de
9 files changed
+226
-30
No files matched your search
@@ -6073,7 +6073,7 @@
|
||||
"post": {
|
||||
"operationId": "BookingsController_2024_08_13_createBooking",
|
||||
"summary": "Create a booking",
|
||||
"description": "\n POST /v2/bookings is used to create regular bookings, recurring bookings and instant bookings. The request bodies for all 3 are almost the same except:\n If eventTypeId in the request body is id of a regular event, then regular booking is created.\n\n If it is an id of a recurring event type, then recurring booking is created.\n\n Meaning that the request bodies are equal but the outcome depends on what kind of event type it is with the goal of making it as seamless for developers as possible.\n\n For team event types it is possible to create instant meeting. To do that just pass `\"instant\": true` to the request body.\n\n The start needs to be in UTC aka if the timezone is GMT+2 in Rome and meeting should start at 11, then UTC time should have hours 09:00 aka without time zone.\n\n Finally, there are 2 ways to book an event type:\n 1. Provide `eventTypeId` in the request body.\n 2. Provide `eventTypeSlug` and `username` and optionally `organizationSlug` if the user with the username is within an organization.\n ",
|
||||
"description": "\n POST /v2/bookings is used to create regular bookings, recurring bookings and instant bookings. The request bodies for all 3 are almost the same except:\n If eventTypeId in the request body is id of a regular event, then regular booking is created.\n\n If it is an id of a recurring event type, then recurring booking is created.\n\n Meaning that the request bodies are equal but the outcome depends on what kind of event type it is with the goal of making it as seamless for developers as possible.\n\n For team event types it is possible to create instant meeting. To do that just pass `\"instant\": true` to the request body.\n\n The start needs to be in UTC aka if the timezone is GMT+2 in Rome and meeting should start at 11, then UTC time should have hours 09:00 aka without time zone.\n\n Finally, there are 2 ways to book an event type belonging to an individual user:\n 1. Provide `eventTypeId` in the request body.\n 2. Provide `eventTypeSlug` and `username` and optionally `organizationSlug` if the user with the username is within an organization.\n\n And 2 ways to book and event type belonging to a team:\n 1. Provide `eventTypeId` in the request body.\n 2. Provide `eventTypeSlug` and `teamSlug` and optionally `organizationSlug` if the team with the teamSlug is within an organization.\n ",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "cal-api-version",
|
||||
@@ -18860,7 +18860,7 @@
|
||||
},
|
||||
"eventTypeSlug": {
|
||||
"type": "string",
|
||||
"description": "The slug of the event type. Required along with username and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"description": "The slug of the event type. Required along with username / teamSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "my-event-type"
|
||||
},
|
||||
"username": {
|
||||
@@ -18868,9 +18868,14 @@
|
||||
"description": "The username of the event owner. Required along with eventTypeSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"teamSlug": {
|
||||
"type": "string",
|
||||
"description": "Team slug for team that owns event type for which slots are fetched. Required along with eventTypeSlug and optionally organizationSlug if the team is part of organization",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"organizationSlug": {
|
||||
"type": "string",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username.",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username or eventTypeSlug + teamSlug.",
|
||||
"example": "acme-corp"
|
||||
},
|
||||
"attendee": {
|
||||
@@ -18961,7 +18966,7 @@
|
||||
},
|
||||
"eventTypeSlug": {
|
||||
"type": "string",
|
||||
"description": "The slug of the event type. Required along with username and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"description": "The slug of the event type. Required along with username / teamSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "my-event-type"
|
||||
},
|
||||
"username": {
|
||||
@@ -18969,9 +18974,14 @@
|
||||
"description": "The username of the event owner. Required along with eventTypeSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"teamSlug": {
|
||||
"type": "string",
|
||||
"description": "Team slug for team that owns event type for which slots are fetched. Required along with eventTypeSlug and optionally organizationSlug if the team is part of organization",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"organizationSlug": {
|
||||
"type": "string",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username.",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username or eventTypeSlug + teamSlug.",
|
||||
"example": "acme-corp"
|
||||
},
|
||||
"attendee": {
|
||||
@@ -19067,7 +19077,7 @@
|
||||
},
|
||||
"eventTypeSlug": {
|
||||
"type": "string",
|
||||
"description": "The slug of the event type. Required along with username and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"description": "The slug of the event type. Required along with username / teamSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "my-event-type"
|
||||
},
|
||||
"username": {
|
||||
@@ -19075,9 +19085,14 @@
|
||||
"description": "The username of the event owner. Required along with eventTypeSlug and optionally organizationSlug if eventTypeId is not provided.",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"teamSlug": {
|
||||
"type": "string",
|
||||
"description": "Team slug for team that owns event type for which slots are fetched. Required along with eventTypeSlug and optionally organizationSlug if the team is part of organization",
|
||||
"example": "john-doe"
|
||||
},
|
||||
"organizationSlug": {
|
||||
"type": "string",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username.",
|
||||
"description": "The organization slug. Optional, only used when booking with eventTypeSlug + username or eventTypeSlug + teamSlug.",
|
||||
"example": "acme-corp"
|
||||
},
|
||||
"attendee": {
|
||||
|
||||
Reference in new issue
Block a user