Api for edit of single event in a series

Utkarsh Prashar 40 Reputation points
2024-04-05T07:19:54.53+00:00

Hello,

I have a query here so i am looking for an identifier when a event (which is in series) is edited in outlook it always gives output json response of series.
So is there any specific api by which i can get the json of edited event only.

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AsithwMSFT 1,520 Reputation points Microsoft External Staff
    2024-04-13T06:29:11.8033333+00:00

    @Utkarsh Prashar

    Here are the steps to modify a single occurrence of a recurring meeting using Graph Api

    • First, use this endpoint to get the event-id of the recurring event:
    GET /me/calendar/events  
    
    • Then, use this endpoint to get the instances (occurrences) of the event for a specific time range
    GET /me/events/{id}/instances?startDateTime={start_datetime}&endDateTime={end_datetime}
    
    • and copy the id from the event-id (instance-id) in the response that you want to edit.
    • Finally, use this endpoint with the request body as an example to update the occurrence of the event.
    PATCH https://graph.microsoft.com/v1.0/me/events/{id}
    Content-type: application/json
    {
       
         "dateTime": "2024-04-13T12:00:00", 
         "timeZone": "Pacific Standard Time"
       },
    }
    
    
    

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.