googleapis / googleapis/google-api-nodejs-client

Updating an event with attendees when you're not the organizer returns successfully but doesn't change the event

Open
#2,989 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: question
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

Hi,
I'm using the Calendar API to try to do the equivalent of deleting "this and following events" from a recurring event with attendees.
To do that, I update the recurrence rule of event series to add or update the UNTIL value to the date before the events that needs to be deleted.
For example, if the event recurs every Tuesday and Friday and never expires and we want to delete the events from June 24th and beyond then we would update the the recurrence rule from: `RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU` to `RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU;UNTIL=20220623T035959Z`

Using `googleapis.calendar(...).events.update(...)` works if the users if the organizer but returns the original event data if the user is an attendee.

I've tried using the patch method instead but it's the same issue:
`googleapis.calendar(...).events.patch({recurrence: 'RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU,FR;WKST=SU;UNTIL=20220623T035959Z'})`

I've also been able to reproduce this from the API doc page for patch when trying to change the recurrence or the summary or the end date: https://developers.google.com/calendar/api/v3/reference/events/patch

I've also tried setting `privateCopy` to true but it made no difference.

No error message is returned so I have no idea why this doe

This works as expected if the user is the meeting organizer but seems to have no effect if the user is just an attendee.

Is this the proper way to replicate the **delete of "this and following events"** for an event attendee?
If this is a known issue, what's the workaround to be able to perform this operation?

**Environment details**
- Node.js version: v17.7.1
- googleapis version: @100.0.0

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.