<?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: Issue in creating Thing using RESTAPI in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849662#M60839</link>
    <description>&lt;P&gt;Hey, Thanks everyone for the help. The issue is resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 04:55:10 GMT</pubDate>
    <dc:creator>AS_1307</dc:creator>
    <dc:date>2023-01-17T04:55:10Z</dc:date>
    <item>
      <title>Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848005#M60732</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greeting of the day!&lt;/P&gt;&lt;P&gt;I'm trying to&lt;SPAN&gt;&amp;nbsp;connect to the ThingWorx platform and make REST calls to call Services, update Properties, to make calls to REST API I m using POSTMAN. It's throwing me 400 error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I', attaching all my details here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://localhost:8080/Thingworx/Resources/EntityServices/Services/CreateThing" target="_blank"&gt;http://localhost:8080/Thingworx/Resources/EntityServices/Services/CreateThing&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Used the app key&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Accept: application/json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;content type: application/json&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "name": "SomeTestThing",
    "thingTemplateName": "GenericThing"
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me to resolve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jan 2023 04:21:28 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848005#M60732</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-07T04:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848120#M60736</link>
      <description>&lt;P&gt;It all looks correct.&lt;/P&gt;
&lt;P&gt;Just to double-check, you're setting appKey, Content-Type and Accept in the headers and the json is in the body, right?&lt;/P&gt;
&lt;P&gt;Are you using a custom developed app to send the request or doing it via Postman or plain curl?&lt;/P&gt;
&lt;P&gt;I'd suggest to try first with Postman if you haven't yet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few TS articles / cases, e.g.&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/cs341975" target="_blank"&gt;https://www.ptc.com/en/support/article/cs341975&lt;/A&gt;&amp;nbsp;(issue related to &lt;SPAN&gt;&amp;nbsp;.Net SDK version)&amp;nbsp;&lt;/SPAN&gt;and&amp;nbsp;&lt;A href="https://www.ptc.com/en/support/article/cs343724" target="_blank"&gt;https://www.ptc.com/en/support/article/cs343724&lt;/A&gt;&amp;nbsp;(issue related to incorrectly set headers)&lt;/P&gt;
&lt;P&gt;I'd also check the logs to see the full 400 error response - additional details there can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also it can be just a matter of a typo - I've attached a screenshot (0012.png) with http 400 error and the cause is just an extra comma.&lt;/P&gt;
&lt;P&gt;I've also attached the screenshots (0011.png and 0011a.png) with correct headers and body sections, just for reference.&lt;/P&gt;
&lt;P&gt;There are extra fields in the json body -&amp;nbsp;&lt;SPAN&gt;description and tags, they're optional, having name and thingTemplateName is enough.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 07:31:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848120#M60736</guid>
      <dc:creator>DmitryTsarev</dc:creator>
      <dc:date>2023-01-09T07:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848138#M60739</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response. I'm using&amp;nbsp; POSTMAN to send request. I've tried as per your guidance and attaching the same, but still i'm facing 400 error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 08:35:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848138#M60739</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-09T08:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848152#M60741</link>
      <description>&lt;P&gt;What's in the response body and what's the full status of the 400 error?&lt;/P&gt;
&lt;P&gt;On the screenshot below I intentionally added extra comma to reproduce the 400 error to show where you can check it.&lt;/P&gt;
&lt;P&gt;There also can be extra details in the `ApplicationLog.log` and `ErrorLog.log` in the `Thingworx Storage\logs` folder&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="DmitryTsarev_1-1673257077922.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/73809i8414A2C2138B552F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DmitryTsarev_1-1673257077922.png" alt="DmitryTsarev_1-1673257077922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DmitryTsarev_2-1673257353751.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/73810iF1207C1C411216E2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DmitryTsarev_2-1673257353751.png" alt="DmitryTsarev_2-1673257353751.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 09:45:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848152#M60741</guid>
      <dc:creator>DmitryTsarev</dc:creator>
      <dc:date>2023-01-09T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848640#M60781</link>
      <description>&lt;P&gt;I'm attaching error over here. I saw you shown me 400 error, but i checked in my body no extra comma nothing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 03:34:43 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848640#M60781</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-11T03:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848798#M60790</link>
      <description>&lt;P&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/499705"&gt;@AS_1307&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like you have a mismatch between your port (8080) and your http protocol (https)...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're on port 8080, change your address to http:// instead of https://&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Nick&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:37:27 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848798#M60790</guid>
      <dc:creator>nmilleson</dc:creator>
      <dc:date>2023-01-11T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848899#M60793</link>
      <description>&lt;P&gt;As Nick mentioned, this is due to port / protocol mismatch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this particular error doesn’t seem to be related to the original problem. And on the Snip3.png in your post above you’re correctly using http and port 8080&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 03:47:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848899#M60793</guid>
      <dc:creator>DmitryTsarev</dc:creator>
      <dc:date>2023-01-12T03:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848900#M60794</link>
      <description>&lt;P&gt;Yes, But still it same.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 03:54:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/848900#M60794</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-12T03:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849209#M60816</link>
      <description>&lt;P&gt;To make it easier: Can you share your postman request? You need to add it to a postman collection. On the collection you can rightclick and export to a .json file. So we can import your request and see what is wrong.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 09:38:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849209#M60816</guid>
      <dc:creator>nmutter</dc:creator>
      <dc:date>2023-01-13T09:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849662#M60839</link>
      <description>&lt;P&gt;Hey, Thanks everyone for the help. The issue is resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 04:55:10 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849662#M60839</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-17T04:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849696#M60843</link>
      <description>&lt;P&gt;Happy you got it working!&lt;/P&gt;&lt;P&gt;You marked my post as answer, but I did not provide any input regarding your issue. Can you write what the issue in the end was? Maybe you may also want to mark a different post as solution, which helped you find the issue. So the next person with the same issue has some ideas what may be wrong.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 10:10:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849696#M60843</guid>
      <dc:creator>nmutter</dc:creator>
      <dc:date>2023-01-17T10:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in creating Thing using RESTAPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849888#M60850</link>
      <description>&lt;P&gt;Hi, Sorry it happened by mistake, but the input and articles provided by&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/946"&gt;@DmitryTsarev&lt;/a&gt;&amp;nbsp;really worked out. Thank you all for the useful inputs provided by the team.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;AS&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 03:57:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Issue-in-creating-Thing-using-RESTAPI/m-p/849888#M60850</guid>
      <dc:creator>AS_1307</dc:creator>
      <dc:date>2023-01-18T03:57:16Z</dc:date>
    </item>
  </channel>
</rss>

