Updating Attributes of AssociativeToSCCLinks
To update the attributes of an existing AssociativeToSCCLink between a part and Standard Control Characteristic (SCC), you must first check out the part object with which it is associated. You can update modeled and all other types of attributes, including IBAs such as enumerated lists.
If you perform Undo Checkout on the part object, the changes are rolled back. When you update the AssociativeToSCCLink object, the version of the associated part will be iterated upon checking it in. To update the AssociativeToSCCLink object, you must specify the part and the link OIDs 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: UniqueIdentifier, Last Modified, Created On.
Example: Updating Attributes of an AssociativeToSCCLink Object
This example shows you how to update the attributes of an AssociativeToSCCLink object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/UpdateAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"associativeOID": {
"ID": "OR:wt.part.WTPart:212648"
},
"associativeToStandardCCLinks": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:212665",
"CustomBoolean": true
}
]
}
Example: Updating Attributes of Multiple AssociativeToSCCLink Objects
This example shows you how to update the attributes of two AssociativeToSCCLink objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/UpdateAssociativeToSCCLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"associativeOID": {
"ID": "OR:wt.part.WTPart:212648"
},
"associativeToStandardCCLinks": [
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:212665",
"CustomBoolean": true
},
{
"ID": "OR:com.ptc.windchill.mpml.pmi.AssociativeToSCCLink:214409",
"CustomBoolean": false
}
]
}
Was this helpful?