0

在 Office365 Outlook 日历中创建文件夹时,我们收到错误为“文件夹已存在”,但我们无法在 Office365 日历中找到此类文件夹。我们在 Outlook Web 应用程序和客户端应用程序中交叉检查了具有相同名称的文件夹,但不存在具有该名称的文件夹。以下是 API 和响应。

发布https://graph.microsoft.com/v1.0/me/calendars HTTP /1.1

请求正文:{"name":"New calendar"}

"error": {

    "code": "ErrorFolderExists",

    "message": "A folder with the specified name already exists.",

    "innerError": {

        "request-id": "c046eeba-f6f7-4b7e-98a3-b6a9a7055dd2",

        "date": "2018-11-08T14:16:10"

    }

}
4

1 回答 1

0

You can query for the calendar name by using a filter

https://graph.microsoft.com/v1.0/me/calendars?$filter=name eq 'New calendar'

Then delete it using a delete request and the calendars' id

https://graph.microsoft.com/v1.0/me/calendars/<insert calendar_id here>

于 2018-11-17T00:41:28.400 回答