Deleting Multiple MPMStdCCUsageToResourceLinks
To delete existing single or multiple MPMStdCCUsageToResourceLink, you must first check out the Operation object.
You can delete the MPMStdCCUsageToResourceLink objects by specifying the MPMStdCCUsageToResourceLink OIDs in the request body.
* 
To delete an MPMStdCCUsageToResourceLink, you must specify only the latest iteration of a revision of an Operation object.
This example shows you how to delete two MPMStdCCUsageToResourceLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteMPMStdCCUsageToResourceLinks
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.MPMStdCCUsageToResourceLink:212101"
},
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStdCCUsageToResourceLink:212102"
}
]
}
Example: Deleting MPMStdCCUsageToResourceLink in Context of Change
This example shows you how to delete an MPMStdCCUsageToResourceLink 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/DeleteMPMStdCCUsageToResourceLinks
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.MPMStdCCUsageToResourceLink:212101"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the modified Operation object as a Resultant object to the specified Change object.
Was this helpful?