Reading the Part Structure Along with Path Details
This example shows you how to read the bill of material (BOM) for a product structure.
Use the following POST URI with the request body to retrieve the BOM with expand on occurrences.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:254405')/PTC.ProdMgmt.GetPartStructure?$expand=Components($expand=Part,PartUse,Occurrence) HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{"NavigationCriteria": {"ID": "OR:wt.filter.NavigationCriteria:1005970"}}
Use the following POST URI with the request body to retrieve the BOM without occurrences.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:254405')/PTC.ProdMgmt.GetPartStructure?$expand=Components($expand=Part,PartUse) HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{NavigationCriteria={"ID":"OR:wt.filter.NavigationCriteria:48786407"}}