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

# 事業部門を更新

データセット内の事業部門情報を更新します。

<div id="http-request">
  ## HTTP リクエスト
</div>

```http theme={null}
PUT https://api-{location-id}.flexicapture.com/v2/dataset/businessunits
```

`{location-id}` は[サポート対象のロケーション](/ja/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries)に置き換えてください。

<div id="request-body">
  ## リクエスト本文
</div>

リクエスト本文の構造は次のとおりです。

```json theme={null}
{
  "region": "US",
  "units": [
    {
      "external_id": "string",
      "name": [
        "string"
      ],
      "street": [
        "string"
      ],
      "city": [
        "string"
      ],
      "state": [
        "string"
      ],
      "zip": [
        "string"
      ],
      "country_code": "string",
      "vat": [
        "string"
      ]
    }
  ]
}
```

| フィールド   | 型                                      | 説明           |
| ------- | -------------------------------------- | ------------ |
| `model` | body, object(UpdateBusinessUnitsModel) | 必須。事業部門のリスト。 |

<div id="updatebusinessunitsmodel">
  ### UpdateBusinessUnitsModel
</div>

| Field     | 型                         | Description                                             |
| --------- | ------------------------- | ------------------------------------------------------- |
| `region`  | string                    | 必須。事業部門の地域。対応地域: US: USA、AU: オーストラリア、EU: EU加盟国、CA: カナダ。 |
| `units[]` | object(BusinessUnitModel) | 必須。事業部門のリスト。                                            |

<div id="businessunitmodel">
  ### BusinessUnitModel
</div>

| Field          | 型      | 説明                            |
| -------------- | ------ | ----------------------------- |
| `external_id`  | string | 必須。外部ID。                      |
| `name[]`       | string | 必須。事業部門名。                     |
| `street[]`     | string | 任意。事業部門の住所。                   |
| `city[]`       | string | 任意。事業部門の市区町村。                 |
| `state[]`      | string | 任意。事業部門の州／都道府県。               |
| `zip[]`        | string | 任意。事業部門の郵便番号。                 |
| `country_code` | string | 必須。ISO 3166-1 alpha-2形式の国コード。 |
| `vat[]`        | string | 任意。納税者番号。                     |

<div id="response">
  ## レスポンス
</div>

成功すると、サーバーは HTTP ステータス `204 No Content` を返します。
