<?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 Update Hosted Feature Layer - Update Definition has no editable JSON in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610617#M2963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to edit one of our organization's hosted feature layers through the Rest API. We have a hosted layer that needs to be updated to better match a new version of one of our Survey123 forms - specifically with the addition of several coded domain values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using this blog for guidance:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf?rmedium=bulk-arcgis-files&amp;amp;rsource=http://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf"&gt;https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf?rmedium=bulk-arcgis-files&amp;amp;rsource=http://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, within Update Definition, the input (where the editable JSON should appear) is totally blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501430_ou.png" /&gt;&lt;/P&gt;&lt;P&gt;I also tried copying the&amp;nbsp;JSON at the front of the rest URL, edited it, verified the JSON, but when I tried to paste it into the Input here with my changes and click 'updateDefinition' I received this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501455_utd.png" /&gt;&lt;/P&gt;&lt;P&gt;For my last attempt I used AGO-Assistant to view the layer's JSON and attempted to replace it with&amp;nbsp;the updated JSON. But the changes did not register. The JSON presented in AGO was also shorter and missing much of the information from the JSON at the rest URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our organization is currently using ArcGIS Portal and ArcGIS Enterprise, not AGOL, so I'm not sure if that could be a factor. At this point the simplest solution for me would be to make a local copy of the feature layer and overwrite it, but its being used in so many webmaps and customizations so that is really a last resort option for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts as to why this could be happening? Workarounds?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2020 22:39:48 GMT</pubDate>
    <dc:creator>Henry</dc:creator>
    <dc:date>2020-07-27T22:39:48Z</dc:date>
    <item>
      <title>Update Hosted Feature Layer - Update Definition has no editable JSON</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610617#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am attempting to edit one of our organization's hosted feature layers through the Rest API. We have a hosted layer that needs to be updated to better match a new version of one of our Survey123 forms - specifically with the addition of several coded domain values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was using this blog for guidance:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf?rmedium=bulk-arcgis-files&amp;amp;rsource=http://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf"&gt;https://www.esri.com/arcgis-blog/wp-content/uploads/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf?rmedium=bulk-arcgis-files&amp;amp;rsource=http://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, within Update Definition, the input (where the editable JSON should appear) is totally blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/501430_ou.png" /&gt;&lt;/P&gt;&lt;P&gt;I also tried copying the&amp;nbsp;JSON at the front of the rest URL, edited it, verified the JSON, but when I tried to paste it into the Input here with my changes and click 'updateDefinition' I received this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/501455_utd.png" /&gt;&lt;/P&gt;&lt;P&gt;For my last attempt I used AGO-Assistant to view the layer's JSON and attempted to replace it with&amp;nbsp;the updated JSON. But the changes did not register. The JSON presented in AGO was also shorter and missing much of the information from the JSON at the rest URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our organization is currently using ArcGIS Portal and ArcGIS Enterprise, not AGOL, so I'm not sure if that could be a factor. At this point the simplest solution for me would be to make a local copy of the feature layer and overwrite it, but its being used in so many webmaps and customizations so that is really a last resort option for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts as to why this could be happening? Workarounds?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 22:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610617#M2963</guid>
      <dc:creator>Henry</dc:creator>
      <dc:date>2020-07-27T22:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update Hosted Feature Layer - Update Definition has no editable JSON</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610618#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my experience (only with AGOL), I only update sections.&amp;nbsp; In your case since you want to add additional domains, the section would be the fields section, and it would only contain the fields using the domain being changed.&amp;nbsp; This way, the things that cannot be changed, such as "allowGeometryUpdates", are not included.&amp;nbsp; I also do not include the "drawingInfo" section.&amp;nbsp; Since you are working with domains, the "types" section may need editing depending on the set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, to add the color Blue to a domain list, start with the comma on line 24 and add through line 28.&amp;nbsp; Then check it with something like &lt;A href="https://jsonlint.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;jsonlint &lt;/A&gt;for valid json before updating.&amp;nbsp;&amp;nbsp; Also, experiment on a backup of the service first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;{
	"fields": [{
		"name": "Color",
		"type": "esriFieldTypeString",
		"alias": "Point Color",
		"sqlType": "sqlTypeOther",
		"length": 1,
		"nullable": false,
		"editable": true,
		"domain": {
			"type": "codedValue",
			"name": "Colors",
			"codedValues": [{
					"name": "Red",
					"code": "1"
				},
				{
					"name": "Yellow",
					"code": "2"
				},
				{
					"name": "Green",
					"code": "3"
				},
				{
					"name": "Blue",
					"code": "4"
				}
			]
		},
		"defaultValue": null
	}]
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610618#M2964</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-12T02:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Update Hosted Feature Layer - Update Definition has no editable JSON</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610619#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was a little finicky but I was able to update the JSON with the new coded domains of the&amp;nbsp;Hosted Feature Layer that I wanted. It showed up across my other webmaps and the associated Survey records the new values appropriately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strange that for many people using ArcGIS Enterprise the JSON does not seem to appear. I've read other comments on that issue. Hopefully it can be addressed in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2020 19:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-hosted-feature-layer-update-definition-has/m-p/610619#M2965</guid>
      <dc:creator>Henry</dc:creator>
      <dc:date>2020-08-03T19:58:40Z</dc:date>
    </item>
  </channel>
</rss>

