Deleting Multiple MPMPartToProcessPlanLinks
You can delete single or multiple MPMPartToProcessPlanLink objects by specifying the link OIDs in the request body.
|
To delete an MPMPartToProcessPlanLink, you must specify only the latest iteration of a revision of a part object.
|
This example shows you how to delete two MPMPartToProcessPlanLink objects specified in the request body. Use the following POST URI with the request body.
URI
Post /Windchill/servlet/odata/MfgProcMgmt/Materials('OR:wt.part.WTPart:390602')/PTC.MfgProcMgmt.DeleteMPMPartToProcessPlanLinks
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.MPMPartToProcessPlanLink:390643"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.MPMPartToProcessPlanLink:390636"
}
]
}
Example: Deleting an MPMPartToProcessPlanLink in Context of Change
This example shows you how to delete an MPMPartToProcessPlanLink 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/Materials('OR:wt.part.WTPart:390602')/PTC.MfgProcMgmt.DeleteMPMPartToProcessPlanLinks
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.MPMPartToProcessPlanLink:1858662"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the Part object as a Resultant object to the specified Change object.