---
title: "Assign a unit to a reservation."
method: PUT
path: "/booking/v0-nsfw/reservation-actions/{id}/assign-unit"
tags: ["ReservationActions"]
---

# Assign a unit to a reservation.

`PUT /booking/v0-nsfw/reservation-actions/{id}/assign-unit`

## Request

- Base URL: `https://api.apaleo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apaleo.com/booking/v0-nsfw/reservation-actions/{id}/assign-unit`
- Auth: OAuth 2
  - Implicit: `https://identity.apaleo.com/connect/authorize`
  - Scopes: `reservations.assign-unit`, `reservations.manage`, `admin`

Assigns one of the available units to a reservation which is in state 'Confirmed' or 'InHouse'.<br>You must have at least one of these scopes: 'reservations.assign-unit, reservations.manage'.<br>For fine-grained clients, you must have this permission: 'core.reservations.modify'.

## Path parameters

- `id` string, required

## Query parameters

- `unitConditions` string[]

## Response `200`

Unit assignment was successful.

- AutoAssignedUnitListModel
  - `timeSlices` AutoAssignedUnitItemModel[], required: The list of time slices with the respective assigned unit
    - `unit` EmbeddedUnitModel, required
      - `id` string, required: The unit id
      - `name` string, nullable: The name for the unit
      - `description` string, nullable: The description for the unit
      - `unitGroupId` string, nullable: The unit group id
    - `from` string, date-time, required: The start date and time for this time slice<br />A date and time in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>
    - `to` string, date-time, required: The end date and time for this time slice<br />A date and time in UTC or with UTC offset as defined in <a href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a>

## Other responses

- `400`: Bad request.
- `401`: You are unauthorized.
- `403`: Forbidden.
- `404`: The Request-URI could not be found.
- `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-booking-api-not-safe-for-work.md) - [All operations](https://skmtc.dev/apaleo/apis/apaleo-booking-api-not-safe-for-work/llms.txt) - [OpenAPI document](https://skmtc.dev/apaleo/apis/apaleo-booking-api-not-safe-for-work/revisions/a1b6a2f6b879?raw)
