Difference between two listed endpoints for creating an event

pklong 140 Reputation points
2023-08-31T01:12:28.4266667+00:00

For creating an event: https://learn.microsoft.com/en-us/graph/api/user-post-events?view=graph-rest-1.0&tabs=http

What is the difference between these two endpoints?

POST /users/{id | userPrincipalName}/events

POST /users/{id | userPrincipalName}/calendar/events

They seem to do the same thing...

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,043 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,305 Reputation points
    2023-09-01T20:06:57.7666667+00:00

    Hi pklong,

    Thanks for reaching out. Both perform the same function which is create an event in your calendar.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.