Updating Identity of Sequence
To update the identity of a Sequence object or its subtype, you can update the attributes, Name and Number.
Example: Updating Identity of a Sequence Object
This example shows you how to update all identity attributes of a Sequence object specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeSequenceIdentity
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.sequence.MPMSequence:288438",
"Name": "NewNameSequence",
"Number": "123"
}
]
}
Example: Updating Identity of Multiple Sequence Objects
This example shows you how to update all identity attributes of each of the two Sequence objects specified in the request body. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ChangeSequenceIdentity
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.sequence.MPMSequence:288439",
"Name": "NameSequence",
"Number": "123"
},
{
"objectID": "OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:288440",
"Name": "NewNameSequenceSubtype",
"Number": "123456231"
}
]
}
Was this helpful?