Deleting Multiple Co-produce Objects
You can delete existing single or multiple Co-produce objects by specifying the Co-produce OIDs in the request body.
You must have Delete permissions to the Co-produce object.
* 
To delete Co-produce objects, you must specify only the latest iteration of the latest revision of the Co-produce objects. The request deletes all iterations of the latest revision of the specified Co-produce object.
This example shows you how to delete two Co-produce objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/DeleteCoproduces
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Coproduces": [
{
"ID": "OR:wt.part.WTPart:203744"
},
{
"ID": "OR:wt.part.WTPart:203346"
}
]
}
Was this helpful?