Nevermind, I forgot to use new.
Create new event with location
Using this article:
https://learn.microsoft.com/en-us/graph/api/resources/location?view=graph-rest-1.0
I'm trying to use graph api to create a new calendar event with location. For location, I'm putting a random string name in displayName, say "Testing Room" for displayName. The event is created, but location is not there. Do I need to fill out more of the properties to generate the location when creating a new calendar event?
2 answers
Sort by: Most helpful
-
-
Yakun Huang-MSFT 8,825 Reputation points Microsoft Vendor
2025-01-10T02:26:11.1833333+00:00 Hello Christopher R,
Thank you for reaching out to Microsoft Support!
In response to your question, we tested the endpoint and everything worked well, the test results are as follows:
When creating a new event with a location, you only need to fill in the displayName of the location in the location attribute to create the event successfully, and the returned response also contains the location information. Please refer to my test results to check the request body when you created the event.
Reference document:
https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.