I am pretty new to working with the REST API and I'm trying to query a feature service on our organization's server using arcpy. Here is my code:
fs_url = r"https://maps.waterlandlife.org/arcgis/rest/services/PNHP/NHAEdit/FeatureServer/1/query?where=STATUS='C'&outFields=*&returnGeometry=true&f=JSON"
fs = arcpy.FeatureSet()
fs.load(fs_url)
I have tried to change the options for nearly all of the parameters here and tried including other parameters or excluding some of these. I keep getting the following error:
RuntimeError: RecordSetObject: Cannot open table for Load
I'm able to load the feature set fine without the query and have looked at a ton of resources online and can't find any solutions that have worked. Can anyone help me out with what I'm doing wrong? Thanks!