Is there a way to enable sync and disable edit mode on feature services using the Python API?

659
1
01-11-2019 08:12 AM
vonmoosa
MVP

Is there a way to enable sync and disable edit mode on feature services using the Python API?

0 Kudos
1 Reply
JohnYaist1
Esri Contributor

Hi Anthony Von Moos 

Take a look at the Updating Feature Layer Properties Guide.  Use a FeatureLayerCollection object to load the feature service, then use the manager property to access the FeatureLayerCollectionManager. Create a new dictionary with appropriate values for capabilities and syncEnabled, and use that with the update_definition method and you should be on your way.

0 Kudos