MS Graph Events PATCH

huangapple go评论65阅读模式
英文:

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); 

我收到的错误信息

MS Graph Events PATCH

我有以下权限
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

MS Graph Events PATCH

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); 

huangapple
  • 本文由 发表于 2023年2月24日 04:49:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/75550190.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定