---
title: "Create multiple units"
method: POST
path: "/inventory/v1/units/bulk"
tags: ["Unit"]
---

# Create multiple units

`POST /inventory/v1/units/bulk`

Use this call to create multiple units, following a naming rule.<br>You must have at least one of these scopes: 'units.create, setup.manage'.

## Headers

- `Idempotency-Key` string

## Request body

- BulkCreateUnitsModel
  - `units` CreateUnitModel[], required
    - `propertyId` string, required — The id of the property where the unit will be created
    - `name` string, required — The name for the unit
    - `description` object, required — The description for the unit
    - `unitGroupId` string, nullable — The id of the unit group
    - `maxPersons` integer, required — Maximum number of persons for the unit
    - `condition` 'Clean' | 'CleanToBeInspected' | 'Dirty', nullable — Condition of the unit
    - `attributes` CreateUnitAttributeModel[], nullable — Collection of user defined attributes of unit
      - `id` string, required — Id of unit attribute
    - `connectedUnits` CreateConnectedUnitModel[], nullable — The list of units this unit is composed of
      - `unitId` string, required — The connected unit id

## Response `200`

Success.

- BulkUnitsCreatedModel
  - `ids` string[], required — The unit ids

## Other responses

- `400` — Bad request.
- `401` — You are unauthorized.
- `403` — Forbidden.
- `404` — The Request-URI could not be found.
- `415` — Unsupported media type.
- `422` — Validation errors in the request body or query params.
- `499` — Client closed request.
- `500` — An unexpected error occurred.
- `503` — The server is currently unavailable. Please try later.

---

[API](https://skmtc.dev/apaleo/apis/apaleo-inventory-api.md) · [All operations](https://skmtc.dev/apaleo/apis/apaleo-inventory-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apaleo/apaleo-inventory-api/revisions/a2846f52cdfb/schema)
