Difference between two listed endpoints for creating an event

pklong 40 Reputation points


For creating an event, what would be the difference between these two endpoints?

POST /users/{id | userPrincipalName}/events

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

Microsoft Graph Calendar API
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
870 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 28,281 Reputation points

    Hi @pklong

    If you're just creating an event in the user's default calendar, there's really no difference between the two endpoints.

    However, the /calendar/events endpoint is usually used to create events in a specific calendar, such as the user's birthday calendar:

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

    Hope this helps.

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

1 additional answer

Sort by: Most helpful
  1. msft-gu 1,275 Reputation points

    Hi pklong,

    Good day and thank you for your question. I was able to use the two endpoints on my test environment and there was no difference when I checked in on OWA - Outlook - Calendar.


    POST /users/user@domain.com/events

    POST /users/user@domain.com/calendar/events

    If I answered your question, please upvote and accept it as an answer.

    0 comments No comments