Teams統合マッピングを更新します。BoxフォルダIDおよびオプションの更新をサポートします。このエンドポイントを使用するには、管理者または共同管理者の役割が必要です。
更新された統合マッピングオブジェクトを返します。
誤った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フォルダは別の統合マッピングにマッピングできません。統合マッピングオブジェクトが見つからなかった場合はnot_found
を返します。
予期しないクライアントエラー。
curl -X -L PUT "https://api.box.com/2.0/integration_mappings/teams/12345" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H 'content-type: application/json' \
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"
}
}