Deleting Multiple AssociativeToSCCLinks
To delete existing single or multiple AssociativeToSCCLinks, you must first check out the part object. You can delete AssociativeToSCCLinks by specifying the part and AssociativeToSCCLink OIDs in the request body.
This example shows you how to delete two AssociativeToSCCLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/DeleteAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"RoleAObject": {
"ID": "OR:wt.part.WTPart:277890"
},
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:277901"
},
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:277971"
}
]
}
Example: Deleting an AssociativeToSCCLink in Context of Change
This example shows you how to delete an AssociativeToSCCLink 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/DeleteAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"RoleAObject": {
"ID": "OR:wt.part.WTPart:277890"
},
"LinksOIDs": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:277971"
}
],
"ChangeOID": "OR:wt.change2.WTChangeOrder2:1858584"
}
The request deletes the link and adds the modified Part object as a Resultant object to the specified Change object.