Creating Multiple MPMCompatibilityLinks for a Resource
An MPMCompatibilityLink exists between a resource (Process Material, Skill, Tooling, or Work Center) and the compatible resource associated with it.
You can create single or multiple MPMCompatibilityLinks between a resource and its compatible resources by specifying the OIDs of the compatible resources along with the required attributes in the request body. You can also specify custom attributes such as IBAs including local or global attributes, or object reference attributes.
To add compatible resources to a resource, you must first check out the parent resource object.
This example shows you how to create two MPMCompatibilityLinks for a Skill object specified in the request URI. Use the following POST URI.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:202907')/PTC.MfgProcMgmt.CreateMPMCompatibilityLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"MPMCompatibilityLinks": [
{
"References@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:205009')",
"MoveUsageRate": 1,
"OtherUsageRate": 1,
"ProcessingUsageRate": 1,
"QueueUsageRate": 1,
"SetupUsageRate": 1,
"TeardownUsageRate": 1,
"WaitingUsageRate": 1,
"CompatibilityType": "acceptable"
},
{
"References@odata.bind": "Resources('OR:com.ptc.windchill.mpml.resource.MPMSkill:205349')",
"MoveUsageRate": 2,
"OtherUsageRate": 2,
"ProcessingUsageRate": 2,
"QueueUsageRate": 2,
"SetupUsageRate": 2,
"TeardownUsageRate": 2,
"WaitingUsageRate": 2,
"CompatibilityType": "acceptable"
}
]
}
The request adds two compatible Skill objects along with the attributes to the specified Skill object.