Updating Security Labels for Engineering Materials
You can update security label attributes of single or multiple engineering material objects by specifying the engineering material OIDs and the security label attributes in the request body.
This example shows you how to update security label attributes on multiple engineering material objects. This example shows you how to update the security label attributes on two engineering material objects specified in the request body using the unbound action EditEngineeringMaterialsSecurityLabels, which is automatically available in the EDM of the EngineeringMaterial entity. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/Sustainability/EditEngineeringMaterialsSecurityLabels
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"EngineeringMaterials": [
{
"ID": "OR:wt.part.WTPart:536532",
"EXPORT_CONTROL": "US_ITAR",
"Secrecy_Label": "KindOfSecret"
},
{
"ID": "OR:wt.part.WTPart:588212",
"EXPORT_CONTROL": "US_ITAR",
"Secrecy_Label": "KindOfSecret"
}
]
}
這是否有幫助?