Updating Security Labels for Multiple Process Materials
You can update security label attributes of a single or multiple process materials by specifying the process material OIDs and the security label attributes in the request body.
This example shows you how to update the security label attributes for two process materials specified in the request body. This example shows you how to update the security label attributes on the specified process materials using the unbound action EditProcessMaterialsSecurityLabels which is automatically available in the EDM of the ProcessMaterials entity. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EditProcessMaterialsSecurityLabels
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ProcessMaterials": [
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:205512",
"SLAttribute1": "secret1",
"SLAttribute2": "secret2"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:205536",
"SLAttribute1": "secret3",
"SLAttribute2": "secret4"
}
]
}