Share via

how to update multiple instances of a recurring event

cy 40 Reputation points
2024-11-18T03:05:13.3433333+00:00

how to update multiple instances of a recurring event in Outlook with one api call?
update all future occurrences of the event.

Microsoft 365 and Office | Development | Other
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. Hitesh Pachipulusu - MSFT 3,640 Reputation points Microsoft External Staff
    2024-11-18T13:01:46.2166667+00:00

    Hello cy,

    Thank you for contacting Microsoft Support!

    To update all future occurrences of a recurring event in Outlook using the Microsoft Graph API, you can follow these steps:

    1. Retrieve the Event: First, get the details of the recurring event you want to update. You can use the GET /me/events/{id} endpoint to fetch the event details.
    2. Update the Recurrence Pattern: To update all future instances, you need to modify the recurrence pattern. This involves setting the recurrence property in your PATCH request. Here's an example of how to structure your request:
         PATCH https://graph.microsoft.com/v1.0/me/events/{id}
         Content-type: application/json
         {
           "recurrence": {
             "pattern": {
               "type": "daily",
               "interval": 1
             },
             "range": {
               "type": "endDate",
               "startDate": "2024-11-18",
               "endDate": "2025-11-18"
             }
           },
           "subject": "Updated Event Subject",
           "body": {
             "contentType": "HTML",
             "content": "Updated event details"
           }
         }
      
    3. Handle Specific Instances: If you have specific instances that have been modified separately, you might need to handle them individually to ensure they retain their custom changes. This can be done by updating each instance separately using the PATCH /me/events/{id} endpoint for each instance.

    Hope this helps.

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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