0

当尝试通过图形 api 创建计划器选项卡时,它总是以 BadRequest 错误结束。我尝试了以下请求:

https://graph.microsoft.com/v1.0/teams/<tenant>/channels/<id>/tabs

身体:

{
    "displayName": "Planner",
    "teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.planner",
    "configuration": {
        "entityId:": "<planId>",
        "contentUrl": "https://tasks.office.com/<tenant>/Home/PlannerFrame?page=7&planId=<planId>",
        "removeUrl": "https://tasks.office.com/<tenant>/Home/PlannerFrame?page=7&planId=<planId>",
        "websiteUrl": "https://tasks.office.com/<tenant>/Home/PlannerFrame?page=7&planId=<planId>"
    }
}

结果:

"code": "BadRequest",
"message": "Value cannot be null.\r\nParameter name: entity"

我也尝试使用该teamsAppId属性而不是teamsApp@odata.bind. 它最终出现另一个错误:The navigation bind for the teamsApp was missing in request.

检查图形 api 文档时,该请求似乎是正确的。

4

0 回答 0