Deleting Attachments for a Part
You can delete the following attachments for a part:
• Local file
• Link or URL
• External storage
The following example shows how to delete an attachment for a part. Use the following DELETE URI:
URI
DELETE /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')/Attachments('OR:wt.content.ApplicationData:280405')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The following example shows how to delete a URL attachment for a part. Use the following DELETE URI:
URI
DELETE /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')/Attachments('OR:wt.content.URLData:280598')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
The following example shows how to delete an external storage attachment for a part. Use the following DELETE URI:
URI
DELETE /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:280403')/Attachments('OR:wt.content.ExternalStoredData:280679')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>