---
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 and TenantGroupLocationNetwork only (CP-28229). Does not modify core group, practitioner, or location 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 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

## 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

## 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/versions/3d27e9019c7b/schema)
