Select to view content in your preferred language

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

1724
2
01-11-2019 08:12 AM
by Anonymous User
Not applicable

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

0 Kudos
2 Replies
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.

dgiersz_cuyahoga
Frequent Contributor

Exactly what I was looking for, thanks!

Although I couldn't get it to disable the allowAppend parameter...

#CLE #sloth
0 Kudos