---
title: "Allows to patch unit"
method: PATCH
path: "/inventory/v1/units/{id}"
tags: ["Unit"]
---

# Allows to patch unit

`PATCH /inventory/v1/units/{id}`

Here's a list of allowed operations:
- Set unit condition
- Set unit description
- Set unit name
- Set unit unitGroupId
- Set unit maxPersons
- Add unit attribute
- Remove unit attribute<br>You must have at least one of these scopes: 'units.manage, setup.manage'.

## Path parameters

- `id` string, required

## Request body

- Operation[]
  - `value` unknown
  - `path` string, nullable
  - `op` string, nullable
  - `from` string, nullable

## Response `204`

The unit was successfully modified.

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