Creating Multiple Parts
This example shows you how to create multiple parts. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/CreateParts HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"Name": "test1",
"AssemblyMode":
{"Value": "inseparable"}
,
"DefaultUnit" :
"Value": "kg"}
,
"DefaultTraceCode":
{"Value": "X"}
,
"Source":
{"Value":"buy"}
,
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:302725')"
},
{
"Name": "test2",
"AssemblyMode":
{"Value": "separable"}
,
"DefaultUnit" :
{"Value": "ea"}
,
"DefaultTraceCode":
{"Value": "L"}
,
"Source":
{"Value":"make"}
,
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:302725')"
}
]
}