<?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: Sample PostData to add to a Type:Table object .. in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1340764#M4596</link>
    <description>&lt;P&gt;So I solved this -- My issue was that I was sending the data as a payload package and it needed to be submitted as a parameter on the URL string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 02:08:09 GMT</pubDate>
    <dc:creator>JeffSilberberg</dc:creator>
    <dc:date>2023-10-24T02:08:09Z</dc:date>
    <item>
      <title>Sample PostData to add to a Type:Table object ..</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1333538#M4567</link>
      <description>&lt;P&gt;I am trying to develop an API interface to link two systems.&amp;nbsp; Specifically, I need to be able to QUERY a Table and Append to the table.&amp;nbsp; &amp;nbsp;The Quesry works great and I get back the Table's definition and the data.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;A href="https://services2.arcgis.com/Item_ID/ArcGIS/rest/services/Table_Name/FeatureServer/0/query?&amp;amp;token=" target="_blank"&gt;https://services2.arcgis.com/Item_ID/ArcGIS/rest/services/Table_Name/FeatureServer/0/query?&amp;amp;token=&lt;/A&gt;....."&lt;/P&gt;&lt;P&gt;Postdata =&amp;nbsp;"&amp;amp;f=json&amp;amp;objectIds=" . $featureId . "&amp;amp;outFields=Fielda,Fieldb,FID";&lt;/P&gt;&lt;P&gt;But, I am unable to find an example of what the JSON Postdata needs to be for the addFeatures Post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;A href="https://services2.arcgis.com/Item_ID/ArcGIS/rest/services/Table_Name/FeatureServer/0/addFeatures" target="_blank"&gt;https://services2.arcgis.com/Item_ID/ArcGIS/rest/services/Table_Name/FeatureServer/0/addFeatures&lt;/A&gt;?"&lt;/P&gt;&lt;P&gt;By the way, the query gives me&amp;nbsp;{Root}.features[0].attributes{"Field":data}&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any pointers to the right documentation or some samples would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;TIA..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: The customer has specified that this is a PHP solution using curl and a Python solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 19:15:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1333538#M4567</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2023-09-28T19:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sample PostData to add to a Type:Table object ..</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1337776#M4590</link>
      <description>&lt;P&gt;Bump as I have made some progress but I am still stuck and a quick update --&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting a&amp;nbsp;Response: {"error":{"code":400,"message":"","details":["Invalid parameters"]}}&lt;/P&gt;&lt;P&gt;But I can't determine what Parameters&amp;nbsp; are Invalid / Missing in this post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My post data is --&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"attributes":{"Radio":"364","Alias":"MGS364","Group":"Home _Group","Primary_Group":"Home_Guard","Secondary_Group":""}}&lt;/P&gt;&lt;P&gt;If I paste this into the Data Rest window it does add the data --&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 15:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1337776#M4590</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2023-10-13T15:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sample PostData to add to a Type:Table object ..</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1340764#M4596</link>
      <description>&lt;P&gt;So I solved this -- My issue was that I was sending the data as a payload package and it needed to be submitted as a parameter on the URL string.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 02:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/sample-postdata-to-add-to-a-type-table-object/m-p/1340764#M4596</guid>
      <dc:creator>JeffSilberberg</dc:creator>
      <dc:date>2023-10-24T02:08:09Z</dc:date>
    </item>
  </channel>
</rss>

