Deleting Multiple MPMStandardCCToResourceLinks
To delete existing single or multiple MPMStandardCCToResourceLinks, you must first check out the Operation object.
You can delete the MPMStandardCCToResourceLink objects by specifying the link OIDs in the request body.
* 
To delete an MPMStandardCCToResourceLink, you must specify only the latest iteration of a revision of a Standard CC object.
This example shows you how to delete two MPMStandardCCToResourceLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('OR:com.ptc.windchill.mpml.pmi.MPMStandardCC194244')/PTC.MfgProcMgmt.DeleteMPMStandardCCToResourceLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToResourceLink:194266"
},
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToResourceLink:194283"
}
]
}
Example: Deleting an MPMStandardCCToResourceLink in Context of Change
This example shows you how to delete an MPMStandardCCToResourceLink 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/StandardCCs('OR:com.ptc.windchill.mpml.pmi.MPMStandardCC194244')/PTC.MfgProcMgmt.DeleteMPMStandardCCToResourceLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToResourceLink:194286"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the modified Standard CC object as a Resultant object to the specified Change object.
Was this helpful?