find assosiated drawing REST API
Hello, I was trying to find assosiated draiwn using REST API for a few days for now but didn§t succeed in it
trying every endpoint possible and trying all metadata pathes to get to it.
=== Part Number: 02430068 ===
OID: OR:wt.part.WTPart:1254073630
CADDocument OID: OR:wt.epm.build.EPMBuildRule:1229930576
Endpoint: Drawings($select=Identity,Name,FileName,Version)
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229930576')?$select=Identity&$expand=Drawings($select=Identity,Name,FileName,Version)
Endpoint: EPMReferenceLinks
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229930576')?$select=Identity&$expand=EPMReferenceLinks
Endpoint: Representations
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229930576')?$select=Identity&$expand=Representations
Endpoint: Parts
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229930576')?$select=Identity&$expand=Parts
Endpoint: Versions
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229930576')?$select=Identity&$expand=Versions
=== Part Number: 02430071 ===
OID: OR:wt.part.WTPart:1244208165
CADDocument OID: OR:wt.epm.build.EPMBuildRule:1229929727
Endpoint: Drawings($select=Identity,Name,FileName,Version)
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229929727')?$select=Identity&$expand=Drawings($select=Identity,Name,FileName,Version)
Endpoint: EPMReferenceLinks
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229929727')?$select=Identity&$expand=EPMReferenceLinks
Endpoint: Representations
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229929727')?$select=Identity&$expand=Representations
Endpoint: Parts
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229929727')?$select=Identity&$expand=Parts
Endpoint: Versions
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1229929727')?$select=Identity&$expand=Versions
=== Part Number: 02454964 ===
OID: OR:wt.part.WTPart:1247394409
CADDocument OID: OR:wt.epm.build.EPMBuildRule:1234005375
Endpoint: Drawings($select=Identity,Name,FileName,Version)
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1234005375')?$select=Identity&$expand=Drawings($select=Identity,Name,FileName,Version)
Endpoint: EPMReferenceLinks
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1234005375')?$select=Identity&$expand=EPMReferenceLinks
Endpoint: Representations
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1234005375')?$select=Identity&$expand=Representations
Endpoint: Parts
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1234005375')?$select=Identity&$expand=Parts
Endpoint: Versions
Response: ❌ Failed: 400 Client Error: 400 for url: http://<my server>/Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.build.EPMBuildRule:1234005375')?$select=Identity&$expand=VersionsThis article on help says what i have to do but it never worked fo me.
https://support.ptc.com/help/windchill_rest_services/r2.7/en/#page/windchill_rest_services/example_CADDocumentMgmt_navigate_CADdocument_to_Drawings.html#
GET /Windchill/servlet/odata/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:191730')?$select=Identity&$expand=Drawings($select=Identity,Name,FileName,Version)
simply doesn't work
Help me please😢

