Updating Multiple Parts
This example shows you how to update multiple parts in a single call. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/UpdateParts HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Parts": [
{
"ID":"OR:wt.part.WTPart:2200087",
"AssemblyMode":
{"Value": "inseparable"}
,
"DefaultUnit" :
{"Value": "kg"}
,
"DefaultTraceCode":
{"Value": "L"}
},
{
"ID":"OR:wt.part.WTPart:2200095",
"AssemblyMode":
{"Value": "separable"}
,
"DefaultUnit" :
{"Value": "ea"}
,
"DefaultTraceCode":
{"Value": "S"}
}
]
}