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