cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

[CAL-3743] no description of location in api reference

Open GeneralKugelBlitz opened this issue 1 year ago • 3 comments

Create new booking api reference link: https://docs.cal.com/docs/enterprise-features/api/api-reference/bookings#create-a-new-booking

Issue Summary

there must be strings or JSON for each meeting provider, please provide us with the option strings in the api reference.

CAL-3743

GeneralKugelBlitz avatar May 14 '24 13:05 GeneralKugelBlitz

To specify the location when creating a new booking through the Cal.com API, you'll need to adjust the location object in your booking request according to the meeting provider or location type. Here are examples for different scenarios:

  1. Cal Video (Daily Video): Automatically set to Cal Video if no explicit location is provided.
"location": {
  "value": "BookingLocations.CalVideo"
}
  1. Zoom Video: For Zoom meetings, specify Zoom Video as the location.
"location": {
  "value": "BookingLocations.ZoomVideo"
}
  1. Physical Location (e.g., New York): Specify the address or name of the place for physical meetings.
"location": {
  "value": "New York"
}
  1. Custom Meeting Provider: For custom providers or URLs, include the relevant details or URL.
"location": {
  "value": "http://custom-tool.example.com/meeting-1"
}

Ensure the location object matches the intended meeting provider or location type to provide clear and accurate meeting details for all participants. For more detailed examples and implementation, you can refer to the source code in the repository, specifically in the apps/api/v1/pages/api/bookings/_post.ts and packages/features/bookings/lib/handleNewBooking/test/fresh-booking.test.ts files.

Details

Sources


About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

dosubot[bot] avatar May 14 '24 13:05 dosubot[bot]

@alishaz-polymath

PeerRich avatar May 16 '24 13:05 PeerRich

I dint understand what has to be done Can someone please elaborate

Hamza525318 avatar May 25 '24 05:05 Hamza525318

Detailed docs added, accessible here: https://cal.com/docs/enterprise-features/api/api-reference/v1/bookings#location-object

alishaz-polymath avatar Sep 01 '24 11:09 alishaz-polymath