Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Product Management Domain > Updating Raw Material Alternate Made From Links
  
Updating Raw Material Alternate Made From Links
Alternate Made From Link is the link between a Made From Set and its parent Part.
You can update single or multiple Raw Material Alternate Made From Links for a Part object by specifying the link OIDs and their attributes in the request body. You can update both modeled and all other types of attributes associated with the link object. This bounded action is available for Part or its subtype (excluding Manufacturing Information and Resources) objects only when Windchill MPMLink is installed.
You can update the Raw Material Alternate Made From Links for a Part object in context of Change (Change Notice or Change Task), when the Track “Made From” History Through Change Notice preference is set to Yes.
* 
When the Track “Made From” History Through Change Notice preference is set to Yes, you must specify the ChangeOid attribute and its value.
When the preference is set to Yes, Manufacturing History Objects are added in the UI in the Resulting Objects table of the Change object specified in the ChangeOid attribute value. You must have Create permissions to the Manufacturing History object.
Example: Updating Multiple Raw Material Alternate Links for a Part Object in Context of Change
This example shows you how to update two Raw Material Alternate Links for a Part object in context of Change specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:204541')/PTC.ProdMgmt.UpdateRawMaterialAlternateLinks
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"RawMaterialAlternateLinks": [
{
"ID": "OR:wt.mpm.rawmaterial.RMAlternateLink:204264",
"Description": "Description1",
"TestAttribute": "test"
},
{
"ID": "OR:wt.mpm.rawmaterial.RMAlternateLink:204253",
"Description": "Description2"
}
],
"ChangeOid": "OR:wt.change2.WTChangeActivity2:198319"
}