You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

请求将Microsoft Graph Batch API并发请求限制提升至200

请求提升Microsoft Graph批量API的并发请求限制至200个

我们使用Outlook批量API时,单个HTTP批量请求中可发起200个并发请求且全部能成功执行。但切换到Microsoft Graph批量API后,发现仅支持4个并发请求,超出部分会触发429限流错误(错误提示为Application is over its MailboxConcurrency limit)。

我们的业务场景需要一次性创建10000个日历事件(比如用户要在单个日历中批量添加/删除10000个项目),恳请将Microsoft Graph API的批量请求并发限制提升至与Outlook API一致的200个。

示例请求

{
    "requests": [
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "1",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test1s"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "2",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test2"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "3",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test3"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "4",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test4"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "5",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test5s"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "6",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test6s"
            }
        },
        {
            "url": "/me/calendars",
            "method": "POST",
            "id": "7",
            "headers": {
                "Content-Type": "application/json"
            },
            "body": {
                "name": "test7s"
            }
        }
    ]
}

示例响应

{
    "responses": [
        {
            "id": "6",
            "status": 429,
            "headers": {
                "Retry-After": "1",
                "Cache-Control": "private",
                "Content-Type": "application/json"
            },
            "body": {
                "error": {
                    "code": "ApplicationThrottled",
                    "message": "Application is over its MailboxConcurrency limit.",
                    "innerError": {
                        "date": "2022-08-11T06:21:56",
                        "request-id": "e09afe6b-25d6-4cdc-93f5-0539d6e8b9c6",
                        "client-request-id": "efe22070-473c-28bd-d1bf-ad43bb9f753f"
                    }
                }
            }
        },
        {
            "id": "7",
            "status": 429,
            "headers": {
                "Retry-After": "1",
                "Cache-Control": "private",
                "Content-Type": "application/json"
            },
            "body": {
                "error": {
                    "code": "ApplicationThrottled",
                    "message": "Application is over its MailboxConcurrency limit.",
                    "innerError": {
                        "date": "2022-08-11T06:21:56",
                        "request-id": "e09afe6b-25d6-4cdc-93f5-0539d6e8b9c6",
                        "client-request-id": "efe22070-473c-28bd-d1bf-ad43bb9f753f"
                    }
                }
            }
        },
        {
            "id": "4",
            "status": 429,
            "headers": {
                "Retry-After": "1",
                "Cache-Control": "private",
                "Content-Type": "application/json"
            },
            "body": {
                "error": {
                    "code": "ApplicationThrottled",
                    "message": "Application is over its MailboxConcurrency limit.",
                    "innerError": {
                        "date": "2022-08-11T06:21:56",
                        "request-id": "e09afe6b-25d6-4cdc-93f5-0539d6e8b9c6",
                        "client-request-id": "efe22070-473c-28bd-d1bf-ad43bb9f753f"
                    }
                }
            }
        },
        {
            "id": "5",
            "status": 201,
            "headers": {
                "Location": "https://outlook.office.com/api/v2.0/Users('xxxx')/Calendars('xxxx')",
                "Cache-Control": "private",
                "OData-Version": "4.0",
                "Content-Type": "application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"
            },
            "body": {
                "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('xxxxx')/calendars/$entity",
                "id": "xxx",
                "name": "test5s",
                "color": "auto",
                "hexColor": "",
                "isDefaultCalendar": false,
                "changeKey": "xxxxx",
                "canShare": true,
                "canViewPrivateItems": true,
                "canEdit": true,
                "allowedOnlineMeetingProviders": [
                    "teamsForBusiness"
                ],
                "defaultOnlineMeetingProvider": "teamsForBusiness",
                "isTallyingResponses": false,
                "isRemovable": true,
                "owner": {
                    "name": "xxxx",
                    "address": "xxxx.onmicrosoft.com"
                }
            }
        },
        {
            "id": "2",
            "status": 201,
            "headers": {
                "Location": "https://outlook.office.com/api/v2.0/Users('xxxx')/Calendars('xxxx')",
                "Cache-Control": "private",
                "OData-Version": "4.0",
                "Content-Type": "application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"
            },
            "body": {
                "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('xx')/calendars/$entity",
                "id": "xxx",
                "name": "test2",
                "color": "auto",
                "hexColor": "",
                "isDefaultCalendar": false,
                "changeKey": "xxxxx",
                "canShare": true,
                "canViewPrivateItems": true,
                "canEdit": true,
                "allowedOnlineMeetingProviders": [
                    "teamsForBusiness"
                ],
                "defaultOnlineMeetingProvider": "teamsForBusiness",
                "isTallyingResponses": false,
                "isRemovable": true,
                "owner": {
                    "name": "xxxx",
                    "address": "xxxxx.onmicrosoft.com"
                }
            }
        },
        {
            "id": "3",
            "status": 201,
            "headers": {
                "Location": "https://outlook.office.com/api/v2.0/Users('xxxx')/Calendars('xxxxx')",
                "Cache-Control": "private",
                "OData-Version": "4.0",
                "Content-Type": "application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"
            },
            "body": {
                "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('xxx')/calendars/$entity",
                "id": "x",
                "name": "test3",
                "color": "auto",
                "hexColor": "",
                "isDefaultCalendar": false,
                "changeKey": "xxxxxx==",
                "canShare": true,
                "canViewPrivateItems": true,
                "canEdit": true,
                "allowedOnlineMeetingProviders": [
                    "teamsForBusiness"
                ],
                "defaultOnlineMeetingProvider": "teamsForBusiness",
                "isTallyingResponses": false,
                "isRemovable": true,
                "owner": {
                    "name": "xxxx",
                    "address": "xxxxxx.onmicrosoft.com"
                }
            }
        },
        {
            "id": "1",
            "status": 201,
            "headers": {
                "Location": "https://outlook.office.com/api/v2.0/Users('xxxx')/Calendars('xxxx')",
                "Cache-Control": "private",
                "OData-Version": "4.0",
                "Content-Type": "application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8"
            },
            "body": {
                "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('xxxxx')/calendars/$entity",
                "id": "xxxxxx",
                "name": "test1s",
                "color": "auto",
                "hexColor": "",
                "isDefaultCalendar": false,
                "changeKey": "xxxxxxx",
                "canShare": true,
                "canViewPrivateItems": true,
                "canEdit": true,
                "allowedOnlineMeetingProviders": [
                    "teamsForBusiness"
                ],
                "defaultOnlineMeetingProvider": "teamsForBusiness",
                "isTallyingResponses": false,
                "isRemovable": true,
                "owner": {
                    "name": "xxxx",
                    "address": "xxxxx.onmicrosoft.com"
                }
            }
        }
    ]
}

内容的提问来源于stack exchange,提问作者Karthik

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.22 16:57:14