Updating Security Labels for Multiple Operations
You can update security label attributes of a single or multiple operations by specifying the operation OIDs and the security label attributes in the request body.
This example shows you how to update the security label attributes for two operations specified in the request body. This example shows you how to update the security label attributes on the specified operations using the unbound action EditOperationsSecurityLabels which is automatically available in the EDM of the Operations entity. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EditOperationsSecurityLabels
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Operations": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:200501",
"SLAttribute1": "secret1",
"SLAttribute2": "secret2"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:200105",
"SLAttribute1": "secret3",
"SLAttribute2": "secret4"
}
]
}
Was this helpful?