latestOpenAPI 3.1.02026-08-194237902.5 MB

563848e0ecc0

Facility

Correct the specialty on a group facility specialty record

Replaces the tenant_specialty_id on a TenantGroupFacilitySpecialty record (Level 3) in data-correction mode. Use this for data-correction scenarios where a group-level facility specialty association is incorrect and the correction must propagate to its child records — cascades to the group-facility-location and group-facility-network specialty records (Levels 4, 5) that are children of this association via FK chain. For correcting only a facility-level (non-group) record, use PATCH /facilities/tenant-facility-specialties/specialty instead. Does not trigger termination events. Returns the raw updated Level-3 record (id, tenantSpecialtyId, data) as an untyped JSON object.

patch/facilities/tenant-group-facility-specialties/specialty

Headers

tenant-idstring

Request body

tenantGroupFacilitySpecialtyIdstring required

ID of the existing TenantGroupFacilitySpecialty record to correct

newTenantSpecialtyIdstring required

ID of the new TenantSpecialty to replace the current one

changeReasonstring

Optional human-readable reason for the change, captured for audit trail.

Example request

{
  "tenantGroupFacilitySpecialtyId": "tgfs_abc123",
  "newTenantSpecialtyId": "ts_xyz789",
  "changeReason": "Correcting specialty mapping per annual review"
}

Response

Specialty corrected successfully

object required