Example: Creating Multiple Work Centers
You can create a single or multiple Work Center objects using the CreateWorkCenters action. The following example shows how to create multiple Work Centers. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateWorkCenters HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"WorkCenters": [
{
"Latest": false,
"View": "Design",
"StopEffectivityPropagation": true,
"State": {},
"External": false,
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:163170')",
"Name": "UIWorkCenter",
"Source": "make",
"DefaultUnit": "ea",
"Description": "des",
"Category": {
"Value": "WorkUnit"
},
"WorkInProgressState": {}
},
{
"Latest": false,
"View": "Design",
"StopEffectivityPropagation": false,
"State": {},
"External": false,
"Name": "UIWorkCenter2",
"Source": "make",
"DefaultUnit": "ea",
"Description": "des",
"Category": {
"Value": "WorkUnit"
},
"WorkInProgressState": {}
}
]
}