Removing Multiple Primary Co-produce Associations
A primary co-produce association (Primary Co-produce Link) exists between a revision of parent finished part and the main Co-produce object associated with it.
You can remove single or multiple Co-produce objects associated with single or multiple part objects by specifying the part OIDs and the Co-produce OIDs in the request body.
You must have Modify permissions to the Co-produce objects and to the part object for which you want to remove the Co-produce objects.
* 
When you remove a Primary Co-produce Link, only the link between the specified revision of the finished part and the specified Co-produce object is removed.
The Primary Co-produce Links between other revisions of the same finished part and the same Co-produce object are not removed.
The parent finished part is not iterated when the associated Co-produce object is removed.
You can also choose to remove the Co-produce objects in the context of Change (change task or change notice). You must first reserve the Change object for Edit. You must have Modify permissions to the Change object and Manufacturing History objects.
* 
When the preference Track “Made From” History Through Change Notice is set to Yes, you must specify the ChangeOid attribute and its value.
When the preference is set to Yes, Manufacturing History Objects are added in the UI in the Resulting Objects table of the Change object specified in the ChangeOid attribute value.
Example: Removing Co-produce Objects Associated with Multiple Finished Parts
This example shows you how to remove each Co-produce object associated with three different finished part objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemovePrimaryCoproduceAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"PrimaryCoproduceAssociations": [
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211496')"
},
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210635')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211557')"
},
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210635')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211523')"
}
]
}
Example: Removing Co-produce Objects Associated with the Same Finished Part Object
This example shows you how to remove three Co-produce objects each associated with the same finished part object. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemovePrimaryCoproduceAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"PrimaryCoproduceAssociations": [
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211496')"
},
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211667')"
},
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:211543')"
}
]
}
Example: Removing Multiple Primary Co-produce Links with ChangeOid Specified
This example shows you how to remove two Primary Co-produce Links for the same finished part in the context of Change. In this example, the preference Track “Made From” History Through Change Notice is set to Yes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemovePrimaryCoproduceAssociations
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"PrimaryCoproduceAssociations": [
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:212496')"
},
{
"Primary@odata.bind": "Parts('OR:wt.part.WTPart:210578')",
"CoProduce@odata.bind": "Parts('OR:wt.part.WTPart:212667')"
}
],
"ChangeOid": "VR:wt.change2.WTChangeActivity2:2561390"
}
The request adds the parent finished part and the Manufacturing History objects in the Resulting Objects table of the Change object specified in ChangeOid.