<?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 data in portal hosted layer using rest end point in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/update-data-in-portal-hosted-layer-using-rest-end/m-p/837453#M8903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to update gdb data in portal-&amp;gt; hosted feature layer using its item id. I&amp;nbsp;got below rest end point to perform&amp;nbsp;this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://%3Chostname%3E/arcgis/sharing/rest/content/users/%3Cuserid%3E/items/%3Citemid%3E/update" style="color: #2989c5; text-decoration: none;"&gt;https://&amp;lt;hostname&amp;gt;/arcgis/sharing/rest/content/users/&amp;lt;userid&amp;gt;/items/&amp;lt;itemid&amp;gt;/update&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing below code, I am getting an error --- {ERR_INVALID_ARG_TYPE] the first argument must be one of type string or buffer.&lt;/P&gt;&lt;P&gt;can any one please&amp;nbsp;let me know&amp;nbsp;how to resolve this or any change in passing inputs etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;working on nodejs, but any other technology working sample also will help me to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var options =&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;file:fs.createReadstream(&amp;lt;fPath of gdb/zip file&amp;gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;overwrite:true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;f:'json',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;token:&amp;lt;tokenVal&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;filename:&amp;lt;fname&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;request.post( {url:&amp;lt;url&amp;gt;,formData:options}, function(err, response,body){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;------to do--------------&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sandhya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2020 15:20:25 GMT</pubDate>
    <dc:creator>sandhyabaratam</dc:creator>
    <dc:date>2020-10-08T15:20:25Z</dc:date>
    <item>
      <title>update data in portal hosted layer using rest end point</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/update-data-in-portal-hosted-layer-using-rest-end/m-p/837453#M8903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to update gdb data in portal-&amp;gt; hosted feature layer using its item id. I&amp;nbsp;got below rest end point to perform&amp;nbsp;this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://%3Chostname%3E/arcgis/sharing/rest/content/users/%3Cuserid%3E/items/%3Citemid%3E/update" style="color: #2989c5; text-decoration: none;"&gt;https://&amp;lt;hostname&amp;gt;/arcgis/sharing/rest/content/users/&amp;lt;userid&amp;gt;/items/&amp;lt;itemid&amp;gt;/update&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While executing below code, I am getting an error --- {ERR_INVALID_ARG_TYPE] the first argument must be one of type string or buffer.&lt;/P&gt;&lt;P&gt;can any one please&amp;nbsp;let me know&amp;nbsp;how to resolve this or any change in passing inputs etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am&amp;nbsp;working on nodejs, but any other technology working sample also will help me to resolve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var options =&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;file:fs.createReadstream(&amp;lt;fPath of gdb/zip file&amp;gt;),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;overwrite:true,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;f:'json',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;token:&amp;lt;tokenVal&amp;gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;filename:&amp;lt;fname&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;request.post( {url:&amp;lt;url&amp;gt;,formData:options}, function(err, response,body){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;------to do--------------&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sandhya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:20:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/update-data-in-portal-hosted-layer-using-rest-end/m-p/837453#M8903</guid>
      <dc:creator>sandhyabaratam</dc:creator>
      <dc:date>2020-10-08T15:20:25Z</dc:date>
    </item>
  </channel>
</rss>

