Updates a Teams integration mapping. Supports updating the Box folder ID and options. You need Admin or Co-Admin role to use this endpoint.
更新された統合マッピングオブジェクトを返します。
誤ったoptions
が指定された場合またはBoxフォルダをこのpartner_item
にマッピングできない場合にbad_request
を返します。エラーコードは以下のとおりです。
SERVICE_ACCOUNT_IS_NOT_A_COOWNER_OR_OWNER
- サービスアカウントに共同所有者のコラボレーションがないか、サービスアカウントがbox_item_id
の所有者ではありません。BOX_FOLDER_EXTERNALLY_OWNED
- Boxフォルダは、管理者の企業内で所有されている必要があります。FOLDER_ALREADY_MAPPED
- Box folder must not be mapped to another integration mapping.統合マッピングオブジェクトが見つからなかった場合はnot_found
を返します。
予期しないクライアントエラー。
await userClient.integrationMappings.updateTeamsIntegrationMappingById(
integrationMappingId,
{
requestBody: {
boxItem: new FolderReference({ id: '1234567' }),
} satisfies UpdateTeamsIntegrationMappingByIdRequestBody,
} satisfies UpdateTeamsIntegrationMappingByIdOptionalsInput,
);
user_client.integration_mappings.update_teams_integration_mapping_by_id(
integration_mapping_id, box_item=FolderReference(id="1234567")
)
await userClient.IntegrationMappings.UpdateTeamsIntegrationMappingByIdAsync(integrationMappingId: integrationMappingId, requestBody: new UpdateTeamsIntegrationMappingByIdRequestBody() { BoxItem = new FolderReference(id: "1234567") });
{
"id": "12345",
"type": "integration_mapping",
"box_item": {
"id": "42037322",
"type": "folder"
},
"created_at": "2012-12-12T10:53:43-08:00",
"integration_type": "teams",
"is_overridden_by_manual_mapping": true,
"modified_at": "2012-12-12T10:53:43-08:00",
"partner_item": {
"id": "19%3ABCD-Avgfggkggyftdtfgghjhkhkhh%40thread:tacv2",
"type": "channel",
"team_id": "hjgjgjg-bhhj-564a-b643-hghgj685u",
"tenant_id": "E1234567"
}
}