Updating Attributes of MPMStandardCCToProcessPlanLinks
To update the attributes of an existing MPMStandardCCToProcessPlanLink object, you must first check out the Standard CC object with which it is associated. You can update modeled attributes and attributes including IBAs such as enumerated lists. You cannot update system attributes.
If you perform Undo Checkout on the Standard CC object, the changes are rolled back. When you update the MPMStandardCCToProcessPlanLink object, the version of the associated Standard CC will be iterated upon checking it in. To update the MPMStandardCCToProcessPlanLink object, you must specify the link OID in the request body.
To update an attribute, you must specify the value with its valid internal name. If a constraint is applied to the attribute, you must specify the internal name of the value specified in the constraint.
If you want to clear the value of an attribute, you can specify its value as null in the request.
If you do not specify an attribute in the request body, then the attribute retains its existing value.
Example: Updating Attributes of an MPMStandardCCToProcessPlanLink Object
This example shows you how to update the attributes of an MPMStandardCCToProcessPlanLink object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('OR:com.ptc.windchill.mpml.pmi.MPMStandardCC:268168')/PTC.MfgProcMgmt.UpdateMPMStandardCCToProcessPlanLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCToProcessPlanLink": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToProcessPlanLink:196066",
"CustomAttribute": "test1"
}
]
}
Example: Updating Attributes of Multiple MPMStandardCCToProcessPlanLink Objects
This example shows you how to update the attributes of two MPMStandardCCToProcessPlanLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/StandardCCs('OR:com.ptc.windchill.mpml.pmi.MPMStandardCC:268168')/PTC.MfgProcMgmt.UpdateMPMStandardCCToProcessPlanLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCToProcessPlanLink": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToProcessPlanLink:196066",
"CustomAttribute": "test1"
},
{
"ID": "OR:com.ptc.windchill.mpml.pmi.MPMStandardCCToProcessPlanLink:196067",
"CustomAttribute": "test2"
}
]
}