我们在Microsoft Graph API的测试版中添加了类别支持。
公告:
https://blogs.msdn.microsoft.com/exchangedev/2017/10/09/new-outlook-apis-in-the-microsoft-graph-rooms-rules-categories-headers-and-time-zones/
测试版参考:
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/outlookuser_post_mastercategories
例子:
POST https://graph.microsoft.com/beta/me/outlook/masterCategories
Content-type: application/json
Content-Length: 70
{
"displayName":"Project expenses",
"color":"preset9"
}
您可以使用Outlook REST API,通过URL执行类似操作,如:
https://outlook.office.com/api/beta/me/mastercategories
这还需要一个新的权限范围。对于Graph,它是
MailboxSettings.ReadWrite
(
https://outlook.office.com/MailboxSettings.ReadWrite
用于Outlook API)。