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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Is there a way to retrieve the "names" of respective elements object id with REST API available in windchill 11.0?

ag-2
2-Explorer

Is there a way to retrieve the "names" of respective elements object id with REST API available in windchill 11.0?

We are  trying to explore the methodology to retrieve data from Swagger UI (REST API).

Please help us.

2 REPLIES 2
BineshKumar1
13-Aquamarine
(To:ag-2)

Say you want to get all the parts that starts with number 000000006, you can make a rest api call like below. In the select you can select the attributes of the element which you want to retrieve.

http://ourserver/Windchill/servlet/rest/objects?%24select=name%2Cstate%2Cchild&typeId=wt.part.WTPart&%24filter=startswith(number%2C%20%27000000006%27)

We will get a JSON response like this.

jsonreponse.jpg

physna
4-Participant
(To:BineshKumar1)

Hello. This post helped me a lot. I was wondering if you know of a place that has a list of the property names that we can query? Specifically, I'm looking for the filename (including extension).

 

Thank you!

Announcements


Top Tags