Share via

Deleted calendar event instance become active when do the Patch update event api

poovarasan d 60 Reputation points
2023-03-27T08:18:03.5933333+00:00

Hi there,

is there any way to update the whole calender api time without auto adding the deleted instance of that calender event?

First i Post the new calendar event(name:welcome) with recurrence of every monday in july month

then i delete the 2nd monday event instance in that calendar(name:welcome)

then i update the time to the whole calendar(name:welcome), it become activate the deleted 2nd monday event instance . how can i avoid this?? i dont want the deleted instance in the whole instance

Microsoft Security | Microsoft Graph
0 comments No comments

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,851 Reputation points Microsoft External Staff
    2023-03-27T13:57:23.83+00:00

    Hello @poovarasan d

    This is an expected behavior any chances to recurrence property will reset the recurring event and any deleted/updated (exception occurrences) will be reset to master event again.

    For example, simply updating subject, categories will not re-instate the deleted occurrences of the recurring event.

    PATCH https://graph.microsoft.com/v1.0/me/events/{id}
    Content-type: application/json
    
    {
      "subject": "{updated meeting subject}",
      "categories": ["Red category"]
    }
    

    If you also include recurrence will not re-instate the deleted occurrences of the recurring event.

    PATCH https://graph.microsoft.com/v1.0/me/events/{id}
    Content-type: application/json
    
    {
      
      "subject": "{updated meeting subject}",
      "categories": ["Red category"],
      "recurrence":"{....}"
    }
    

    References: patternedrecurrence

    Hope this helps.

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

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

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.