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
Per the post, do you know if its possible to retrieve the thumbnail image via the Odata REST API? Thank you in advance!
Solved! Go to Solution.
Yes its possible
http://server.ch/Windchill/servlet/odata/v5/ProdMgmt/Parts('OR%3Awt.part.WTPart%3A134051')/Representations?$count=false
The result will contains the 2d image information with the download link:
"TwoDThumbnailURL": {
"URL": "http://server.ch/Windchill/servlet/WindchillAuthGW/wt.fv.master.RedirectDownload/redirectDownload/1190782_prt.jpg?u8&redirect=true&ContentHolder=wt.viewmarkup.DerivedImage%3A136870&HttpOperationItem=wt.content.ApplicationData%3A136897&forceDownload=true",
"Label": "1190782_prt.jpg",
"FileSize": 4593,
"MimeType": "image/jpeg",
"Format": "JPEG Image",
"ID": "OR:wt.content.ApplicationData:136897",
"FileName": "1190782_prt.jpg",
"LastModified": "2022-05-10T21:15:57+02:00",
"CreatedOn": "2022-05-10T21:15:57+02:00",
"Description": null,
"Comments": null
}
Yes its possible
http://server.ch/Windchill/servlet/odata/v5/ProdMgmt/Parts('OR%3Awt.part.WTPart%3A134051')/Representations?$count=false
The result will contains the 2d image information with the download link:
"TwoDThumbnailURL": {
"URL": "http://server.ch/Windchill/servlet/WindchillAuthGW/wt.fv.master.RedirectDownload/redirectDownload/1190782_prt.jpg?u8&redirect=true&ContentHolder=wt.viewmarkup.DerivedImage%3A136870&HttpOperationItem=wt.content.ApplicationData%3A136897&forceDownload=true",
"Label": "1190782_prt.jpg",
"FileSize": 4593,
"MimeType": "image/jpeg",
"Format": "JPEG Image",
"ID": "OR:wt.content.ApplicationData:136897",
"FileName": "1190782_prt.jpg",
"LastModified": "2022-05-10T21:15:57+02:00",
"CreatedOn": "2022-05-10T21:15:57+02:00",
"Description": null,
"Comments": null
}
