Difference between two listed endpoints for creating an event

pklong 60 Reputation points

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.
2,121 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,285 Reputation points

    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.