{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-terminate-facility-location-response-schema.json",
  "title": "TerminateFacilityLocationResponse",
  "description": "Result of terminating a facility location from the facility. Integer counts are the number of operations included in the termination batch before execution (attempted), not a post-hoc validation of each DAL operation result.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-facility-api-openapi.yml#/components/schemas/TerminateFacilityLocationResponse",
  "type": "object",
  "properties": {
    "certifyFacilityId": {
      "type": "string",
      "description": "Certify facility ID"
    },
    "certifyLocationId": {
      "type": "string",
      "description": "Certify location ID"
    },
    "facilityTerminationDate": {
      "type": "string",
      "description": "Facility–location termination date applied"
    },
    "networkTerminationDate": {
      "type": "string",
      "description": "Network/plan termination date applied"
    },
    "terminatedLocationFacilityNetworks": {
      "type": "integer",
      "format": "int32",
      "description": "Attempted TenantGroupLocationFacilityNetwork UPDATE operations (pre-batch; not verified per-op against DAL response)"
    },
    "terminatedLocationNetworks": {
      "type": "integer",
      "format": "int32",
      "description": "Attempted TenantGroupLocationNetwork UPDATE operations (pre-batch; not verified per-op against DAL response)"
    },
    "terminatedLocationNetworkPlans": {
      "type": "integer",
      "format": "int32",
      "description": "Attempted TenantGroupLocationNetworkPlan UPDATE operations (pre-batch; not verified per-op against DAL response)"
    },
    "terminatedLocationPractitionerNetworks": {
      "type": "integer",
      "format": "int32",
      "description": "Attempted TenantGroupLocationPractitionerNetwork UPDATE operations (pre-batch; not verified per-op against DAL response)"
    },
    "terminatedPractitionerNetworks": {
      "type": "integer",
      "format": "int32",
      "description": "Attempted TenantGroupPractitionerNetwork UPDATE operations (pre-batch; not verified per-op against DAL response)"
    },
    "terminatedGroupFacilityLocations": {
      "type": "integer",
      "format": "int32",
      "description": "TenantGroupFacilityLocation rows in scope for this location (pre-batch count)"
    },
    "tenantFacilityLocationUpdated": {
      "type": "boolean",
      "description": "Whether TenantFacilityLocation was updated"
    }
  }
}