Updating Co-produce Usage Links
You can update single or multiple Co-produce Usage Links for a Co-produce or its subtype object in context of Change (Change Task or Change Notice). You must first reserve the Change object for Edit. The Co-produce Usage Link exists between specific version of Co-produce object and the main part of its child Parts.
You can update single or multiple Co-produce Usage Links for a Co-produce object by specifying the link OIDs and their required and custom attributes in the request body. You can update both modeled and all other types of attributes associated with the link object.
* 
You cannot update the following attributes: Quantity, Unit, Consumption.
Example: Updating Multiple Co-produce Usage Links for a Co-produce Object
This example shows you how to update two Co-produce Usage link objects for a 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/Coproduces('OR:wt.part.WTPart:219939')/PTC.BomTransformation.UpdateCoProduceUsageLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"CoProduceUsageLinks": [
{
"ID": "OR:wt.mpm.coproduce.CoProduceUsageLink:221017",
"LineNumber": 101,
"SoftAttributeBoolean": true,
"ResultedByObjects@odata.bind": [
"ChangeItems('VR:wt.change2.WTChangeActivity2:200613')"
]
},
{
"ID": "OR:wt.mpm.coproduce.CoProduceUsageLink:221018",
"LineNumber": 102,
"SoftAttribute": "test",
"ResultedByObjects@odata.bind": [
"ChangeItems('VR:wt.change2.WTChangeActivity2:200613')"
]
}
]
}
Example: Updating a Co-produce Usage Link for a Co-produce Object
This example shows you how to update a Co-produce Usage link object for a 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/Coproduces('OR:wt.part.WTPart:219939')/PTC.BomTransformation.UpdateCoProduceUsageLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"CoProduceUsageLinks": [
{
"ID": "OR:wt.mpm.coproduce.CoProduceUsageLink:219955",
"LineNumber": 101,
"ResultedByObjects@odata.bind": [
"ChangeItems('VR:wt.change2.WTChangeActivity2:200613')"
]
}
]
}