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

Niketa Mane 21 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 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.
645 questions
No comments
{count} votes

Accepted answer
  1. Danstan Onyango 3,241 Reputation points
    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 additional answers

Sort by: Most helpful