Deleting Multiple OperationToOperatedPartLinks
To delete existing single or multiple OperationToOperatedPartLinks, you must first check out the Operation object. You can delete the OperationToOperatedPartLink objects by specifying the MPMOperationToOperatedPartLink OIDs in the request body.
* 
To delete an Operation OperationToOperatedPartLink, you can specify only the latest iteration of the latest revision of the Operation object.
This example shows you how to delete two OperationToOperatedPartLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:230001')/PTC.MfgProcMgmt.DeleteOperationToOperatedPartLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToOperatedPartLink:230131"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToOperatedPartLink:230132"
}
]
}
Example: Deleting an OperationToOperatedPartLink in Context of Change
This example shows you how to delete an OperationToOperatedPartLink object in the context of Change by specifying the Change OID in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:230001')/PTC.MfgProcMgmt.DeleteOperationToOperatedPartLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationToOperatedPartLink:230132"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the Operation object as a Resultant object to the specified Change object.
Was this helpful?