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