cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Integrating PDF Upload Functionality with PTC.CADDocumentMgmt API

ozclkonur
13-Aquamarine

Integrating PDF Upload Functionality with PTC.CADDocumentMgmt API

When examining the PTC.CADDocumentMgmt API, I can use the endpoint http://serverName/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:24416953')/Attachments('OR:wt.content.ApplicationData:24416979') or simply http://serverName/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:24416953')/Attachments to view data within Attachments using the GET method. However, my objective is to add a PDF to Attachments, in other words, I want to use the POST method. I can see the GET Attachments, but I couldn't find a way to perform a POST on Attachments. How can I achieve this? There is a GET method for Attachments, but a corresponding POST method is not apparent.

1 REPLY 1
HelesicPetr
22-Sapphire I
(To:ozclkonur)

Hi @ozclkonur 

It is hard to explain why but because it does not exist. 

If you need to save a attachment to CAD Document you need to develop own rest api function.

Here is example, how you can simply create own REST function>

REST API Uto pdate primary content missing

PetrH

 

Announcements


Top Tags