Assigning PartTags on an Operation
You can create PartTags by specifying the MPMOperationUsageLink, Process Plan, and PartTagLink (Part) OIDs in the request body.
This example shows you how to create two PartTags. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreatePartTags
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"taggableOID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperationUsageLink:205755",
"relatedProcessPlanOID": "OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:205721",
"taggerOIDs": [
{
"ID": "OR:wt.part.WTPart:205834"
},
{
"ID": "OR:wt.part.WTPart:205672"
}
]
}
Similarly, you can create PartTags by specifying the OID of an MPMOperationUsageLink with Standard Operation and the Process Plan and PartTagLink (Part) OIDs in the request body.