Inserting an Operation from Template for an Operation Holder
You can insert an Operation from Template for an Operation Holder (Process Plan, Operation, Sequence, or Standard Procedure) by specifying the Navigation Criteria OID and the OID of the Operation for which you want to insert an Operation from Template, in the request body. To inset an Operation from Template, you must first check out the Operation Holder.
* 
You cannot insert an Operation from Template for a Standard Operation.
Example: Inserting an Operation from Template for a Process Plan
This example shows you how to insert an Operation from Template for a Process Plan object specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:195192')/PTC.MfgProcMgmt.CreateOperationInContextFromTemplate
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"NavigationCriteriaOID": "OR:wt.filter.NavigationCriteria:190589",
"OperationOID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:190809"
}
Similarly, you can insert an Operation from Template for a Standard Procedure by specifying its OID in the request URI.
Example: Inserting an Operation from Template for an Operation
This example shows you how to insert an Operation from Template for an Operation object specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:190919')/PTC.MfgProcMgmt.CreateOperationsInContext
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"NavigationCriteriaOID": "OR:wt.filter.NavigationCriteria:190589",
"OperationOID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:190809"
}
Example: Inserting an Operation from Template for a Sequence
This example shows you how to insert an Operation from Template for a Sequence object specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:190920')/PTC.MfgProcMgmt.CreateOperationsInContext
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"NavigationCriteriaOID": "OR:wt.filter.NavigationCriteria:190589",
"OperationOID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:190809"
}