---
title: "PATCH /v1/organisations/{organisationId}/units/{organisationUnitId}/inactivate"
method: PATCH
path: "/v1/organisations/{organisationId}/units/{organisationUnitId}/inactivate"
---

# PATCH /v1/organisations/{organisationId}/units/{organisationUnitId}/inactivate

`PATCH /v1/organisations/{organisationId}/units/{organisationUnitId}/inactivate`

## Request

- Base URL: `https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api`
- URL: `https://nhse-${ENV}-innovation-service-admin-functions.azurewebsites.net/api/v1/organisations/{organisationId}/units/{organisationUnitId}/inactivate`
- Auth: none declared

Inactivate an organisation unit.

## Path parameters

- `organisationId` string, uuid, required
- `organisationUnitId` string, uuid, required

## Response `200`

The organisation unit has been inactivated.

- object
  - `unitId` string, uuid, required

## Other responses

- `400`: Bad request.
- `401`: The user is not authorized to inactivate an organisation unit.
- `404`: The organisation unit does not exist.
- `500`: An error occurred while inactivating the organisation unit.

## Changes

- **2024-11-07** `bf0b42ebdc02`: 2 breaking, 1 info
  - for the `path` request parameter `organisationId`, the format changed from no format to `uuid`
  - for the `path` request parameter `organisationUnitId`, the format changed from no format to `uuid`
  - the response property `unitId` became required for the status `200`

[Operation history](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/changes/v1/organisations/:organisationId/units/:organisationUnitId/inactivate/patch.md)

---

[API](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service.md) - [All operations](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/llms.txt) - [OpenAPI document](https://skmtc.dev/nhs/apis/admin-api-nhs-innovation-service/revisions/97dbf652314e?raw)
