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