Removing Co-produce Usage Links
You can remove a single or multiple Co-produce usage links for a single or multiple Co-produce objects only in the independent co-produce mode.
* 
Independent co-produce mode is enabled when the mpml.coproduce.manageIndependentCoproduce property in the wt.properties file is set to true.
You can remove one or more co-produce usage parts by specifying the parent co-produce OIDs and co-produce usage part OIDs in the request body. To remove the co-produce usage parts for a Co-produce object, you must first check out the Co-produce object. You must have Modify permissions to the object.
You can also remove the co-produce usage parts in context of change (change task or change notice). You must first reserve the change object for Edit.
Example: Removing Multiple Co-produce Usage Links for Multiple Co-produce Objects
This example shows you how to remove two co-produce usage parts under each of the two parent Co-produce objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemoveCoproduceUsages
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"CoproduceUsageMembersAssociations": [
{
"Coproduce": {
"ID": "OR:wt.part.WTPart:195193"
},
"UsageMembers": [
{
"ID": "OR:wt.part.WTPart:194357"
},
{
"ID": "OR:wt.part.WTPart:194387"
}
]
},
{
"Coproduce": {
"ID": "OR:wt.part.WTPart:195284"
},
"UsageMembers": [
{
"ID": "OR:wt.part.WTPart:194116"
},
{
"ID": "OR:wt.part.WTPart:194316"
}
]
}
]
}
Example: Removing Multiple Co-produce Usage Links for a Co-produce Object in Context of Change
This example shows you how to remove two co-produce usage parts under a parent Co-produce object in context of change specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/RemoveCoproduceUsages
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ChangeOid": "VR:wt.change2.WTChangeActivity:363673",
"CoproduceUsageMembersAssociations": [
{
"Coproduce": {
"ID": "OR:wt.part.WTPart:195193"
},
"UsageMembers": [
{
"ID": "OR:wt.part.WTPart:194357"
},
{
"ID": "OR:wt.part.WTPart:194387"
}
]
}
]
}
The request removes the two co-produce usage parts and adds the modified parent co-produce object in the Resulting Objects table of the specified change object.