Box Developerドキュメント
最新バージョン

Slack統合マッピングのリストを取得

get
https://api.box.com/2.0
/integration_mappings/slack

このエンドポイントはバージョン2024.0です。引き続き使用するために 変更は必要ありません。詳細については、 **Box APIのバージョン管理**を参照してください。

ユーザーの企業内のSlack統合マッピングのリストを取得します。

このエンドポイントを使用するには、管理者または共同管理者の役割が必要です。

リクエスト

bearer [ACCESS_TOKEN]
application/json

クエリパラメータ

stringクエリ内省略可能
12345

Box item ID, for which the mappings should be returned.

stringクエリ内省略可能
folder

Box item type, for which the mappings should be returned.

次の値に固定: folder

booleanクエリ内省略可能
true

Whether the mapping has been manually created.

integer (int64)クエリ内省略可能
1000
1000

返す項目の1ページあたりの最大数。

stringクエリ内省略可能
JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii

結果が返される開始位置のマーカー。マーカーベースのページ割りを使用している場合に使用されます。

これを使用するには、usemarkertrueに設定する必要があります。

stringクエリ内省略可能
12345

ID of the mapped item, for which the mapping should be returned.

stringクエリ内省略可能
channel

Mapped item type, for which the mapping should be returned.

次の値に固定: channel

レスポンス

Returns a collection of integration mappings.

クライアントエラーが原因で、サーバーはリクエストを処理できないか、処理しません。

統合マッピングが見つからなかった場合、not_foundエラーを返します。

予期しないクライアントエラー。

get
Slack統合マッピングのリストを取得
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

cURL
curl -X -L GET "https://api.box.com/2.0/integration_mappings/slack?partner_item_id=C987654321&box_item_id=123456789" \
     -H "authorization: Bearer <ACCESS_TOKEN>" \
TypeScript Gen
await userClient.integrationMappings.getSlackIntegrationMapping();
Python Gen
user_client.integration_mappings.get_slack_integration_mapping()
.NET Gen
await userClient.IntegrationMappings.GetSlackIntegrationMappingAsync();
Node
const integrationMappings = await client.integrationMappings.getSlackIntegrationMappings();
console.log(`There are ${integrationMappings.entries.length} Slack integration mappings`);

レスポンスの例

{
  "entries": [
    {
      "id": "12345",
      "type": "integration_mapping",
      "box_item": {
        "etag": "1",
        "id": "12345",
        "type": "folder",
        "name": "Contracts",
        "sequence_id": "3"
      },
      "created_at": "2012-12-12T10:53:43-08:00",
      "created_by": {
        "id": "11446498",
        "type": "user",
        "login": "ceo@example.com",
        "name": "Aaron Levie"
      },
      "integration_type": "slack",
      "is_manually_created": true,
      "modified_at": "2012-12-12T10:53:43-08:00",
      "modified_by": {
        "id": "11446498",
        "type": "user",
        "login": "ceo@example.com",
        "name": "Aaron Levie"
      },
      "options": {
        "is_access_management_disabled": true
      },
      "partner_item": {
        "id": "C12378991223",
        "slack_org_id": "E1234567",
        "type": "channel"
      }
    }
  ],
  "limit": 1000,
  "next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii"
}