无法使用 Microsoft graph API 将应用程序添加到团队

Unable to add app to teams using Microsoft graph API

我已经创建了 MS Team 的应用程序包。我已使用团队服务管理员凭据将其上传到我的组织。(参考:https://docs.microsoft.com/en-us/MicrosoftTeams/tenant-apps-catalog-teams?toc=/microsoftteams/platform/toc.json&bc=/MicrosoftTeams/breadcrumb/toc.json)。 我正在尝试使用 'Add app to team' API(ref:https://docs.microsoft.com/en-us/graph/api/teamsappinstallation-add?view=graph-rest-1.0&tabs=http) 将此应用程序添加到团队中。 我收到“404 未找到”错误。 我在请求正文中使用团队应用程序包中提供的 ID。 任何帮助将不胜感激。

id 必须是 "the catalog app's generated app ID (different from the developer-provided ID in the Microsoft Teams zip app package." (https://docs.microsoft.com/en-us/graph/api/resources/teamsapp?view=graph-rest-1.0)

应用部署到应用目录后,您必须查询应用目录,过滤外部 ID。 (例如 externalId eq '{teamsAppManifestId}')