Creating Multiple MPMStandardCCToResourceLinks
To create single or multiple MPMStandardCCToResourceLinks, you must first check out the Standard CC object.
|
To create an MPMStandardCCToResourceLink, you can specify only the latest iteration of a revision of a Standard CC object.
|
Example: Creating Multiple MPMStandardCCToResourceLinks
This example shows you how to create three MPMStandardCCToResourceLinks by specifying the OIDs of all the resources, that is, Skill, Process Material, and Tooling in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('VR:com.ptc.windchill.mpml.pmi.MPMStandardCC:191718')/PTC.MfgProcMgmt.CreateMPMStandardCCToResourceLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCToResourceLink": [
{
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMTooling:190682')"
},
{
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:190695')"
},
{
"Resource@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:190708')"
}
]
}