<?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: Rest API: POST rest/item no longer available in 2.0 Husky in Codebeamer</title>
    <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/1034840#M979</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am working with Code beamer version 22.2.1.0 and trying to upload an image (PNG/JPG) as an attachment to a tracker item using the REST API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can list attachments successfully using:&lt;BR /&gt;GET /cb/rest/v3/items/{item Id}/attachments&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I try to upload using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST /cb/rest/v3/items/{ item_Id}/attachments&lt;BR /&gt;with multipart/form-data, I either receive 400/415 errors&amp;nbsp; or the request succeeds but no file appears under the "Attachments" tab in the UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example I tried in Python:&lt;BR /&gt;```python&lt;BR /&gt;with open("test.png", "rb") as f:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files = { "attachments": ("test.png", f, "image/png") }&lt;BR /&gt;&amp;nbsp; &amp;nbsp;resp = session.post(f"{base_url}/v3/items/{item_id}/attachments", files=files)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Sep 2025 08:45:44 GMT</pubDate>
    <dc:creator>SS_14152782</dc:creator>
    <dc:date>2025-09-19T08:45:44Z</dc:date>
    <item>
      <title>Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969821#M334</link>
      <description>&lt;P&gt;It seems that with 2.0.0.5 version the posting of items no longer works with the REST API?&lt;/P&gt;&lt;P&gt;We know that the future is with Swagger but it was never announced that REST calls would be disabled. Is this documented somewhere which REST calls are dismantled with which version?&lt;/P&gt;&lt;P&gt;Specific call that does not work anymore:&lt;/P&gt;&lt;P&gt;POST &amp;lt;baseURL&amp;gt;/cb/rest/item&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;405: The&amp;nbsp;page&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;/cb/rest/item&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;does&amp;nbsp;not&amp;nbsp;exist.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:26:54 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969821#M334</guid>
      <dc:creator>Nico_M</dc:creator>
      <dc:date>2024-09-05T14:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969959#M335</link>
      <description>&lt;P&gt;Edited - added bug ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/848202"&gt;@Nico_M&lt;/a&gt; , per my tests, it appears the usage of the ending forward slash &lt;STRONG&gt;/&lt;/STRONG&gt; is required on this version. To be more specific, I reproduced the HTTP 405 error with &lt;STRONG&gt;POST rest/item&lt;/STRONG&gt; but it worked with &lt;STRONG&gt;POST rest/item/&lt;/STRONG&gt;, here is a screenshot from my test via Postman:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfonso_c_0-1725602196098.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/110093i62CE60B63E48DE6E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alfonso_c_0-1725602196098.png" alt="alfonso_c_0-1725602196098.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if that works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Side notes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rest API V1 is a legacy integration but still available on Codebeamer, I documented some common Q&amp;amp;A at the page &lt;STRONG&gt;&lt;A href="https://www.ptc.com/en/support/article/CS402673" target="_blank" rel="noopener"&gt;REST API (v1) support in Codebeamer&lt;/A&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;This is currently being handled as a bug under Codebeamer SPR &lt;EM&gt;&lt;STRONG&gt;13644853 - A REST API Endpoint needs now a „/“ at the end, which was not necessary before&lt;/STRONG&gt;&lt;/EM&gt;, future versions should no longer require the forward slash to be added at the end.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 06:19:46 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969959#M335</guid>
      <dc:creator>alfonso_c</dc:creator>
      <dc:date>2024-09-06T06:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969992#M337</link>
      <description>&lt;P&gt;Dear Alfonso,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply, this works for us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you already tell me in which cB version/SP this will be patched?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nico&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 07:58:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/969992#M337</guid>
      <dc:creator>Nico_M</dc:creator>
      <dc:date>2024-09-06T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/970000#M338</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/848202"&gt;@Nico_M&lt;/a&gt; , as I can see, the fix is candidate for release on 2.0.0.6,&amp;nbsp; 2.1.0.4, 2.2.0.2. Please note this is just an unconfirmed estimation, it is highly tentative and may be subject to change. To know if the fix is eventually present, you may search for #13644853 in the Release Notes once the new version is released.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 08:26:59 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/970000#M338</guid>
      <dc:creator>alfonso_c</dc:creator>
      <dc:date>2024-09-06T08:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/970168#M341</link>
      <description>&lt;P&gt;Note that "swagger" is not a different API ... it just a way of describing a REST API, and there are tools that use the swagger description to simplify experimentation with the API.&amp;nbsp; &amp;nbsp;So swagger does not replace the REST API, but just describes the REST API.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:29:41 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/970168#M341</guid>
      <dc:creator>GeoffreyClemm</dc:creator>
      <dc:date>2024-09-06T19:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/973946#M382</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Also possible solution is, a&lt;/SPAN&gt;&lt;SPAN&gt;dding this rule into the&amp;nbsp;cb/web/WEB-INF/urlrewrite.xml and restart the Codebeamer&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;	&amp;lt;rule&amp;gt;
		&amp;lt;from&amp;gt;^/rest/(.*)(?&amp;amp;#60;!/)(?&amp;amp;#60;!\.spr)$&amp;lt;/from&amp;gt;
		&amp;lt;to&amp;gt;/rest/$1/&amp;lt;/to&amp;gt;
	&amp;lt;/rule&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 12:08:16 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/973946#M382</guid>
      <dc:creator>IM_10356021</dc:creator>
      <dc:date>2024-09-26T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API: POST rest/item no longer available in 2.0 Husky</title>
      <link>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/1034840#M979</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Team,&lt;BR /&gt;&lt;BR /&gt;I am working with Code beamer version 22.2.1.0 and trying to upload an image (PNG/JPG) as an attachment to a tracker item using the REST API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can list attachments successfully using:&lt;BR /&gt;GET /cb/rest/v3/items/{item Id}/attachments&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I try to upload using:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST /cb/rest/v3/items/{ item_Id}/attachments&lt;BR /&gt;with multipart/form-data, I either receive 400/415 errors&amp;nbsp; or the request succeeds but no file appears under the "Attachments" tab in the UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example I tried in Python:&lt;BR /&gt;```python&lt;BR /&gt;with open("test.png", "rb") as f:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;files = { "attachments": ("test.png", f, "image/png") }&lt;BR /&gt;&amp;nbsp; &amp;nbsp;resp = session.post(f"{base_url}/v3/items/{item_id}/attachments", files=files)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2025 08:45:44 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Codebeamer/Rest-API-POST-rest-item-no-longer-available-in-2-0-Husky/m-p/1034840#M979</guid>
      <dc:creator>SS_14152782</dc:creator>
      <dc:date>2025-09-19T08:45:44Z</dc:date>
    </item>
  </channel>
</rss>

