'Updating Resource to Accepted when Updating Event
I am adding a resource to events using Microsoft's Graph API and I have been able to successfully add the event to the resource's calendar. The resource normally automatically accepts events, but is not when added via the Graph API. And I have tried setting the attendee's status as accepted when I update the event attendees to include the resource. But the event remains as tentative when viewing in Outlook. Is it possible to mark a resource as accepted when adding it to the list of attendees? If not, what other endpoint would I need to call to make that happen?
Current relevant parts of the code:
Endpoint:
PATCH https://graph.microsoft.com/v1.0/users/<userId>/events/<eventId>
Request body:
{"attendees":[{"type":"resource", "emailAddress":{"address":"<ResourceEmail>"}, "status":{"response":"accepted"}},<other attendees>]}
The outcome remains the same whether I include the "status" part or not - i.e. it is added to the calendar as tentative. Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
