Deleting Multiple MPMStandardCCUsageToDDLinks
To delete existing single or multiple MPMStandardCCUsageToDDLink objects, you must first check out the Operation object. You can delete an MPMStandardCCUsageToDDLink by specifying the MPMOperationToStandardCCLink and MPMStandardCCUsageToDDLink OIDs in the request body.
* 
To delete an MPMStandardCCUsageToDDLink, you must specify only the latest iteration of a revision of an Operation object.
This example shows you how to delete two MPMStandardCCUsageToDDLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteMPMStandardCCUsageToDDLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardCCUsageToDDLink:195260"
},
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardCCUsageToDDLink:195266"
}
],
"RoleAObject": {
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:195210"
}
}
Example: Deleting MPMStandardCCUsageToDDLink in Context of Change
This example shows you how to delete an MPMStandardCCUsageToDDLink object in context of a Change object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteMPMStandardCCUsageToDDLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardCCUsageToDDLink:195260"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:201869",
"RoleAObject": {
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:195210"
}
}
The request deletes the link and adds the modified Operation object as a Resultant object to the specified Change object.
Was this helpful?