英文:
MS Graph Events PATCH
问题
我无法在MS Graph上更新事件
var meeting = events.CurrentPage.First(m => m.Subject.Contains("测试标题"));
meeting.Subject = "测试!";
await graphClient.Users[roomEmail].Events[meeting.Id].Request().PutResponseAsync(meeting);
我收到的错误信息
我有以下权限
Microsoft Graph: Calendars.ReadWrite, User.Read
英文:
I cannot update an Event over MS Graph
var meeting = events.CurrentPage.First(m => m.Subject.Contains("Test title"));
meeting.Subject = "test!";
await graphClient.Users[roomEmail].Events[meeting.Id].Request().PutResponseAsync(meeting);
I'm receiving
I have permissions
Microsoft Graph: Calendars.ReadWrite, User.Read
答案1
得分: 1
尝试这个替代方案
var meeting = events.CurrentPage.First(m => m.Subject.Contains("Test title"));
meeting.Subject = "test!";
await graphClient.Users[roomEmail].Events[meeting.Id].Request().UpdateAsync(meeting);
英文:
Try this instead
var meeting = events.CurrentPage.First(m => m.Subject.Contains("Test title"));
meeting.Subject = "test!";
await graphClient.Users[roomEmail].Events[meeting.Id].Request().UpdateAsync(meeting);
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论