Deleting Multiple MPMDocumentDescribeLink
To delete existing single or multiple MPMDocumentDescribeLink objects, you must first check out the DocumentManageables (Process Plan, Standard Procedure, Operation, or Sequence) object.
You can delete an MPMDocumentDescribeLink by specifying the MPMDocumentDescribeLink OID in the request body.
This example shows you how to delete two MPMDocumentDescribeLink objects for a Process Plan by specifying the Process Plan (DocumentManageables) OID in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DocumentManageables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236071')/PTC.MfgProcMgmt.DeleteMPMDocumentDescribeLink
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMDocumentDescribeLink:236164"
},
{
"ID": "OR:com.ptc.windchill.mpml.MPMDocumentDescribeLink:236165"
}
]
}
Example: Deleting MPMDocumentDescribeLink in Context of Change
This example shows you how to delete an MPMDocumentDescribeLink 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/DocumentManageables('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236071')/PTC.MfgProcMgmt.DeleteMPMDocumentDescribeLink
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.MPMDocumentDescribeLink:236165"
}
]
}
The request deletes the link and adds the modified DocumentManageables object as a Resultant object to the specified Change object.
Was this helpful?