简体   繁体   English

使用图形 API 错误添加团队规划器选项卡

[英]Teams planner tab add using graph API error

POST: https://graph.microsoft.com/beta/teams/teamsId/channels/channelId发布: https : //graph.microsoft.com/beta/teams/teamsId/channels/channelId

Request body请求正文

{
    "displayName": "Task  management",
    "teamsApp@odata.bind" 
    "https://graph.microsoft.com/beta/appCatalogs/teamsApps/com.microsoft.teamspace.tab.planner",
    "configuration": {
        "entityId": "",
        "contentUrl": "",
        "websiteUrl": "",
        "removeUrl": ""
    }
}
  1. entityId = plan id entityId = 计划 ID
  2. contentUrl = websiteUrl = removeUrl = https://tasks.office.com/ {tenantName}/Home/PlannerFrame?page=7&planId={planId} contentUrl = websiteUrl = removeUrl = https://tasks.office.com/ {tenantName}/Home/PlannerFrame?page=7&planId={planId}

Graph API's docs referred Graph API 的文档被引用

  1. https://docs.microsoft.com/en-us/graph/teams-configuring-builtin-tabs https://docs.microsoft.com/en-us/graph/teams-configuring-builtin-tabs
  2. https://docs.microsoft.com/en-us/graph/api/teamstab-add?view=graph-rest-beta https://docs.microsoft.com/en-us/graph/api/teamstab-add?view=graph-rest-beta

But works fine if created using teams app or even update the same tab using settings.但如果使用团队应用程序创建或什至使用设置更新相同的选项卡,则工作正常。

错误信息

查看日志,您为 contentUrl 指定的 URL 似乎缺少“page=7”查询参数,这似乎是页面无法加载的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用图形添加 MS Teams 网站选项卡 API 错误 - Add MS Teams website tab using graph API error 使用图表 API 在用户的 Teams 计划器中获取所有任务 - Get all tasks in Teams planner of users using graph API 使用 Microsoft Graph API 将用户添加为 Microsoft Planner 计划的成员 - Add a user as a member to a Microsoft Planner Plan using Microsoft Graph API 如何使用 Microsoft Graph API 向 Planner 任务添加分配 - How to add an assignment to a Planner task using Microsoft Graph API 使用 Graph API 将成员添加到 MS Teams - Add a member to MS Teams using Graph API 计划者计划 URL 或在团队中创建计划者选项卡 - Planner Plan URL or creating a Planner Tab in Teams 如何使用 Graph API 和 PowerShell 将 OneNote 笔记本选项卡添加到 Teams 频道? - How to add a OneNote notebook tab to Teams channel using Graph API and PowerShell? 有没有办法在使用图表 api 创建团队选项卡时开始对话 - Is there a way to start conversation when teams tab is created using graph api Microsoft Teams Graph API:将选项卡添加到团队频道 API 在 V1.0 中失败,但在 Beta 版中适用于内置选项卡类型 - Microsoft Teams Graph API : Add Tab to teams channel API failing in V1.0 but working in Beta for built in tab types 使用图 api 创建 Private Planner 计划 - Create Private Planner plans using graph api
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM