---
title: "Terminate group participation in networks"
method: PATCH
path: "/groups/{groupId}/networks/terminate"
tags: ["Group"]
---

# Terminate group participation in networks

`PATCH /groups/{groupId}/networks/terminate`

Terminates TenantGroupNetwork for the group and cascades to TenantGroupPractitionerNetwork, TenantGroupLocationNetwork, TenantGroupLocationPractitionerNetwork, TenantGroupFacilityNetwork, and TenantGroupLocationFacilityNetwork. Does not modify core group, practitioner, location, or facility membership rows.

## Path parameters

- `groupId` string, required

## Headers

- `tenant-id` string

## Request body

- TerminateGroupNetworksRequest — Terminate group participation in the given networks and cascade to practitioner, location, facility, and facility-location network rows.
  - `networkIds` string[], required — Certify (core) network IDs to terminate the group from — same identifiers as other group/network APIs and Network.id in DAL.
  - `terminationDate` string, required — Termination date (ISO-8601, YYYY-MM-DD)
  - `terminationInformedDate` string — Optional date the group was informed of termination (ISO-8601)
  - `terminationReason` string — Optional termination reason
  - `continuityOfCare` boolean — Whether Continuity of Care applies for this termination. Defaults to false when omitted.

## Response `200`

Successfully terminated group network participation

- TerminateGroupNetworksResponse — Result of terminating a group from one or more networks.
  - `groupId` string, required — Certify group ID (same as the path parameter)
  - `networkIds` string[], required — Certify (core) network IDs that were processed (echo of the request)
  - `tenantGroupNetworksTerminated` integer, required — Number of TenantGroupNetwork rows terminated
  - `tenantGroupPractitionerNetworksTerminated` integer, required — Number of TenantGroupPractitionerNetwork rows terminated
  - `tenantGroupLocationNetworksTerminated` integer, required — Number of TenantGroupLocationNetwork rows terminated
  - `tenantGroupLocationPractitionerNetworksTerminated` integer, required — Number of TenantGroupLocationPractitionerNetwork rows terminated
  - `tenantGroupFacilityNetworksTerminated` integer, required — Number of TenantGroupFacilityNetwork rows terminated
  - `tenantGroupLocationFacilityNetworksTerminated` integer, required — Number of TenantGroupLocationFacilityNetwork rows terminated

## Other responses

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