> ## Documentation Index
> Fetch the complete documentation index at: https://developer.box.com/llms.txt
> Use this file to discover all available pages before exploring further.

# アップロード リソース

直接ファイルアップロードAPIは最大50 MBのファイルをサポートしており、1回のAPIリクエストですべてのバイナリデータをBox APIに送信します。

## アップロードURL

ファイルのアップロードセッションの詳細。

<Accordion title="属性と例">
  | プロパティ          | 型        | 必須  | 説明                                  |
  | -------------- | -------- | --- | ----------------------------------- |
  | `upload_url`   | `string` | いいえ | ファイルのアップロードに使用できるアップロードセッションのURL。   |
  | `upload_token` | `string` | いいえ | ファイルをアップロードするために使用するアクセストークン (省略可)。 |

  ```json 例 theme={null}
  {
    "upload_url": "https://upload-las.app.box.com/api/2.0/files/content?upload_session_id=1234",
    "upload_token": "Pc3FIOG9vSGV4VHo4QzAyg5T1JvNnJoZ3ExaVNyQWw6WjRsanRKZG5lQk9qUE1BVQP"
  }
  ```
</Accordion>

## 競合エラー

競合が原因でファイルを作成できなかったときに発生するエラー。

<Accordion title="属性と例">
  | プロパティ          | 型              | 必須  | 説明                                                                                                                                                                                                                                                                                                                   |
  | -------------- | -------------- | --- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `type`         | `enum<string>` | いいえ | 値は常に`error`になります。 使用可能なオプション: `error`.                                                                                                                                                                                                                                                                               |
  | `status`       | `integer`      | いいえ | レスポンスのHTTPステータス。                                                                                                                                                                                                                                                                                                     |
  | `code`         | `enum<string>` | いいえ | Box固有のエラーコード。 使用可能なオプション: `created`, `accepted`, `no_content`, `redirect`, `not_modified`, `bad_request`, `unauthorized`, `forbidden`, `not_found`, `method_not_allowed`, `conflict`, `precondition_failed`, `too_many_requests`, `internal_server_error`, `unavailable`, `item_name_invalid`, `insufficient_scope`. |
  | `message`      | `string`       | いいえ | エラーについての短い説明メッセージ。                                                                                                                                                                                                                                                                                                   |
  | `context_info` | `object`       | いいえ |                                                                                                                                                                                                                                                                                                                      |
  | `help_url`     | `string`       | いいえ | このエラーの原因に関する詳細情報にリンクされたURL。                                                                                                                                                                                                                                                                                          |
  | `request_id`   | `string`       | いいえ | Boxサポートに連絡するときに使用できる、このレスポンスの一意の識別子。                                                                                                                                                                                                                                                                                 |

  ```json 例 theme={null}
  {
    "type": "error",
    "status": 400,
    "code": "item_name_invalid",
    "message": "Method Not Allowed",
    "context_info": {
      "conflicts": [
        {
          "id": "12345",
          "etag": "1",
          "type": "file",
          "sequence_id": "3",
          "name": "Contract.pdf",
          "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
          "file_version": {
            "id": "12345",
            "type": "file_version",
            "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
          }
        }
      ]
    },
    "help_url": "https://developer.box.com/guides/api-calls/permissions-and-errors/common-errors/",
    "request_id": "abcdef123456"
  }
  ```
</Accordion>
