What is the id in ->PATCH /users/{id | userPrincipalName}/calendars/{id}/events/{id} ?

Niketa Mane 26 Reputation points

Can someone please help to understand how we can update single instance multiple events for a user using above patch call
What do the id's signify in the url
I am giving calUID after calendars and event id after events and getting below error
"error": {

"code": "ErrorInvalidIdMalformed",

"message": "Id is malformed."

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

Accepted answer
  1. Danstan Onyango 3,736 Reputation points Microsoft Employee

    IDs signify resource ids. The resource path /users/{id | userPrincipalName}/calendars/{id}/events/{id} can also be written as /users/{userId | userPrincipalName}/calendars/{calendarId}/events/{calendarEventId}.

    This operation will patch the event with the specified ID. You can navigate the relationship through the following GET requests, where the id is the id property of any value in the previous request. This will help you get the correct ID to do the update you are trying to do.

    GET /users
    GET /users/{id | userPrincipalName}
    GET /users/{id | userPrincipalName}/calendars
    GET /users/{id | userPrincipalName}/calendars/{id}
    GET /users/{id | userPrincipalName}/calendars/{id}/events
    PATCH /users/{id | userPrincipalName}/calendars/{id}/events/{id}
    0 comments No comments

0 additional answers

Sort by: Most helpful