Creating Multiple Standard Control Characteristics
You can create single or multiple Standard Control Characteristic objects using the CreateStandardCCs action. The following example shows how to create multiple Standard Control Characteristic objects. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateStandardCCs HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCs": [
{
"Category": {
"Value": "circularity"
},
"Name": "WRSSTANDARDCCTEST1",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:163170')"
},
{
"Category": {
"Value": "angularity"
},
"Name": "WRSSTANDARDCCTEST2",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:163170')"
}
]
}
You can also assign single-valued or multi-valued Security Labels for single or multiple Standard CCs.
Example: Assigning Single-valued Security Label for Multiple Standard CCs
This example shows you how to create two Standard CCs with single-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateStandardCCs
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCs": [
{
"Name": "SCC 1.3.1",
"Category": {
"Value": "angularity"
},
"SecrecyLabel": "Secret",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:124126')"
},
{
"Name": "SCC 1.3.2",
"Category": {
"Value": "angularity"
},
"SecrecyLabel": "KindOfSecret",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:124126')"
}
]
}
Example: Assigning Multi-valued Security Label for Multiple Standard CCs
This example shows you how to create two Standard CCs with multi-valued security labels. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateStandardCCs
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"StandardCCs": [
{
"Name": "SCC 1.4.1",
"Category": {
"Value": "angularity"
},
"SecrecyLabel": "KindOfSecret,Secret",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:124126')"
},
{
"Name": "SCC 1.4.2",
"Category": {
"Value": "angularity"
},
"SecrecyLabel": "KindOfSecret,Secret",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:124126')"
}
]
}
Was this helpful?