Creating Multiple MPMStdCCUsageToProcessPlanLink Objects
You can create single or multiple MPMStdCCUsageToProcessPlanLink objects or their subtypes by specifying an MPMOperationToStandardCCLink OID and single or multiple Standard Procedure OIDs in the request body. To create single or multiple MPMStdCCUsageToProcessPlanLink objects, you must first check out the associated Operation object.
* 
To create an MPMStdCCUsageToProcessPlanLink, you can specify only the latest Standard Procedure object.
Example: Creating Multiple MPMStdCCUsageToProcessPlanLink Objects
This example shows you how to create two MPMStdCCUsageToProcessPlanLink objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateMPMStdCCUsageToProcessPlanLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationToStandardCCLinkId": "OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:261847",
"StandardCCUsageToProcessPlanLink": [
{
"StandardProcedure@odata.bind": "StandardProcedures(OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532)"
},
{
"StandardProcedurOR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532e@odata.bind": "StandardProcedures(OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532)"
}
]
}
Example: Creating an MPMStdCCUsageToProcessPlanLink Subtype
This example shows you how to create an MPMStdCCUsageToProcessPlanLink subtype by specifying the OID of its subtype in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateMPMStdCCUsageToProcessPlanLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationToStandardCCLinkId": "OR:com.ptc.windchill.mpml.pmi.MPMOperationToStandardCCLink:261847",
"StandardCCUsageToProcessPlanLink": [
{
"StandardProcedure@odata.bind": "StandardProcedures(OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532)",
"@odata.type": "#org.rnd.SubTypeMPMStdCCUsageToProcessPlanLink"
},
{
"StandardProcedurOR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532e@odata.bind": "StandardProcedures(OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:236532)"
}
]
}
Was this helpful?