<?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 get subfolders via the REST API in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1004394#M9608</link>
    <description>&lt;P&gt;Yeah, I have found there are not a lot of good examples and it can be a challenge to figure out how to do what you need to.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2025 01:52:49 GMT</pubDate>
    <dc:creator>AdamElkins</dc:creator>
    <dc:date>2025-03-14T01:52:49Z</dc:date>
    <item>
      <title>How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/984774#M9016</link>
      <description>&lt;P&gt;Version: Windchill 12.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Case: I need to traverse the folder structure in a Windchill Library via the REST API's&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see there are a few relevant API's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"/v6/DataAdmin/Containers('"+containerId+"')/Folders" provides us with a way to get the root folder, which I believe is pretty much always "/Default", but how do I get the list of folders in that folder, to recursively traverse the folder structure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I see there is&amp;nbsp;"/v6/DataAdmin/Containers('"+containerId+"')/Folders('"+folderId+"')" but that only gives me the information about the folder I already have the ID for and does not tell me what subfolders exist in that folder.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 15:24:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/984774#M9016</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2024-11-20T15:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/985791#M9054</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use the '$expand' param. You need to build the expand param based on the level of the folder structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tm4_0-1732660962012.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/114802iBC13A70BAB30F066/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tm4_0-1732660962012.png" alt="tm4_0-1732660962012.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case the folder path is "/default/MyFolder"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Thiagarajan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 22:45:14 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/985791#M9054</guid>
      <dc:creator>tm-4</dc:creator>
      <dc:date>2024-11-26T22:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/989785#M9211</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/196960"&gt;@AdamElkins&lt;/a&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to see if you got the help you needed.&lt;/P&gt;
&lt;P&gt;If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.&lt;BR /&gt;Of course, if you have more to share on your issue, please pursue the conversation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Anurag&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:11:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/989785#M9211</guid>
      <dc:creator>anursingh</dc:creator>
      <dc:date>2024-12-18T19:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/989787#M9212</link>
      <description>&lt;P&gt;Still looking into it, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 19:17:04 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/989787#M9212</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2024-12-18T19:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992970#M9269</link>
      <description>&lt;P&gt;I am guessing you are right about the expand parameter, but what you suggested is not working for me. I get a URI is malformed error.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:29:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992970#M9269</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2025-01-10T20:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992977#M9270</link>
      <description>&lt;P&gt;In order to get the subfolder in a given folder via the WRS REST API's, include the $expand parameter with a value of "Folders".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamElkins_0-1736542894787.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/116763i65D3371A8BFFA7F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamElkins_0-1736542894787.png" alt="AdamElkins_0-1736542894787.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This causes the API to include a Folders objects as part of the JSON response and fills in each of the subfolders.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AdamElkins_1-1736542942031.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/116764iAEEC410F74EC07CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AdamElkins_1-1736542942031.png" alt="AdamElkins_1-1736542942031.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search the PTC Support site for Windchill REST Services User Guide for more information on the expand parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 21:04:01 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992977#M9270</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2025-01-10T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992978#M9271</link>
      <description>&lt;P&gt;That helped me get to the solution. Thanks&amp;nbsp;&lt;SPAN&gt;Thiagarajan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 21:04:38 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/992978#M9271</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2025-01-10T21:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1003577#M9592</link>
      <description>&lt;P&gt;It isn't obvious at all what needs to be done if you need to create a subfolder in one of these nested folders. The Create Folder json request appears not to work no matter what I try,&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 16:02:55 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1003577#M9592</guid>
      <dc:creator>icelynnin</dc:creator>
      <dc:date>2025-03-11T16:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1004394#M9608</link>
      <description>&lt;P&gt;Yeah, I have found there are not a lot of good examples and it can be a challenge to figure out how to do what you need to.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 01:52:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1004394#M9608</guid>
      <dc:creator>AdamElkins</dc:creator>
      <dc:date>2025-03-14T01:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get subfolders via the REST API</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1051993#M10965</link>
      <description>&lt;P&gt;Any idea had to get the contents of the Subfolders? I get errors if I use the ID of the Subfolder.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2026 21:44:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/How-to-get-subfolders-via-the-REST-API/m-p/1051993#M10965</guid>
      <dc:creator>GB_10984907</dc:creator>
      <dc:date>2026-01-22T21:44:15Z</dc:date>
    </item>
  </channel>
</rss>

