Updating Attributes of MPMStandardProcedureLinks
To update the out of the box (OOTB) attributes of an existing MPMStandardProcedureLink object, you must first check out the Operation Holder object with which it is associated. You can also update modeled and all other types of attributes, including IBAs such as enumerated lists.
If you perform Undo Checkout on the Operation Holder object, the changes are rolled back. When you update the MPMStandardProcedureLink object, the version of the associated Operation Holder will be iterated upon checking it in. To update the MPMStandardProcedureLink 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.
* 
You cannot modify the following attributes: Identifier, CreatedOn, LastModified.
Example: Updating Attributes of an MPMStandardProcedureLink Object
This example shows you how to update the attributes of an MPMStandardProcedureLink object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:731960')/PTC.MfgProcMgmt.UpdateMPMStandardProcedureLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardProcedureLink": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardProcedureLink:301985",
"Lag": [
{
"Precision": 0,
"Unit": "s",
"Value": -1e+100
}
],
"InsertionOperation": "drill",
"ObjectType": "string"
}
]
}
Example: Updating Attributes of Multiple MPMStandardProcedureLink Objects
This example shows you how to update the attributes of two MPMStandardProcedureLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/OperationHolders('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:731960')/PTC.MfgProcMgmt.UpdateMPMStandardProcedureLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardProcedureLink": [
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardProcedureLink:301985",
"Lag": [
{
"Precision": 0,
"Unit": "s",
"Value": -1e+100
}
],
"InsertionOperation": "drill",
"ObjectType": "string"
},
{
"ID": "OR:com.ptc.windchill.mpml.MPMStandardProcedureLink:301986",
"Lag": [
{
"Precision": 0,
"Unit": "s",
"Value": -1e+100
}
],
"InsertionOperation": "new"
}
]
}
Was this helpful?