Creating Multiple MPMOperationToOperatedPartLink Objects
To create single or multiple MPMOperationToOperatedPartLink objects, you must first check out the Operation object.
* 
You cannot create an MPMOperationToOperatedPartLink for an Operation under a Standard Procedure.
Example: Creating an MPMOperationToOperatedPartLink Object
This example shows you how to create an MPMOperationToOperatedPartLink object by specifying the part object in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:275346')/PTC.MfgProcMgmt.CreateOperationToOperatedPartLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Material": [
{
"ID": "OR:wt.part.WTPart:275220",
"Latest": false,
"State": {},
"WorkInProgressState": {}
}
]
}
Example: Creating Multiple MPMOperationToOperatedPartLink Objects
This example shows you how to create two MPMOperationToOperatedPartLink objects by specifying two part objects in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:275346')/PTC.MfgProcMgmt.CreateOperationToOperatedPartLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Material": [
{
"ID": "OR:wt.part.WTPart:275220",
"Latest": false,
"State": {},
"WorkInProgressState": {}
},
{
"ID": "OR:wt.part.WTPart:113372",
"Latest": false,
"State": {},
"WorkInProgressState": {}
}
]
}
Was this helpful?