In ArcGIS Enterprise 10.8.2. I have a Feature Layer that is a hosted feature service that was created by publishing a Survey123 from Survey123 Connect. It is hosted in the ArcGIS DataStore. The survey/feature layer has over 400 questions/fields. Unbeknownst to us until after the Survey123 had been in production and collected lots of data, the capabilities did not include the Query Capability (we're not sure exactly when this happened or if it's always been that way). Although this has not affected Survey123, the maps, and the dashboards, the APIs are affected affected. because there is no query capability. I cannot query the Feature Layer in code. I have attempted to use the REST API, ArcPy, and the Python API for ArcGIS.
In all cases I get an error with the content "Capability 'Query' is not set on the layer.". The REST API exposes it as a 500 error.
I can tell that there is no query capability by looking at the Feature Layer's REST endpoint. At the bottom of the page under "Supported Operations", there is no "Query".

All I want to do is rescue the Feature Layer by enabling Query. This is not documented anywhere that I can find. The other options to migrate and publish a new Feature Layer is unappealing because we already have several month of production data, and because there is no query capability, I cannot script it.
TIA