Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC BOM Transformation Domain > Removing Equivalent Links
  
Removing Equivalent Links
You can remove a single or multiple equivalent links for the downstream part iterations specified in the request body.
You can also remove the equivalent links in the context of change (change task or change notice).
Example: Removing Multiple Equivalent Links
This example shows you how to remove two equivalent links. Use the following POST URI with the request body:
URI
POST Windchill/servlet/odata/BomTransformation/RemoveEquivalenceLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EquivalenceLinkAssociations": [
{
"ID": "OR:wt.associativity.EquivalenceLink:560076",
"DownstreamPart@odata.bind": "Parts('OR:wt.part.WTPart:495988')"
},
{
"ID": "OR:wt.associativity.EquivalenceLink:560075",
"DownstreamPart@odata.bind": "Parts('OR:wt.part.WTPart:495988')"
}
]
}
Example: Removing Multiple Equivalent Links in the Context of Change
This example shows you how to remove two equivalent links in the context of change by specifying two downstream part iterations, the corresponding equivalence link that you want to remove for each, and a change task OID in the request body. Use the following POST URI with the request body:
URI
POST Windchill/servlet/odata/BomTransformation/RemoveEquivalenceLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EquivalenceLinkAssociations": [
{
"ID": "OR:wt.associativity.EquivalenceLink:560076",
"DownstreamPart@odata.bind": "Parts('OR:wt.part.WTPart:495988')"
},
{
"ID": "OR:wt.associativity.EquivalenceLink:560075",
"DownstreamPart@odata.bind": "Parts('OR:wt.part.WTPart:495988')"
}
],
"ChangeOid": "VR:wt.change2.WTChangeOrder2:488341"
}
The request adds the iterated downstream parts in the Resulting Objects table of the change object specified in ChangeOid.