how to update multiple instances of a recurring event

cy 20 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.

Outlook
Outlook
A family of Microsoft email and calendar products.
4,140 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,480 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,054 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hitesh Pachipulusu - MSFT 3,465 Reputation points Microsoft Vendor
    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 Answers by the question author, which helps users to know the answer solved the author's problem.