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

# Terminate a group location from networks

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

Terminates a group location from one or more networks by updating TenantGroupLocationNetwork rows. Does not cascade to TenantGroupLocationPractitionerNetwork or other entities.

## Path parameters

- `locationId` string, required

## Headers

- `tenant-id` string

## Request body

- TerminateGroupLocationFromNetworkRequest — Request to terminate a group location from networks
  - `networkIds` string[], required — List of network IDs to terminate the location from
  - `terminationDate` string — Termination date (ISO-8601 format, e.g., 2024-01-15)
  - `terminationReason` string — Termination reason
  - `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 from networks

- TerminateGroupLocationFromNetworkResponse — Response for terminating a group location from networks
  - `tenantGroupLocationId` string, required — The tenant group location ID
  - `terminatedCount` integer, required — The number of networks terminated from
  - `networkIds` string[], required — List of network IDs that were terminated
  - `results` NetworkTerminationResult[], required — Termination results for each network
    - `networkId` string, required — Network ID
    - `success` boolean, required — Whether termination was successful
    - `errorMessage` string — Error message if termination failed

## Other responses

- `400` — Bad request - Invalid input or validation error
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Group location or network 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)
