Example: Creating Multiple Tooling Objects
You can create a single or multiple tooling objects using the CreateToolings action. The following example shows how to create multiple tools. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateToolings HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Toolings": [
{
"Category": {
"Value": "Tool"
},
"DimensionX": {},
"View": "Design",
"Name": "WRSTOOLTEST1",
"DimensionZ": {},
"Usage": {
"Value": "Rework"
},
"DimensionY": {},
"Precision": {},
"WorkingVolumeX": {},
"Description": "des",
"Version": "A",
"WorkingVolumeY": {},
"WorkingVolumeZ": {},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:162355')",
"DefaultUnit": {
"Value": "ea",
"Display": "each"
},
"Source": {
"Value": "make",
"Display": "Make"
}
},
{
"Category": {
"Value": "Tool"
},
"DimensionX": {},
"View": "Design",
"Name": "WRSTOOLTEST2",
"DimensionZ": {},
"Usage": {
"Value": "Rework"
},
"DimensionY": {},
"Precision": {},
"WorkingVolumeX": {},
"Description": "des",
"Version": "A",
"WorkingVolumeY": {},
"WorkingVolumeZ": {},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:162355')",
"DefaultUnit": {
"Value": "ea",
"Display": "each"
},
"Source": {
"Value": "make",
"Display": "Make"
}
}
]
}}