Deleting Engineering Materials
You can delete an engineering material object by specifying the object in the request URI.
Example: Deleting a Specific Engineering Material Object
The following example shows you how to delete an engineering material object specified in the request URI.
Use the following DELETE request.
URI
DELETE /Windchill/servlet/odata/Sustainability/EngineeringMaterials('OR:wt.part.WTPart:536532')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
You can delete one or more engineering material objects in a single call.
Example: Deleting Multiple Engineering Material Objects
The following example shows you how to delete two engineering material objects specified in the request body.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/Sustainability/DeleteEngineeringMaterials
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EngineeringMaterials": [
{
"ID": "OR:wt.part.WTPart:623577"
},
{
"ID": "OR:wt.part.WTPart:623587"
}
]
}
The request deletes the specified objects.