Hi everyone!
We're trying to use the REST API to perform geoenrichment of custom polygons, but we're running into a block. We can find resources that provide examples for points, lists of points, and ArcGIS provided polygons (e.g., census tracts / zip codes) but we cannot find anything that tells us how to specify custom polygons using the REST API. I would love even just one example of the format the API request must be in! We've tried, for example:
studyAreas = {"rings": [[[-97.06138, 32.837], [-97.06133, 32.836], [-97.06124, 32.834], [-97.06127, 32.832], [-97.06138, 32.837]]], "spatialReference": {"wkid": 4326}}
and we receive the error
response_json: {'results': [{'paramName': 'GeoEnrichmentResult', 'dataType': 'GeoEnrichmentResult', 'value': {'version': '2.0', 'FeatureSet': []}}], 'error': {'code': 10020007, 'message': "Parameter 'studyAreas' is invalid.", 'details': [" Reason: Invalid attribute 'StudyAreas'."], 'causes': [{'code': 10020049, 'message': "Invalid attribute 'StudyAreas'.", 'details': []}]}, 'messages': []}
Thanks everyone! I appreciate any the advice you can provide.
Julia