I have a feature layer which I populated by manually uploading and managing data from a CSV file within the ArcGIS Developer UI. Periodically, the data changes. New records need adding, or lat/long coords change. As such, I'd like to use the JavaScript API to treat this feature layer like a conventional database table.
Is there a way to insert, update, and delete records in the feature layer? I see the FeatureLayer.addEdits() method but that doesn't seem to do the trick. However, here's kind of the idea.
https://totalapis.github.io/sample-code/sandbox/index.html?sample=editing-applyedits
This sandbox example supposedly allows a user to add, edit or delete an item on a feature layer. The example doesn't work for me, but the concept is there. The difference for me is that the user would not be able to change any data, only an application process.