1

Is it possible to add and delete features from an ArcGIS Online-hosted feature service?

I'm able to do this with services hosted on our ArcGIS Server (example here), but don't see the option under "Supported Operations" when looking at the REST endpoint for an AGOL-hosted feature service (example here).

I understand that few people use both ArcGIS Server and ArcGIS Online, but our client is a heavy AGOL user and would like to store all their data in the platform instead of our ArcGIS Server.

If this isn't available, is it part of the roadmap for ArcGIS Online development? It seems strange that the REST endpoint is different from that made available from ArcGIS Server.

3

AddFeatures is an endpoint on feature services in both local Server and hosted Portal (arcgis.com)

You can see from this blog and associated script that I call both addFeautres and updateFeatures. You'll only see the addFeatures/updateFeautes/deleteFeatures, etc endpoints on the REST page if you have editing turned on for that service. If editing has NOT been enabled, you don't see the endpoints. You can still call them as long as you're authenticated (passing a token) admin on the org or the service owner itself.

  • This is great-- thanks so much @KHibma. I'd selected 'add layer to map with editing enabled', but hadn't formally enabled editing using the Edit dropdown. Is there a way to expose this addFeatures functionality to only credentialed users, but share a public map service of the same data? I can accomplish this using ArcGIS Server, but not sure if this is possible in AGOL. Thanks! – Charlie Hofmann Apr 30 '15 at 18:40
  • 1
    Check this out - doc.arcgis.com/en/arcgis-online/share-maps/… – KHibma Apr 30 '15 at 19:07
  • Thanks for your help! Privileges is definitely what I want to get into, but it looks like that only governs feature services shared within an organization, not publicly. According to this post, security-through-obscurity is possible, but if one wants to actually secure the feature service, ArcGIS Server is required. Is that your understanding as well? – Charlie Hofmann Apr 30 '15 at 19:30
  • I'm going to use the script you've published here to overwrite the entire feature service and republish. Thanks for putting that together-- super helpful. – Charlie Hofmann Apr 30 '15 at 20:02
  • Sorry, not sure about the AGS requirement to secure a FS for the workflow you describe – KHibma Apr 30 '15 at 20:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.