Updating Identity of Operation
To update the identity of an Operation object or its subtype, you can update the attributes, Name and Number.
Example: Updating Identity of an Operation Object
This example shows you how to update all identity attributes of an Operation object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeOperationIdentity
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"identities": [
{
"objectID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:300672",
"Name": "NewNameOperation",
"Number": "123"
}
]
}
Example: Updating Identity of Multiple Operation Objects
This example shows you how to update all identity attributes of each of the two Operation objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeOperationIdentity
Request Header
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"identities": [
{
"objectID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:300674",
"Name": "NameOperation",
"Number": "123"
},
{
"objectID": "OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:300675",
"Name": "NewNameOperationSubType",
"Number": "124565323"
}
]
}
Was this helpful?