<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Programmatic Access to Editing Properties of Feature Service in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1538877#M10666</link>
    <description>&lt;P&gt;I am writing a script to identify if publicly-shared services have editing enabled.&amp;nbsp; I would like this to correspond to the "Update" option listed under "What kind of editing is allowed" on an item's page in ArcGIS Online/Portal.&lt;/P&gt;&lt;P&gt;According to the REST API, I thought that checking for "Editing" or "Update" in the layer or tables "properties.capabilities" would return this information.&lt;/P&gt;&lt;P&gt;However, after testing my script, I learned that these do not match up.&amp;nbsp; Is there a way to use the Python API to get a listing of what is enabled for editing that matches what is listed on the item's page?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 13:16:33 GMT</pubDate>
    <dc:creator>McKinneyPatrick_PA</dc:creator>
    <dc:date>2024-09-16T13:16:33Z</dc:date>
    <item>
      <title>Programmatic Access to Editing Properties of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1538877#M10666</link>
      <description>&lt;P&gt;I am writing a script to identify if publicly-shared services have editing enabled.&amp;nbsp; I would like this to correspond to the "Update" option listed under "What kind of editing is allowed" on an item's page in ArcGIS Online/Portal.&lt;/P&gt;&lt;P&gt;According to the REST API, I thought that checking for "Editing" or "Update" in the layer or tables "properties.capabilities" would return this information.&lt;/P&gt;&lt;P&gt;However, after testing my script, I learned that these do not match up.&amp;nbsp; Is there a way to use the Python API to get a listing of what is enabled for editing that matches what is listed on the item's page?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1538877#M10666</guid>
      <dc:creator>McKinneyPatrick_PA</dc:creator>
      <dc:date>2024-09-16T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic Access to Editing Properties of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1538996#M10668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/828044"&gt;@McKinneyPatrick_PA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the below what you are looking for?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
from arcgis.features import FeatureLayerCollection

## access ArcGIS Online
agol = GIS("home")

## get the Feature Service as an Item object
item = agol.content.get("ITEM_ID")

## FLC represents a Feature Service
flc = FeatureLayerCollection.fromitem(item)

print(flc.properties)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From these you can get the information from the settings page that acts as a master control for all layers and tables in the Feature Service. You can also use the API and the FeatureLayer object to update some capabilities for individual layers and tables.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;##  Create - Create a feature (editing)
##  Query -    Query attributes of a feature
##  Update - Update feature attributes and geometry (editing)
##  Editing - All editing capabilities (Create,Update,Delete)
##  Extract - Extract data in various formats
##  Sync - Used for offline data use and collaborations
##  Delete - Delete a feature (editing)
##  ChangeTracking - keep track of editing changes
"capabilities": "Create,Delete,Query,Update,Editing,Sync,ChangeTracking"

"allowGeometryUpdates": true

"allowTrueCurvesUpdates": true
"onlyAllowTrueCurveUpdatesByTrueCurveClients": false

## only availabkle if Editor Tracking has been enabled
"editorTrackingInfo": {
    "enableEditorTracking": true,
    "enableOwnershipAccessControl": false,
    "allowOthersToQuery": true,
    "allowOthersToUpdate": true,
    "allowOthersToDelete": true,
    "allowAnonymousToQuery": true,
    "allowAnonymousToUpdate": true,
    "allowAnonymousToDelete": true
}

## only available of Change Tracking is enabled
"extractChangesCapabilities": {
    "supportsReturnIdsOnly": true,
    "supportsReturnExtentOnly": true,
    "supportsReturnAttachments": true,
    "supportsLayerQueries": true,
    "supportsGeometry": true,
    "supportsFeatureReturn": true,
    "supportsReturnHasGeometryUpdates": false,
    "supportsReturnDeletedFeatures": true,
    "supportsServerGens": true,
    "supportsFieldsToCompare": true
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend turning on and off different settings and printing the properties and looking for changes/additions to the output JSON to see what is affected.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 16:14:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1538996#M10668</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-09-16T16:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic Access to Editing Properties of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1539514#M10679</link>
      <description>&lt;P&gt;The issue is that the "capabilities" property does not match the "Add/Delete/Update" checkboxes on the item's page.&lt;/P&gt;&lt;P&gt;I was expecting if "Add" shows up on the item page, it would also show up in "capabilites."&amp;nbsp; But things did not match up this way.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:03:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1539514#M10679</guid>
      <dc:creator>McKinneyPatrick_PA</dc:creator>
      <dc:date>2024-09-17T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic Access to Editing Properties of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1539630#M10680</link>
      <description>&lt;P&gt;Ahh, right. I haven't seen that behaviour before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 18:17:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1539630#M10680</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-09-17T18:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatic Access to Editing Properties of Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1543011#M10708</link>
      <description>&lt;P&gt;The issue was on my mis-understanding of capabilities.&amp;nbsp; I was originally checking for either "Editing" or "Update."&lt;/P&gt;&lt;P&gt;After re-reading&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;comments, I realized I should only have been checking for "Update" capability.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 13:19:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/programmatic-access-to-editing-properties-of/m-p/1543011#M10708</guid>
      <dc:creator>McKinneyPatrick_PA</dc:creator>
      <dc:date>2024-09-26T13:19:18Z</dc:date>
    </item>
  </channel>
</rss>

