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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Issue with POST Request via CADDocumentMgmt API

ozclkonur
9-Granite

Issue with POST Request via CADDocumentMgmt API

I am experiencing a problem with the following: https://<WINDCHILL_SERVER>/Windchill/servlet/odata/DocMgmt/Documents('OR:wt.doc.WTDocument:288032')/PTC.DocMgmt.UploadStage1Action. I executed this API in the document, and there is no issue related to DocMgmt. However, the actual thing I need to run is not DocMgmt, but CADDocumentMgmt. I access the data as follows: Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:22567231'). But when I send a POST request to Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:22567231')/PTC.CADDocumentMgmt.UploadStage1Action or UploadStage3Action, I don't get any response. What is the solution to this, and can you help me?

1 ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire I
(To:ozclkonur)

Hi @ozclkonur 

RestAPI CADDocumentMgmt does not contains the UploadStage1Action method

You can not use it that way.

You can't grab a method from DocMgmt and use it in CADDocumentMgmt and hope this method would be there and would work.

 

Check a restAPI documentation https://windchillAdress/Windchill/netmarkets/html/wrs/doc.html

PetrH

View solution in original post

3 REPLIES 3
Fadel
22-Sapphire I
(To:ozclkonur)

Does it also fails if you follow the steps in article https://www.ptc.com/en/support/article/CS390413 

Fede
HelesicPetr
22-Sapphire I
(To:ozclkonur)

Hi @ozclkonur 

RestAPI CADDocumentMgmt does not contains the UploadStage1Action method

You can not use it that way.

You can't grab a method from DocMgmt and use it in CADDocumentMgmt and hope this method would be there and would work.

 

Check a restAPI documentation https://windchillAdress/Windchill/netmarkets/html/wrs/doc.html

PetrH

Hari_Vara
13-Aquamarine
(To:ozclkonur)

Hi,

As clarified by @HelesicPetr , CAD Data Management OData may not be as wide as the Doc Mgmnt domain.

You cannot generally get away from using WGM for CAD data uploads / Check ins.

What's your original Functional Requirement (Not the Technical Solution) ?

 

Best Regards

Hari

 

 

Top Tags