---
title: "Correct the specialty at the group-facility-network level"
method: PATCH
path: "/facilities/tenant-group-facility-network-specialties/specialty"
tags: ["Facility"]
---

# Correct the specialty at the group-facility-network level

`PATCH /facilities/tenant-group-facility-network-specialties/specialty`

Resolves the FK chain from TenantGroupFacilityNetworkSpecialty (Level 5) to the parent TenantGroupFacilitySpecialty (Level 3) and replaces its tenant_specialty_id by updating that Level-3 record. Use this for data-correction scenarios where a group-facility-network specialty record is linked to the wrong specialty and you need to scope the correction to a single network association without cascading across all locations — for the broader group-facility correction, use PATCH /facilities/tenant-group-facility-specialties/specialty instead. Does not trigger termination events. Because this operation delegates to the Level-3 update, the response body is shaped like the Level-3 record (id, tenantSpecialtyId, data) — not a Level-5-specific record.

## Headers

- `tenant-id` string

## Request body

- CorrectGroupFacilityNetworkSpecialtyRequest
  - `tenantGroupFacilityNetworkSpecialtyId` string, required — ID of the TenantGroupFacilityNetworkSpecialty record
  - `newTenantSpecialtyId` string, required — ID of the new TenantSpecialty to replace the current one
  - `changeReason` string — Optional human-readable reason for the change, captured for audit trail.

## Response `200`

Specialty corrected successfully

- object

## Other responses

- `400` — Bad request - Invalid input
- `401` — Unauthorized - Authentication required
- `403` — Forbidden - Insufficient permissions
- `404` — Group facility network specialty not found
- `409` — Conflict - Group facility already has this specialty
- `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)
