According to the documentation here:
https://developers.arcgis.com/rest/services-reference/query-feature-service-layer-.htm
There's a parameter, returnCentroid. According to the documentation Notes:
Note:
The layer metadata returns supportsReturningGeometryCentroid in the advancedQueryCapabilities metadata object. The absence of the supportsReturningGeometryCentroid property means that the server does not support the returnCentroid parameter. Line and point data will return supportReturningGeometryCentroid as false.
Question: I'm trying to figure out how to make the server support the returnCentroid parameter, because in our case, the supportsReturningGeometryCentroid property does not exist. FYI: We're on 10.8 so I know this is supposed to be supported in our version.