<?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 Enabling editing for bulk published feature services in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101006#M31156</link>
    <description>&lt;P&gt;We are running ArcGIS Enterprise 10.8.1. I followed this doc here to bulk publish around 50 feature services:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/bulk-publish-arcgis-server-feature-layers.htm" target="_blank"&gt;Publish layers in bulk from a user-managed data store—Portal for ArcGIS | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As the doc states, editing is not enabled by default. Is there a way (either through Portal/Server Manager or using Python) to go into the service properties and enable editing?&lt;/P&gt;</description>
    <pubDate>Wed, 22 Sep 2021 20:04:09 GMT</pubDate>
    <dc:creator>tigerwoulds</dc:creator>
    <dc:date>2021-09-22T20:04:09Z</dc:date>
    <item>
      <title>Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101006#M31156</link>
      <description>&lt;P&gt;We are running ArcGIS Enterprise 10.8.1. I followed this doc here to bulk publish around 50 feature services:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/bulk-publish-arcgis-server-feature-layers.htm" target="_blank"&gt;Publish layers in bulk from a user-managed data store—Portal for ArcGIS | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As the doc states, editing is not enabled by default. Is there a way (either through Portal/Server Manager or using Python) to go into the service properties and enable editing?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 20:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101006#M31156</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-22T20:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101065#M31158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111548"&gt;@tigerwoulds&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I was able to enable editing for bulk service publishing using Python, by following this workflow:&lt;/P&gt;&lt;P&gt;- using Pro project Map, create web layer sharing draft using "getWebLayerSharingDraft" function&lt;BR /&gt;- configure the sharing draft as required, like the federated server URL, copy data to server or not, according to your needs&lt;BR /&gt;- export the draft to a file using "exportToSDDraft" function&lt;BR /&gt;- edit the exported file to enable editing then save the file&lt;BR /&gt;- stage the service using "StageService_server" function&lt;BR /&gt;- publish the service using "UploadServiceDefinition_server" function&lt;/P&gt;&lt;P&gt;I am attaching the function that can help editing the service draft file.&lt;BR /&gt;Hope that helps in what you are after&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Ihab&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 22:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101065#M31158</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-09-22T22:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101066#M31159</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111548"&gt;@tigerwoulds&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You might be able to update the definition using Python. Here are the reference notes from the developers site:&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/guide/updating-feature-layer-properties/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the the bulk publish publishes a Feature Layer but with editing disabled, I believe you search for it in portal and update the 'capabilities' property to enable create/delete/query/update. The capability definition is something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;cap_def_update = {'capabilities':'Create,Delete,Query,Update,Editing,Extract'}&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; Good luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 22:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101066#M31159</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-09-22T22:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101415#M31165</link>
      <description>&lt;P&gt;Thanks! Curious if this will work for non hosted services..aka service that are registered with an SDE database. The doc states you can update service properties for hosted feature layers&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 18:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101415#M31165</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-23T18:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101495#M31168</link>
      <description>&lt;P&gt;For Enterprise services, you could try editing the service properties through the ArcGIS Admin API. See notes on the endpoint here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/enterprise/edit-service.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/enterprise-administration/enterprise/edit-service.htm&lt;/A&gt;&amp;nbsp;. I believe you are looking to enable (set true) the "typename":"FeatureServer object.&lt;/P&gt;&lt;P&gt;Using Python:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests
import os
import json
# Get token from /arcgis/sharing/rest/generateToken
token = "###"
service_name="myservice"
folder_name="myfoldername"
domain="myarcgis.com"
edit_service_url = f"https://{domain}/arcgis/admin/{folder_name}/{service_name}.MapServer/edit
base_dir = r"C:/workspace"
json_file = os.path.join(base_dir, r"myServiceProperties.json")

with open(json_file) as jf:
   service_json=json.load(jf)

payload = {
   'f': 'json',
   'service':service_json,
   'token':'token
}
response = requests.post(
   edit_service_url, data=payload
)

