<?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 Re: Changing Map Service Properties with Python in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359767#M13952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the changes using python - manipulating the json object behind iteminfo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm" style="color: #2989c5; text-decoration: none;"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;https://server:port/arcgis/admin/services/[&amp;lt;folder&amp;gt;]/&amp;lt;serviceName.serviceType&amp;gt;/iteminfo/edit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether the documentation is correct thought. I had to use&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; background: yellow;"&gt;serviceItemInfo&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background: yellow; font-size: 11.0pt; "&gt;&amp;nbsp;instead of&amp;nbsp;&lt;SPAN style="background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #ff0000;"&gt;iteminfo&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;https:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #006a00;"&gt;//server:port/arcgis/admin/services/Maps/MyMap.MapServer/iteminfo/edit&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #ff0000;"&gt; iteminfo&lt;/SPAN&gt;={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;Each service required a restart for the change to be appear in the map service REST URL.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;Thanks, Monika&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2019 12:54:50 GMT</pubDate>
    <dc:creator>deleted-user-AAb7-r4fhb6g</dc:creator>
    <dc:date>2019-04-10T12:54:50Z</dc:date>
    <item>
      <title>Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359762#M13947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can I change map service "Service Description"&amp;nbsp;with Python? I&amp;nbsp;would like to avoind&amp;nbsp;changing the Service Description in arcgis/manager manually or republishing the map services.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/441531_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the "description" properties with Python&amp;nbsp;via the admin route didn't take any effect what so ever. I assume these properties are not supposed to be linked to each other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/441542_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 11:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359762#M13947</guid>
      <dc:creator>deleted-user-AAb7-r4fhb6g</dc:creator>
      <dc:date>2019-04-09T11:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359763#M13948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Monika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this using the ArcGIS API for Python.&amp;nbsp; Here is an example of what you are trying to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/" title="https://developers.arcgis.com/python/guide/updating-feature-layer-properties/"&gt;Service definitions | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 12:47:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359763#M13948</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2019-04-09T12:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359764#M13949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/8586"&gt;Jake Skinner&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my services are map services published to federated ArcGIS Server. I want to change the properties of the actual&amp;nbsp;map service (e.g. &lt;A href="https://myURL/arcgis/rest/service/folder/mapServiceName"&gt;https://myURL/arcgis/rest/service/folder/mapServiceName&lt;/A&gt;/MapServer), not the properties of the portal item associated with that map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Monika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 15:30:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359764#M13949</guid>
      <dc:creator>deleted-user-AAb7-r4fhb6g</dc:creator>
      <dc:date>2019-04-09T15:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359765#M13950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the description is defined in the original MXD used to author the map service. You may need to update it there are overwrite the existing service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 16:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359765#M13950</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2019-04-09T16:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359766#M13951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/16548"&gt;Jonathan Quinn&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your suggestion. However, I'd like to avoid republishing the map services (either with a script or manually). I was hoping that I could edit (with python) the Service Description only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 18:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359766#M13951</guid>
      <dc:creator>deleted-user-AAb7-r4fhb6g</dc:creator>
      <dc:date>2019-04-09T18:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359767#M13952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made the changes using python - manipulating the json object behind iteminfo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm" style="color: #2989c5; text-decoration: none;"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;https://server:port/arcgis/admin/services/[&amp;lt;folder&amp;gt;]/&amp;lt;serviceName.serviceType&amp;gt;/iteminfo/edit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether the documentation is correct thought. I had to use&amp;nbsp;&lt;SPAN style="font-size: 11.0pt; background: yellow;"&gt;serviceItemInfo&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background: yellow; font-size: 11.0pt; "&gt;&amp;nbsp;instead of&amp;nbsp;&lt;SPAN style="background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #ff0000;"&gt;iteminfo&lt;/SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;https:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #006a00;"&gt;//server:port/arcgis/admin/services/Maps/MyMap.MapServer/iteminfo/edit&lt;/SPAN&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #ff0000;"&gt; iteminfo&lt;/SPAN&gt;={&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;Each service required a restart for the change to be appear in the map service REST URL.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;Thanks, Monika&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2019 12:54:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359767#M13952</guid>
      <dc:creator>deleted-user-AAb7-r4fhb6g</dc:creator>
      <dc:date>2019-04-10T12:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Map Service Properties with Python</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359768#M13953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The documentation on the site (&lt;A class="jivelink10" href="https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm" title="https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm"&gt;https://developers.arcgis.com/rest/enterprise-administration/server/edititeminfo.htm&lt;/A&gt;) is not correct. In your script instead of iteminfo you need to use serviceiteminfo.&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;editSvcURL&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"/arcgis/admin/services/"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;+&amp;nbsp;service&amp;nbsp;+&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"/iteminfo/edit"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;params&amp;nbsp;=&amp;nbsp;urllib.parse.urlencode({&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'token'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;token,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'f'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'json'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'serviceItemInfo'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;:&amp;nbsp;updatedSvcJson})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;httpsConn.request(&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;"POST"&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;editSvcURL,&amp;nbsp;params,&amp;nbsp;headers)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/changing-map-service-properties-with-python/m-p/359768#M13953</guid>
      <dc:creator>adrianakbari</dc:creator>
      <dc:date>2020-09-23T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

