> ## 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.

# Update business unit

Updates the information about business units in the dataset.

## HTTP request

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

Replace `{location-id}` with your [supported location](/flexi-capture/cloud/cloud-f-cfor-invoices-api#icaas-supported-countries).

## Request body

The request body has the following structure:

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

| Field   | Type                                   | Description                       |
| ------- | -------------------------------------- | --------------------------------- |
| `model` | body, object(UpdateBusinessUnitsModel) | Required. List of business units. |

### UpdateBusinessUnitsModel

| Field     | Type                      | Description                                                                                                          |
| --------- | ------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| `region`  | string                    | Required. Business unit region. Supported regions: US: USA, AU: Australia, EU: European Union countries, CA: Canada. |
| `units[]` | object(BusinessUnitModel) | Required. List of business units.                                                                                    |

### BusinessUnitModel

| Field          | Type   | Description                                          |
| -------------- | ------ | ---------------------------------------------------- |
| `external_id`  | string | Required. External ID.                               |
| `name[]`       | string | Required. Business unit name.                        |
| `street[]`     | string | Optional. Business unit street.                      |
| `city[]`       | string | Optional. Business unit city.                        |
| `state[]`      | string | Optional. Business unit state.                       |
| `zip[]`        | string | Optional. Business unit zip code.                    |
| `country_code` | string | Required. Country code in ISO 3166-1 alpha-2 format. |
| `vat[]`        | string | Optional. Tax payer ID.                              |

## Response

If successful, the server returns a `204 No Content` HTTP status.
