Deleting Multiple Described By Document Links for a Resource
To delete existing single or multiple associations between a resource (Process Material, Skill, Tooling, or Work Center) and Described By Documents, you must first check out the resource object.
You can delete single or multiple associations between a resource and Described By Documents by specifying the associated WTPartDescribeLink OIDs in the request body.
The following example shows how to delete two WTPartDescribeLink objects for a Skill object specified in the request URI. Use the following POST URI with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:202907')/PTC.MfgProcMgmt.DeleteResourceDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:wt.part.WTPartDescribeLink:204751"
},
{
"ID": "OR:wt.part.WTPartDescribeLink:204841"
}
]
}
Example: Deleting WTPartDescribeLink in Context of Change
This example shows you how to delete a WTPartDescribeLink for a specific Skill 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/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:202907')/PTC.MfgProcMgmt.DeleteResourceDescribeLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"LinksOIDs": [
{
"ID": "OR:wt.part.WTPartDescribeLink:204243"
}
],
"ChangeOID": "VR:wt.change2.WTChangeActivity2:204285"
}
The request deletes the link and adds the modified resource (here, Skill) as a Resultant object to the specified Change object.
Was this helpful?