Skip to main content
1-Visitor
June 12, 2023
Question

Download Attachment or document for specific Part using PTC windchill API's?

  • June 12, 2023
  • 1 reply
  • 1136 views

How to Download Attachment or document for specific Part using PTC windchill API's?

 

 

 

1 reply

1-Visitor
June 12, 2023

I am using API Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:17517070')?$expand=DescribedBy($expand=DescribedBy)&ptc.search.latestversion=true which response with WTDocument id, I am searching for API that returns content of document in response (bytes) or any other format where I can deserialize the content to file using java?

 

Looking  PDM API libraries like maven repository to use the classes/methods in java? 

17-Peridot
November 8, 2023

Cool, with that URL I was getting a 500.  My version of WRS defaults to v5.  When I made the version explicitly v1, it worked with a 200!

Windchill/servlet/odata/v1/ProdMgmt/Parts('OR:wt.part.WTP...

For me, v4 works too.