using microsoft graph api list events for a room

Viewed 21

in microsoft graph api I can obtain a list of rooms

https://graph.microsoft.com/v1.0/places/microsoft.graph.room

how do I view the events for one of these rooms?

looks like my options for events are

/users/{id | userPrincipalName}/calendar/events
/groups/{id}/calendar/events
/users/{id | userPrincipalName}/calendars/{id}/events
/users/{id | userPrincipalName}/calendarGroups/{id}/calendars/{id}/events

is the room a "user"? or is it a "group"? not quite sure given a room find the events that occurring in that room.

1 Answers

Places does not have any relationship to events.

You should be able to only filter events for specific user or group by a location.

Example

GET /me/calendar/events?$filter=location/displayName eq 'xxx'
GET /users/{id | userPrincipalName}/calendar/events?$filter=location/displayName eq 'xxx'
Related