Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Manufacturing Process Management Domain > Updating Security Labels for Multiple Work Centers
  
Updating Security Labels for Multiple Work Centers
You can update security label attributes of a single or multiple work centers by specifying the work center OIDs and the security label attributes in the request body.
This example shows you how to update the security label attributes for two work centers specified in the request body. This example shows you how to update the security label attributes on the specified work centers using the unbound action EditWorkCentersSecurityLabels which is automatically available in the EDM of the WorkCenters entity. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/EditWorkCentersSecurityLabels
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"WorkCenters": [
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMWorkCenter:205413",
"SLAttribute1": "secret1",
"SLAttribute2": "secret2"
},
{
"ID": "OR:com.ptc.windchill.mpml.resource.MPMWorkCenter:205458",
"SLAttribute1": "secret3",
"SLAttribute2": "secret4"
}
]
}