Skip to main content
3-Newcomer
June 20, 2023
Question

What is the REST API to get Reference documents on a given WTDocument in Windchill?

  • June 20, 2023
  • 2 replies
  • 3467 views

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.0

What is the REST API to get Reference documents on a given WTDocument in Windchill?

I found a very similar QA on Java API but I want to know how to do it using REST:
https://www.ptc.com/en/support/article/CS183968

2 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
June 22, 2023

Hi @KD_10675014 

In Windchill documentation on your system you have full restAPI documentation.

<server>/Windchill/netmarkets/html/wrs/doc.html

check all document rest functions and you can find lot of useful functions

HelesicPetr_0-1687418591658.png

 

Unfortunately I can not locate any function to retrieve a dependency link.

That means it may not exist. 

 

PetrH

18-Opal
June 26, 2023

Hello KD_10675014,

I'm Charles from PTC Technical Support in Europe, I will provide you assistance on this question. Was the information provided helpful somehow?

KR,

Charles.

3-Newcomer
June 26, 2023

Thank you, Charles. 

So far my problem is not solved. /Documents/PTC.DocMagmt.ReferenceDocument returns all reference documents. But that this not what I am looking for. PetrH also said that. 

I am looking for a REST API endpoint that will return all reference documents for a given WTDocument. 

 

I found a very similar QA on Java API but I want to know how to do it using REST or how to create a custom REST endpoint:
https://www.ptc.com/en/support/article/CS183968

HelesicPetr
22-Sapphire II
22-Sapphire II
June 26, 2023

Hi @KD_10675014 

Start to study this article CS183488 with many resources how to customize rest services.

 

Windchill REST Services User’s Guide point to the customization domains and this can help you.

 

Page 63 Examples for Customizing Domains

 

PetrH