Example: Creating Multiple Process Materials
The following example shows how to create multiple process materials. Use the following POST request with the request body:
URI
POST /Windchill/servlet/odata/MfgProcMgmt/CreateProcessMaterials HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ProcessMaterials": [
{
"Name": "ProcessMaterialTest001",
"Category": {
"Value": "Coolant"
},
"Description": "Description field test",
"View": "Design",
"Folder@odata.bind": "Folders('OR:wt.folder.SubFolder:197295')",
"DefaultUnit": {
"Value": "ea"
},
"Source": {
"Value": "make"
},
"Usage": {
"Value": "AllUsage"
}
},
{
"Name": "ProcessMaterialTest002",
"Category": {
"Value": "Coolant"
},
"Description": "Description field test",
"View": "Design",
"Folder@odata.bind": "Folders('OR:wt.folder.SubFolder:197295')",
"DefaultUnit": {
"Value": "ea"
},
"Source": {
"Value": "make"
},
"Usage": {
"Value": "AllUsage"
}
}
]
}