<?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 Uploading an Item via REST API in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/uploading-an-item-via-rest-api/m-p/493532#M24900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using the REST API, I&amp;nbsp;have tried to upload a zipped shapefile that is on my computer to my ArcGIS Online account as an item. I used the URL below:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink1" href="https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem" title="https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem"&gt;https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these are the five parameters that I have used:&lt;/P&gt;&lt;P&gt;"f" : "json"&lt;/P&gt;&lt;P&gt;"dataUrl" :&amp;nbsp;@"D:\Temp\Shape12.zip"&lt;/P&gt;&lt;P&gt;"title" : "Shapeeee"&lt;/P&gt;&lt;P&gt;"type" : "shapefile"&lt;/P&gt;&lt;P&gt;"token" : "[My token Text]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the JSON response below:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "code": 400,&lt;BR /&gt; "messageCode": "CONT_00272",&lt;BR /&gt; "message": "!CONT_00272!",&lt;BR /&gt; "details": []&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions related to REST API:&lt;/P&gt;&lt;P&gt;1-) Which parameters do I need to use if I want to upload my zipped shapefile to the Contents in my ArcGIS Online account? I have looked into the documentation below but couldn't figure out&amp;nbsp;which parameters to use and how.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/add-item.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/add-item.htm"&gt;Add Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2-) The error message is&amp;nbsp;impossible to understand. What does "CONT_00272" mean? Is there a documentation that explains these error codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 15:06:23 GMT</pubDate>
    <dc:creator>AlexanderFischer</dc:creator>
    <dc:date>2019-02-27T15:06:23Z</dc:date>
    <item>
      <title>Uploading an Item via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/uploading-an-item-via-rest-api/m-p/493532#M24900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By using the REST API, I&amp;nbsp;have tried to upload a zipped shapefile that is on my computer to my ArcGIS Online account as an item. I used the URL below:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink1" href="https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem" title="https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem"&gt;https://www.arcgis.com/sharing/rest/content/users/Zeno_10/addItem&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And these are the five parameters that I have used:&lt;/P&gt;&lt;P&gt;"f" : "json"&lt;/P&gt;&lt;P&gt;"dataUrl" :&amp;nbsp;@"D:\Temp\Shape12.zip"&lt;/P&gt;&lt;P&gt;"title" : "Shapeeee"&lt;/P&gt;&lt;P&gt;"type" : "shapefile"&lt;/P&gt;&lt;P&gt;"token" : "[My token Text]"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the JSON response below:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "code": 400,&lt;BR /&gt; "messageCode": "CONT_00272",&lt;BR /&gt; "message": "!CONT_00272!",&lt;BR /&gt; "details": []&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two questions related to REST API:&lt;/P&gt;&lt;P&gt;1-) Which parameters do I need to use if I want to upload my zipped shapefile to the Contents in my ArcGIS Online account? I have looked into the documentation below but couldn't figure out&amp;nbsp;which parameters to use and how.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/add-item.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/add-item.htm"&gt;Add Item—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2-) The error message is&amp;nbsp;impossible to understand. What does "CONT_00272" mean? Is there a documentation that explains these error codes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 15:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/uploading-an-item-via-rest-api/m-p/493532#M24900</guid>
      <dc:creator>AlexanderFischer</dc:creator>
      <dc:date>2019-02-27T15:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading an Item via REST API</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/uploading-an-item-via-rest-api/m-p/1223990#M48457</link>
      <description>&lt;P&gt;I know this is old, but if anyone comes here looking for the solution I have posted it another thread.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/create-portalitem-with-zip-file/m-p/1223555#M11440" target="_self"&gt;Create PortalItem with zip file&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 19:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/uploading-an-item-via-rest-api/m-p/1223990#M48457</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2022-10-20T19:14:19Z</dc:date>
    </item>
  </channel>
</rss>

