メインコンテンツへスキップ
POST
/
hubs
/
{hub_id}
/
manage_items
cURL
curl --request POST \
  --url https://api.box.com/2.0/hubs/{hub_id}/manage_items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'box-version: <box-version>' \
  --data '
{
  "operations": [
    {
      "action": "add",
      "item": {
        "type": "file",
        "id": "42037322"
      }
    }
  ]
}
'
{
  "operations": [
    {
      "action": "add",
      "item": {
        "type": "file",
        "id": "42037322"
      },
      "status": 200,
      "error": "Item not found"
    }
  ]
}
Box SDKのバージョニング戦略について詳しく学ぶ。」

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

box-version
enum<string>
required

Version header.

利用可能なオプション:
2025.0

Path Parameters

hub_id
string
required

Hubを表す一意の識別子。

HubのIDを確認するには、ウェブアプリでこのHubにアクセスして、URLからIDをコピーします。たとえば、URLがhttps://*.app.box.com/hubs/123の場合、hub_id123です。

Body

application/json

Box Hubの項目を管理するためのリクエストのスキーマ。

operations
Box Hubの項目の操作 · object[]

Box Hubの項目に対して実行する操作のリスト。

Response

すべての操作のステータスを取得します。

Box Hubの項目の管理操作のステータスを表すレスポンスのスキーマ。

operations
Box Hubの項目の操作結果 · object[]
required

Box Hubの項目に対して実行された操作のリスト。