---
title: "Terminate a group location"
method: PUT
path: "/groups/locations/{locationId}/terminate"
tags: ["Group"]
---

# Terminate a group location

`PUT /groups/locations/{locationId}/terminate`

Terminates a group location from a group. This cascades termination to all related relationships including networks, practitioners, and specialties. User consent must be confirmed before proceeding.

## Path parameters

- `locationId` string, required

## Headers

- `tenant-id` string

## Request body

- TerminateGroupLocationRequest — Request to terminate a group location
  - `terminationDate` string, required — Termination date (ISO-8601 format, e.g., 2024-01-15). Must be >= start/effective date. Future dates allowed.
  - `terminationInformedDate` string — Date when termination was informed (ISO-8601 format, e.g., 2024-01-15)
  - `terminationReason` string — Termination reason code. Used for compliance and audit purposes.
  - `consentConfirmed` boolean, required — User consent confirmation that they understand the impact of this termination on the group, networks, plans, and practitioners
  - `data` JsonNode
    - `empty` boolean
    - `valueNode` boolean
    - `containerNode` boolean
    - `missingNode` boolean
    - `array` boolean
    - `object` boolean
    - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
    - `pojo` boolean
    - `number` boolean
    - `integralNumber` boolean
    - `floatingPointNumber` boolean
    - `short` boolean
    - `int` boolean
    - `long` boolean
    - `float` boolean
    - `double` boolean
    - `bigDecimal` boolean
    - `bigInteger` boolean
    - `textual` boolean
    - `boolean` boolean
    - `null` boolean
    - `binary` boolean

## Response `200`

Successfully terminated group location

- TerminateGroupLocationResponse — Response for terminating a group location
  - `tenantGroupLocationId` string, required — The tenant group location ID
  - `success` boolean, required — Whether termination was successful
  - `terminationDate` string, required — Termination date
  - `terminationReason` string, required — Termination reason
  - `practitionersAffected` integer, required — Number of practitioners affected by this termination
  - `practitionersRequiringReview` string[], required — List of practitioner IDs that are linked only via this group-location and may need review
  - `networksAffected` integer, required — Number of networks affected
  - `errorMessage` string — Error message if termination failed

## Other responses

- `400` — Bad request - Invalid input, validation error, or consent not confirmed
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Group location not found
- `500` — Internal server error

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/revisions/3d27e9019c7b/schema)
