Deleting Multiple MPMEPMDocumentDescribeLinks
To delete an existing single or multiple MPMEPMDocumentDescribeLink objects, you must first check out the MPMEPMDocumentManageable object.
You can delete an MPMEPMDocumentDescribeLink by specifying the MPMEPMDocumentDescribeLink OIDs in the request body.
Example:
This example shows you how to delete two MPMEPMDocumentDescribeLink objects for a Process Plan by specifying the Process Plan OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EPMDocumentManageables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:201377')/PTC.MfgProcMgmt.DeleteMPMEPMDocumentDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMEPMDocumentDescribeLink:201674"
},
{
"ID": "OR:com.ptc.windchill.mpml.MPMEPMDocumentDescribeLink:201672"
}
]
}
Example: Deleting MPMEPMDocumentDescribeLink in Context of Change
This example shows you how to delete an MPMEPMDocumentDescribeLink 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/EPMDocumentManageables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:201377')/PTC.MfgProcMgmt.DeleteMPMEPMDocumentDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ChangeOID": "OR:wt.change2.WTChangeOrder2:201869",
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMEPMDocumentDescribeLink:201675"
}
]
}
The request deletes the link and adds the modified EPMDocumentManageables object as a Resultant object to the specified Change object.