Many folks don't realize this, but it's completely possible to extend, modify and update the definition of a Hosted Feature Service as well as update the schema of a Hosted Feature Layer, provided that you either:
Hosted Feature Services
Using the Feature Service's Add to Definition endpoint, a user can:
Using the Feature Service's Update Definition endpoint, a user can:
Using the Feature Service's Delete From Definition endpoint, a user can:
Hosted Feature Layers
Using the Feature Layer's Add To Definition endpoint, a user can:
Using the Feature Layer's Update Definition endpoint, a user can:
Using the Feature Layer's Delete From Definition endpoint, a user can:
Of course, to do any of these things, users must either write and validate the json and apply it directly at the the appropriate Feature Service or Feature Layer REST Endpoint, or use the ArcGIS Online/Enterprise Web UI to do so. In the case of the latter, the vast majority of this functionality is not exposed through the UI at all!
ArcGIS Pro needs to provide tool(s) that would allow a user to:
These capabilities are useful for allowing power users, service owners and administrators with easy and intuitive ways to effectively manage their services in an ad-hoc manner. Certainly, for bulk service management, the Python API is the more appropriate tool to use, but for one-offs Pro should provide a tool to allow users to do these things.
The REST Endpoints are already there! Pro just needs a tool that provides an elegant UI to make those changes, does some JSON parsing and submits the Post requests to make the changes
Everytime I try to update via the code, something always go wrong and nothing works. PLEASE MAKE A TOOL to help us update.
Are you checking your json first with something like JSONLint - The JSON Validator? I've never seen the endpoints not work unless it was my own fault for pushing invalid json. Nonetheless, its definitely path that is prone to error. Typically, when I need to do this, I will add the service to an ArcMap or Pro session, export it to a feature class on my system and then republish it as a Hosted Feature Layer, then test my changes on that copy before applying them to the original. Once I've done that, I delete the copy that I created. It's definitely a cumbersome workaround but until Esri provides some kind of tool for this, its the best workflow I know of.
AGOL/Portal should also provide workflows in an intuitive UI to make all of the above changes to the Hosted Service.
I don't disagree and I think they're getting there under the Data Tab on the Item Details Page. I'd just also like to see the ability directly in Pro.
There is a tool included with the Solutions Deployment called UpdateDomain. If ESRI would just migrate that to the mainline arcpy distribution, this would all be solved. Perhaps even to the arcgis Python API. Long overdue to get this done in my opinion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.