I am trying to delete some features from a feature service using an ArcGIS REST API. This documentation shows the output, but I am trying to work out the input. I want to do this via code, rather than via the web interface.
I have tried these JSON parameters:
{'objectids': [4, 5, 6]}
and {'deleteResults': [{'objectId': 4, 'f': 'json'}]}
but they don't work.
Any ideas?
Ideally I would be deleting the features via Python. Can you do it without the API? I can post and query the feature service without accessing the 'ArcGIS API for Python' (e.g. using requests
and urllib
).
This is a sample form.
{'objectids': [{8, 802, 803}]}