I am trying to extract data changes from AGO-hosted feature service. I am referring to the REST API and using Python API feature layer collection extract_change method. According to the documentation, required parameters are 2) layers and 2) layerServerGens. However, when I use the following code, it complains about optional parameters such as geometryType and inSR. I tried to find a sample code that uses the same method but had no luck. Help!
Solved! Go to Solution.
To me, it looks like a defect in the ArcGIS API for Python. I tested a code snippet using your service, and the ArcGIS API for Python appears to be building a bogus/invalid URL request. For the optional parameters in the REST API Extract Changes call, the ArcGIS API for Python is passing "None" and the REST API considers those invalid.