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

Niketa Mane 26 Reputation points
2021-06-22T21:46:49.113+00:00

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
    2021-06-23T13:33:18.333+00:00

    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