---
title: "Unterminate Facilities (Bulk)"
method: PATCH
path: "/v2/facilities/unterminate-facility"
tags: ["v2/facilities"]
---

# Unterminate Facilities (Bulk)

`PATCH /v2/facilities/unterminate-facility`

Unterminates the facility

## Headers

- `organization-id` string

## Request body

- UnterminateFacilityV2Dto
  - `facility_ids` string[], required — Facility ids to be unterminated in comma separated strings within the array.
  - `reason` string, required — Reason for the untermination.
  - `filters` FilterFacilityV2Dto, required
    - `offset` number — The starting index for pagination, specifying how many records to skip.
    - `limit` number — The maximum number of records to retrieve in a single request.
    - `file_type` 'Clean' | 'Non_Clean' | 'Pending' — File Type of the facility to filter by to be terminated. (Effective only when no facility_ids are being passed and filters are used for query instead, but we need to pass the value in every case to make the api request)
    - `start_updated_at` string, date-time — Filter facility that are created or updated >= specified date.
    - `end_updated_at` string, date-time — Filter providers that are created or updated < specified date.

## Response `204`

Facility successfully unterminated.

## Other responses

- `207` — Some facilities couldn't be unterminated. The response includes each failed id followed by the reason of the failure.
- `400` — Bad request because the wrong parameters are provided in the request body.
- `401` — Unauthorized if authorization token is not provided or invalid.
- `403` — Forbidden if user access is not right.

---

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