Updating an Existing Material Assignment Link
You can update the required attribute BuildStatus and the optional attributes of an existing material assignment link.
Example: Updating a Specific Material Assignment Link
The following example shows you how to update the attributes of an existing material assignment link for the specified engineering material object.
Use the following PATCH URI with the request body.
URI
PATCH /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:560359')/MaterialAssignmentLinks('OR:wt.engineeringmaterial.MaterialAssignment:560392')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"TestSoftAttribute": "test attr1 updated",
"BuildStatus": {
"Value": "do_not_sync"
},
"Mass": {
"Value": 2,
"Unit": "kg",
"Precision": 3
},
"SurfaceArea": {
"Value": 3,
"Unit": "m**2",
"Precision": 3
},
"Volume": {
"Value": 4,
"Unit": "m**3",
"Precision": 3
}
}