Creating MPMStandardCCUsageToResourceLink Objects
You can create MPMStandardCCUsageToResourceLink objects by specifying the OperationToStandardCCLink OID, resource (Process Material, Skill, or Tooling) OIDs, and required and other OOTB attributes in the request body. You can also specify modeled and other types of attributes, including IBAs such as enumerated lists. To create an MPMStandardCCUsageToResourceLink, you must first check out the Operation object.
You can also create MPMStandardCCUsageToResourceLink objects between an OperationToStandardCCLink and multiple parts or resource subtypes.
* 
To create an MPMStandardCCUsageToResourceLink, you can specify only the latest resource object.
This example shows you how to create MPMStandardCCUsageToResourceLink objects between an OperationToStandardCCLink object and different resources such as Process Material, Tooling, and Skill. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateStandardCCUsageToResourceLink
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:262489",
"StdCCUsageToResourceLink": [
{
"allocationNumber": "string",
"Description": "string",
"Quantity": 0,
"UsageRate": 0,
"stepUsageRate1": 0,
"stepUsageRate2": 0,
"stepUsageRate3": 0,
"stepUsageRate4": 0,
"stepUsageRate5": 0,
"stepUsageRate6": 0,
"stepUsageRate7": 0,
"stepUsageRate8": 0,
"scheduled": true,
"Unit": {
"Value": "kg"
},
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMTooling:275158')"
},
{
"allocationNumber": "string",
"Description": "string",
"Quantity": 0,
"UsageRate": 0,
"stepUsageRate1": 0,
"stepUsageRate2": 0,
"stepUsageRate3": 0,
"stepUsageRate4": 0,
"stepUsageRate5": 0,
"stepUsageRate6": 0,
"stepUsageRate7": 0,
"stepUsageRate8": 0,
"scheduled": false,
"Unit": {
"Value": "l"
},
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:270018')"
},
{
"allocationNumber": "string",
"Description": "string",
"Quantity": 0,
"UsageRate": 0,
"stepUsageRate1": 0,
"stepUsageRate2": 0,
"stepUsageRate3": 0,
"stepUsageRate4": 0,
"stepUsageRate5": 0,
"stepUsageRate6": 0,
"stepUsageRate7": 0,
"stepUsageRate8": 0,
"scheduled": false,
"Unit": {
"Value": "kg"
},
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:269765')"
}
]
}