Assigning Security Labels for a Standard Operation
You can create multiple single-valued or multi-valued Security Labels for a Standard Operation.
Example: Assigning Single-valued Security Labels
This example shows you how to assign multiple single-valued security labels for a Standard Operation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Operation 1.1.1",
"ERPSubOperationPublished": false,
"Category": {
"Value": "production"
},
"Scheduled": false,
"Unit": "ea",
"SubOperationInWorkInstruction": false,
"DefaultTraceCode": "L",
"Quantity": 1,
"SubOperationTimeIncluded": false,
"InspectionNeeded": false,
"OutSourced": false,
"@odata.type": "#PTC.MfgProcMgmt.MPMStandardOperation",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC",
"EXPORTCONTROL1": "LNC1"
}
Example: Assigning Multi-valued Security Labels
This example shows you how to assign multiple multi-valued security labels for a Standard Operation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "Operation 1.2.1",
"ERPSubOperationPublished": false,
"Category": {
"Value": "production"
},
"Scheduled": false,
"Unit": "ea",
"SubOperationInWorkInstruction": false,
"DefaultTraceCode": "L",
"Quantity": 1,
"SubOperationTimeIncluded": false,
"InspectionNeeded": false,
"OutSourced": false,
"@odata.type": "#PTC.MfgProcMgmt.MPMStandardOperation",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:113009')",
"EXPORTCONTROL": "LNC,CUSTOM",
"EXPORTCONTROL1": "LNC1,CUSTOM1"
}