print(response.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 22:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101495#M31168</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-09-29T22:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101713#M31177</link>
      <description>&lt;P&gt;I think I'm getting there. Still very new to python and programming in general so I appreciate the help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little confused on what to put&amp;nbsp; in the JSON file. Say I just want to have just the Query capability on the Feature service, how do I do that?&lt;/P&gt;&lt;P&gt;In the JSON file, do I just copy the entire map service's JSON ( from sever manager) and edit the Feature Service capabilities section?&lt;/P&gt;&lt;P&gt;Here is my code overall:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;requests&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;os&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;json&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;ssl&lt;BR /&gt;&lt;BR /&gt;ssl._create_default_https_context = ssl._create_unverified_context&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Get token from /arcgis/sharing/rest/generateToken&lt;BR /&gt;&lt;/SPAN&gt;token = &lt;SPAN&gt;"####"&lt;BR /&gt;&lt;/SPAN&gt;service_name=&lt;SPAN&gt;"TestService"&lt;BR /&gt;&lt;/SPAN&gt;folder_name=&lt;SPAN&gt;"TestFolder"&lt;BR /&gt;&lt;/SPAN&gt;domain=&lt;SPAN&gt;"######################"&lt;BR /&gt;&lt;/SPAN&gt;edit_service_url = &lt;SPAN&gt;f"https://&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;domain&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/arcgis/admin/services/&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;folder_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;service_name&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;.MapServer/edit"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(edit_service_url)&lt;BR /&gt;base_dir = &lt;SPAN&gt;r"C:\Test"&lt;BR /&gt;&lt;/SPAN&gt;json_file = os.path.join(base_dir&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;r"myServicePropertiesX.json"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;os.path &lt;SPAN&gt;import &lt;/SPAN&gt;exists&lt;BR /&gt;&lt;BR /&gt;file_exists = exists(json_file)&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(file_exists)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;with &lt;/SPAN&gt;&lt;SPAN&gt;open&lt;/SPAN&gt;(json_file) &lt;SPAN&gt;as &lt;/SPAN&gt;jf:&lt;BR /&gt;   service_json=json.load(jf)&lt;BR /&gt;&lt;BR /&gt;payload = {&lt;BR /&gt;   &lt;SPAN&gt;'f'&lt;/SPAN&gt;: &lt;SPAN&gt;'json'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;'service'&lt;/SPAN&gt;:service_json&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;'token'&lt;/SPAN&gt;:token&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;response = requests.post(&lt;BR /&gt;   edit_service_url&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;=payload&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;print(response.json)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 20:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101713#M31177</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-24T20:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101880#M31181</link>
      <description>&lt;P&gt;Thanks for the reply. I dont think this will work for us me as I have several hundreds of layers to publish as individual services. Setting up the service definition file for each one is not feasible.&lt;/P&gt;&lt;P&gt;The bulk publishing doc I referenced is a good solution to publish these quickly, but I just need a way to update the feature service properties once the services are published.&lt;/P&gt;&lt;P&gt;They are all 'registered' services pulling from a SDE database so unfortunately using the update_definition() function outlined here doesnt work.&amp;nbsp;&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" target="_blank"&gt;Service definitions | ArcGIS Developer&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 01:00:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101880#M31181</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-25T01:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101970#M31182</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I'm a little confused on what to put&amp;nbsp; in the JSON file. Say I just want to have just the Query capability on the Feature service, how do I do that?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;There is an "extensions" array which contains an object with a typeName == "FeatureServer". One of the object's properties is capabilities. You can add in the "Query" string to enable the capability. The structure looks something like the below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"extentions": [ ... ,{
"typeName": "FeatureServer",
"capabilities": "Query",
"enabled": "true",
"maxUploadFileSize": 0,
"allowedUploadFileTypes": "",
"properties": {...}}
... ]
}&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;In the JSON file, do I just copy the entire map service's JSON ( from sever manager) and edit the Feature Service capabilities section?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I believe so.&amp;nbsp;&lt;SPAN&gt;The JSON file should be an updated copy of the service properties found at the edit service url. Be sure to leave a copy of the original if you want to revert your changes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It might also be a good idea to create a service which has Query/Edit capability enabled and see the differences before posting the changes. The ESRI admin enterprise notes are detailed but are human readable.&lt;/P&gt;&lt;P&gt;Also note, I may have been incorrect with the payload variable. If the server returns a parameter-like error (i am guessing), try using json.dumps for the service parameter.&lt;/P&gt;&lt;PRE&gt;payload = {&lt;BR /&gt;   &lt;SPAN&gt;'f'&lt;/SPAN&gt;: &lt;SPAN&gt;'json'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;'service'&lt;/SPAN&gt;:json.dumps(service_json)&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;   &lt;SPAN&gt;'token'&lt;/SPAN&gt;:token&lt;BR /&gt;&lt;BR /&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Sep 2021 22:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1101970#M31182</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-09-26T22:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1102127#M31186</link>
      <description>&lt;P&gt;Makes sense, thank you much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 14:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1102127#M31186</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-27T14:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103233#M31201</link>
      <description>&lt;P&gt;I am getting this message when I run my script. But the feature service service is not updating. Any ideas?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# &amp;lt;bound method Response.json of &amp;lt;Response [200]&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 19:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103233#M31201</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-29T19:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103309#M31202</link>
      <description>&lt;P&gt;I forgot parenthesises in my print statement. It is currently printing the method object and not the returned value. It should be:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;print (response.json())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That means the request was successful, however, in ESRI's REST service implementation, the response from the service will return a message in JSON format. You will likely see an&amp;nbsp;&lt;EM&gt;error&lt;/EM&gt; property in the returned JSON.&lt;/P&gt;&lt;P&gt;For other status codes, you can look at &lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Status" target="_self"&gt;this.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 22:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103309#M31202</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-09-29T22:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103347#M31203</link>
      <description>&lt;P&gt;It worked like a charm, no errors. Thank you very much!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next goal is to apply this workflow to over 100 services in a folder on Server Manager so I can make the same edits to every service within that folder. Thank you again for your help thus far.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 00:38:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1103347#M31203</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-30T00:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1104869#M31235</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180019"&gt;@LongDinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reason, my script is throwing an error when submitting the POST. I am building the JSON file programmatically (since I have 100's of services), but my code sees the JSON file as invalid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;{'status': 'error', 'messages': ["A JSONObject text must begin with '{' at character 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The JSON file is does start with the {&lt;/LI&gt;&lt;LI&gt;I have validated it using an online editor&lt;/LI&gt;&lt;LI&gt;I can copy the JSON from the file and submit it through the MapServer/edit endpoint and it is successful.&amp;nbsp; Any ideas why I cant POST the JSON file?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 15:45:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1104869#M31235</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2022-04-01T15:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105002#M31236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111548"&gt;@tigerwoulds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The variable json_file is a path and not a JSON object hence the input parameter throws a 'does not begin with {' error.&lt;/P&gt;&lt;P&gt;I think your payload on line 100 should be:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;payload = {
 'f':'json',
 'service': service_json,
 'token': token
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 05 Oct 2021 22:16:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105002#M31236</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-10-05T22:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105333#M31248</link>
      <description>&lt;P&gt;Yes good catch, I missed that. Unfortunately I still get the same error&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 20:30:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105333#M31248</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-10-06T20:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105380#M31250</link>
      <description>&lt;P&gt;Try converting the service_json to a json string like:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;payload = {
   'f': 'json',
   'service': json.dumps(service_json),
   'token': token
}&lt;/LI-CODE&gt;&lt;P&gt;Hopefully it throws a different error.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 22:43:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105380#M31250</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-10-06T22:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105749#M31258</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180019"&gt;@LongDinh&lt;/a&gt;&amp;nbsp;unfortunately, same issue BUT I was able to figure this out using a slightly different method from this &lt;A href="https://enterprise.arcgis.com/en/server/10.8/administer/linux/example-edit-service-properties.htm" target="_self"&gt;example&lt;/A&gt;. I converted this to python 3 and replaced the httplib/urllib pieces with the functions from the 'request' library for python 3 and everything is worked as expected. Including the payload as you described initially was key to get this working.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;I can now loop through a folder on my GIS Server and update properties/capabilities for all services in the folder.&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Big thank you for your help again.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 23:43:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105749#M31258</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-10-07T23:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105761#M31259</link>
      <description>&lt;P&gt;Awesome work!&amp;nbsp;&lt;SPAN&gt;Glad to hear you reached a solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 00:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1105761#M31259</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-10-08T00:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1156691#M32808</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/111548"&gt;@tigerwoulds&lt;/a&gt;&amp;nbsp;..I am looking to do the exact same thing but I'm getting a bit lost on the upgrade.&amp;nbsp; Can you share your working Python3 script by chance?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 14:51:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1156691#M32808</guid>
      <dc:creator>MichaelSnook</dc:creator>
      <dc:date>2022-03-23T14:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling editing for bulk published feature services</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1639861#M42802</link>
      <description>&lt;P&gt;This seems to still be an issue in 2025, you can't use the ArcGIS python API to modify referenced feature services, or at least I couldn't get it working.&lt;/P&gt;&lt;P&gt;Here some code I wrote to use the ArcGIS Server admin rest endpoint instead. It updates the capability of all feature services in a folder to add Extract to the default Query capability. Hope it helps someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
import requests
import json


domain = 'gis.domain.org'
folder = 'MyServerFolder'
# login to GIS
gis = GIS(url="https://gis.domain.org/portal/home", profile='sangis_portal_aiteadmin')
token = gis._con.token

# Get a list of services from ArcGIS Server
# from a specific folder
gis_servers = gis.admin.servers.list()
print(gis_servers)
# Assuming a single server for simplicity
server1 = gis_servers[0]
damoa_services = server1.services.list(folder=folder)

for service in damoa_services:
    # Get the service definition
    service_def = requests.get(f'{service.url}?f=json&amp;amp;token={token}').json()
    service_name = service_def['serviceName']
    # Loop through the service extensions to find the FeatureServer extension
    i=0
    for ect in service_def['extensions']:
        if ect['typeName'] == 'FeatureServer':
            print("Enabling Feature Access capabilities...")
            print(f"original capabilities: {service_def['extensions'][i]['capabilities']}")
            # Update capabilities by editing the service definition
            service_def['extensions'][i]['capabilities'] = "Query,Extract"
            print(f"Updated capabilities: {service_def['extensions'][i]['capabilities']}")
            # Construct the URL for editing the service definition
            # This URL is specific to ArcGIS Server REST API
            edit_service_url = f"https://{domain}/arcgis/admin/services/{folder}/{service_name}.MapServer/edit"
            try:
                payload = {
                    'f': 'json',
                    'service':json.dumps(service_def),
                    'token':token
                    }
                # Make the POST request to update the service definition
                response = requests.post(url=edit_service_url, data=payload)
                # Check if the request was successful
                # This doesn't work, 200 is returned even if the update fails
                # Check the responce conteent instead
                if response.status_code == 200:
                    print("Capabilities updated successfully.")
                else:
                    print(f"Failed to update capabilities: {response.text}")
            except requests.exceptions.RequestException as e:
                raise e
            i=0
            break
        else:
              i += 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 22:19:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/enabling-editing-for-bulk-published-feature/m-p/1639861#M42802</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2025-08-06T22:19:42Z</dc:date>
    </item>
  </channel>
</rss>

