<?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: How to upload an extension using ExtensionPackageUploader REST Service in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/571615#M31040</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/292185"&gt;@bwinslow24&lt;/a&gt;&amp;nbsp;could you try something like this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST \
  'http://hostname:port/Thingworx/ExtensionPackageUploader?purpose=import' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE' \
  -H 'appKey: &amp;lt;appKey&amp;gt;' \
  -H 'x-thingworx-session: true' \
  -F 'File=@\Downloads\GoogleWidgets_ExtensionPackage.zip'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit :&lt;/P&gt;
&lt;P&gt;Here's how it looked for me in Postman&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14-09-2018 09-03-40.jpg" style="width: 993px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/10396i6CB33B0D199E31A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="14-09-2018 09-03-40.jpg" alt="14-09-2018 09-03-40.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14-09-2018 09-05-01.jpg" style="width: 864px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/10397i6488CC3F6D5D9EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="14-09-2018 09-05-01.jpg" alt="14-09-2018 09-05-01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 07:06:35 GMT</pubDate>
    <dc:creator>supandey</dc:creator>
    <dc:date>2018-09-14T07:06:35Z</dc:date>
    <item>
      <title>How to upload an extension using ExtensionPackageUploader REST Service</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/571567#M31039</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to automate my deployment of Thingworx Extensions. I am trying to use the ExtensionPackageUploader to do this. I can't seem to get it working. I get&amp;nbsp;&lt;EM&gt;Access to the specified resource has been forbidden&amp;nbsp;&lt;/EM&gt;when I try to make the call from postman. I get a bad request error when I try to make the call from a curl command. Here is my curl command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;curl -X POST -H "Accept:application/json" -H "Content-Type:application/json" -H "appKey:secretkey" -H "x-thingworx-session:true" "https://hostname/Thingworx/ExtensionPackageUploader?purpose=import" -F "file=@extension.zip" -k&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am on version 8.0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Brandon&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 20:15:13 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/571567#M31039</guid>
      <dc:creator>bwinslow24</dc:creator>
      <dc:date>2018-09-13T20:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload an extension using ExtensionPackageUploader REST Service</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/571615#M31040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/292185"&gt;@bwinslow24&lt;/a&gt;&amp;nbsp;could you try something like this :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST \
  'http://hostname:port/Thingworx/ExtensionPackageUploader?purpose=import' \
  -H 'Cache-Control: no-cache' \
  -H 'Content-Type: application/json' \
  -H 'X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE' \
  -H 'appKey: &amp;lt;appKey&amp;gt;' \
  -H 'x-thingworx-session: true' \
  -F 'File=@\Downloads\GoogleWidgets_ExtensionPackage.zip'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit :&lt;/P&gt;
&lt;P&gt;Here's how it looked for me in Postman&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14-09-2018 09-03-40.jpg" style="width: 993px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/10396i6CB33B0D199E31A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="14-09-2018 09-03-40.jpg" alt="14-09-2018 09-03-40.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14-09-2018 09-05-01.jpg" style="width: 864px;"&gt;&lt;img src="https://community.ptc.com/t5/image/serverpage/image-id/10397i6488CC3F6D5D9EF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="14-09-2018 09-05-01.jpg" alt="14-09-2018 09-05-01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 07:06:35 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/571615#M31040</guid>
      <dc:creator>supandey</dc:creator>
      <dc:date>2018-09-14T07:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload an extension using ExtensionPackageUploader REST Service</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/573645#M31217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.ptc.com/t5/user/viewprofilepage/user-id/133161"&gt;@supandey&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We were able to get the postman request to work but we are having troubles with the curl command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;curl -X POST '&amp;lt;host&amp;gt;/Thingworx/ExtensionPackageUploader?purpose=import' &lt;BR /&gt;-H 'Accept:application/json' &lt;BR /&gt;-H 'Cache-Control:no-cache' &lt;BR /&gt;-H 'Content-Type:application/json' &lt;BR /&gt;-H 'X-XSRF-TOKEN:TWX-XSRF-TOKEN-VALUE' &lt;BR /&gt;-H 'appKey:&amp;lt;appKey&amp;gt;' &lt;BR /&gt;-H 'x-thingworx-session:true' &lt;BR /&gt;-F "File=@\Users\engineeringworkstation5\workspace\TimeSumResource\build\distributions\TimeSumResource.zip" -k&lt;BR /&gt;&lt;BR /&gt;curl: (26) couldn't open file "\Users\engineeringworkstation5\workspace\TimeSumResource\build\distributions\TimeSumResource.zip"&lt;/PRE&gt;
&lt;P&gt;we have tried to switch to single quotes and forward slashes but still doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: We have to put the -k in our command or we get an SSL certificate issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:49:00 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-upload-an-extension-using-ExtensionPackageUploader-REST/m-p/573645#M31217</guid>
      <dc:creator>bwinslow24</dc:creator>
      <dc:date>2018-09-26T14:49:00Z</dc:date>
    </item>
  </channel>
</rss>

