<?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_Definition? Or  Add_to_Definition? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323124#M1584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the ArcGIS Rest APIs for a long time and I can't get to figure out what is the correct endpoint? And syntax? for adding a coded value to a domain. I have a list of around 5000 values in a domain and I am building a python script that will add one more code and value to that list, but I can't succeed.&lt;/P&gt;&lt;P&gt;So what I am asking is to use the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r30000022p000000.htm"&gt;&lt;SPAN style="color: windowtext; text-decoration: none;"&gt;Update_Definition&lt;/SPAN&gt;&lt;/A&gt;? Or the Add_to_Definition? And if I can append a code and a value to the list or I need to post the all list? Did anyone have a success in doing so?&lt;/P&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;Roi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jun 2017 12:48:33 GMT</pubDate>
    <dc:creator>roialgavish</dc:creator>
    <dc:date>2017-06-26T12:48:33Z</dc:date>
    <item>
      <title>Update_Definition? Or  Add_to_Definition?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323124#M1584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using the ArcGIS Rest APIs for a long time and I can't get to figure out what is the correct endpoint? And syntax? for adding a coded value to a domain. I have a list of around 5000 values in a domain and I am building a python script that will add one more code and value to that list, but I can't succeed.&lt;/P&gt;&lt;P&gt;So what I am asking is to use the &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/02r3/02r30000022p000000.htm"&gt;&lt;SPAN style="color: windowtext; text-decoration: none;"&gt;Update_Definition&lt;/SPAN&gt;&lt;/A&gt;? Or the Add_to_Definition? And if I can append a code and a value to the list or I need to post the all list? Did anyone have a success in doing so?&lt;/P&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;Roi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 12:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323124#M1584</guid>
      <dc:creator>roialgavish</dc:creator>
      <dc:date>2017-06-26T12:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Update_Definition? Or  Add_to_Definition?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323125#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Roi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you are adding just one more coded domain and value, you may want to do this manually.&amp;nbsp; Take a look at the section &lt;STRONG&gt;Domains and their values&lt;/STRONG&gt; on page 4:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf" title="https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf"&gt;https://blogs.esri.com/esri/arcgis/files/2014/10/How-to-Update-Hosted-Feature-Service-Schemas1.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 13:13:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323125#M1585</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-06-26T13:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Update_Definition? Or  Add_to_Definition?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323126#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In addition to the PDF document &lt;A href="https://community.esri.com/migrated-users/8586"&gt;Jake Skinner&lt;/A&gt;‌ mentioned, you can look at Example 6 on &lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p000000/"&gt;this page&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Add to Definition is for adding new elements, such as a new field, to your feature service.&amp;nbsp; Since you are modifying an existing field, you will want to use the Update Definition option for the field (or all fields) that use the domain.&amp;nbsp; I suggest reading the JSON file, then select the field you wish to update and copy all of its information to a text file.&amp;nbsp; Then add the item to the domain list where you want it displayed.&amp;nbsp; Do not delete any&amp;nbsp;items from the domain list as you will be updating the complete&amp;nbsp;domain structure, and do not delete the field name (see Example 6).&amp;nbsp; Before updating, I suggest using something like jsonlint.com to verify the formatting of your update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The endpoint will vary depending on whether you are using AGOL or your own server/portal.&amp;nbsp; I agree with Jake that you would probably want to do this manually rather than write a script.&amp;nbsp; Also, make a backup of your data before updating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jun 2017 17:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/update-definition-or-add-to-definition/m-p/323126#M1586</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-06-26T17:17:42Z</dc:date>
    </item>
  </channel>
</rss>

