Updating Identity of Process Material
To update the identity of a Process Material object or its subtype, you can update the attributes, Name and Number.
Example: Updating Identity of a Process Material Object
This example shows you how to update all identity attributes of a Process Material object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeProcessMaterialIdentity
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"identities": [
{
"objectID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:297139",
"Name": "newNameProcessMaterial",
"Number": "123"
}
]
}
Example: Updating Identity of Multiple Process Material Objects
This example shows you how to update all identity attributes of each of the two Process Material objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeProcessMaterialIdentity
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"identities": [
{
"objectID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:297140",
"Name": "testNameProcessMaterial",
"Number": "123"
},
{
"objectID": "OR:com.ptc.windchill.mpml.resource.MPMProcessMaterial:297141",
"Name": "newNameProcessMaterialSub",
"Number": "122343"
}
]
}