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