Updating Security Labels for CAD Documents
You can update security label attributes of single or multiple CAD Document objects by specifying the CAD Document OIDs and the security label attributes in the request body. You cannot update the security labels on a CAD Document object, if the object is already checked out by another user.
This example shows you how to update security label attributes on multiple CAD Document objects. This example shows you how to update the security label attributes on two CAD Documents specified in the request body using the unbound action EditCADDocumentsSecurityLabels, which is automatically available in the EDM of the CADDocuments entity. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/CADDocumentMgmt/EditCADDocumentsSecurityLabels
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"CADDocuments": [
{
"ID": "OR:wt.epm.EPMDocument:164164",
"EXPORT_CONTROL": "US_ITAR",
"Secrecy_Label": "KindOfSecret",
"SL1": "v1"
},
{
"ID": "OR:wt.epm.EPMDocument:164171",
"EXPORT_CONTROL": "US_ITAR",
"Secrecy_Label": "KindOfSecret",
"SL9": "v1"
}
]
}
¿Fue esto útil?