<?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: Is it possible to update coded value domains using Javascript API 3.21? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-update-coded-value-domains-using/m-p/113226#M10560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you could this via the REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To edit a layer within a feature service:&amp;nbsp;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing to note here is that these kinds of calls allow you to redefine everything about a feature service/layer within a feature service, so it's easy to mess something up. &amp;nbsp;I'm not sure what domain JSON looks like exactly, but you should be able to get JSON for a feature layer, edit the domains on it, and post it using the above call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit- I should say that I don't believe there's a JS API wrapper around that REST call, but you can use esri/Request to make the request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 16:53:50 GMT</pubDate>
    <dc:creator>ThomasSolow</dc:creator>
    <dc:date>2017-09-01T16:53:50Z</dc:date>
    <item>
      <title>Is it possible to update coded value domains using Javascript API 3.21?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-update-coded-value-domains-using/m-p/113225#M10559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We use coded value domains for many feature layers. We can modify with an administrator login to ArcGIS Pro or by updating the Hosted Feature Service in ArcGIS online. Is there a way to update the definitions through the Javascript API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 16:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-update-coded-value-domains-using/m-p/113225#M10559</guid>
      <dc:creator>ChrisSeabrooke1</dc:creator>
      <dc:date>2017-09-01T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to update coded value domains using Javascript API 3.21?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-update-coded-value-domains-using/m-p/113226#M10560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe you could this via the REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To edit a layer within a feature service:&amp;nbsp;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p000000/"&gt;ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing to note here is that these kinds of calls allow you to redefine everything about a feature service/layer within a feature service, so it's easy to mess something up. &amp;nbsp;I'm not sure what domain JSON looks like exactly, but you should be able to get JSON for a feature layer, edit the domains on it, and post it using the above call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit- I should say that I don't believe there's a JS API wrapper around that REST call, but you can use esri/Request to make the request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 16:53:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-it-possible-to-update-coded-value-domains-using/m-p/113226#M10560</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-09-01T16:53:50Z</dc:date>
    </item>
  </channel>
</rss>

