Examples for Tree Items Attachments
A few examples available in the Project-specific domain for tree items attachments are as follows:
Getting Attachments for Tree Items entity 
To get user attachments for a Tree Items entity in Windchill Risk and Reliability, use the following GET URL.
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems<(systemID>)/TreeItems(<treeitemID>)/UserAttachments1
Adding Attachments for Tree Items entity 
To add user attachments for a Tree Items entity in Windchill Risk and Reliability, use the following POST URL.
URL
POST /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems<(systemID>)/TreeItems(<treeitemID>)/UserAttachments1
Request Body
KEY
VALUE
FileName
(type:TEXT)
Name of the file
(type:FILE)
“File location”
Downloading Attachments for Tree Items entity 
To download user attachments for a Tree Items entity in Windchill Risk and Reliability, use the following GET URL.
URL
GET /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems<(systemID>)/TreeItems(<treeitemID>)/UserAttachments1(<attachmentID>)/$value
Deleting Attachments for Tree Items entity 
To delete user attachments for a Tree Items entity in Windchill Risk and Reliability, use the following DELETE URL.
URL
DELETE /WindchillRiskAndReliability12.0-REST/odata/Project_<projectID>/Systems<(systemID>)/TreeItems(<treeitemID>)/UserAttachments1(<attachmentID>)