You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
i was just wondering what the intended way to access a shared mailbox is. Since the Graph-url is "https://graph.microsoft.com/v1.0/users/shared@mailbox/messages" i was assuming something like graph.users.messages but that does not work.
I was able to get the messages via graph.me.messages.with_url(f"https://graph.microsoft.com/v1.0/users/shared@mailbox/messages").get() but now that i need to update them i cant find a workaround since graph.me.messages.with_url(f"https://graph.microsoft.com/v1.0/users/shared@mailbox/messages/msg_id").patch() does not exist, and graph.me.messages.by_message_id(message_id=msg_id).patch(body=body) complains about only working with delegated authentication flow.
Is there a better way to do this that i have missed?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
The answer seems to be using
MessageItemRequestBuilderandMessagesRequestBuilderdirectly.