How do you alter delete protection of a group in ArcGIS Online using the ArcGIS API for Python?

298
1
Jump to solution
07-17-2019 11:17 AM
PeterGamberg1
Esri Contributor

Is it possible to change the delete protection properties of a group within ArcGIS Online using the ArcGIS API for Python? Based on the documentation of the Group module (https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#group

), I can return the delete protection status of a group but I don’t see method of changing the property.

0 Kudos
1 Solution

Accepted Solutions
AaronPulver
Esri Regular Contributor

You do it like

group.protected = False

The setter will push the change to the backend.

View solution in original post

1 Reply
AaronPulver
Esri Regular Contributor

You do it like

group.protected = False

The setter will push the change to the backend.

View solution in original post