Updating Attributes of SequenceUsageLinks
To update the out of the box (OOTB) attributes of an existing SequenceUsageLink object, you must first check out the Sequence object with which it is associated. You can also update modeled and all other types of attributes, including IBAs such as enumerated lists.
If you perform Undo Checkout on the Sequence object, the changes are rolled back. When you update the SequenceUsageLink object, the version of the associated Sequence will be iterated upon checking it in. To update the SequenceUsageLink object, you must specify the link OID in the request body.
To update an attribute, you must specify the value with its valid internal name. If a constraint is applied to the attribute, you must specify the internal name of the value specified in the constraint.
If you want to clear the value of an attribute, you can specify its value as null in the request.
If you do not specify an attribute in the request body, then the attribute retains its existing value.
* 
You cannot modify the following attributes: Category, CreatedOn, LastModified, Sequence Number, uniqueIdentifier.
Example: Updating Attributes of a SequenceUsageLink Object
This example shows you how to update the attributes of a SequenceUsageLink object for a specific Process Plan. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/SequenceHolders('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:200667')/PTC.MfgProcMgmt.UpdateSequenceUsageLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"SequenceUsageLink": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequenceUsageLink:202614",
"BranchingLag": {
"Precision": 0,
"Unit": "s",
"Value": 1
},
"BranchingOperation": "0020",
"BranchingType": "start_start",
"ReturnLag": {
"Precision": 0,
"Unit": "s",
"Value": 2
},
"ReturnOperation": "0030",
"ReturnType": "finish_finish"
}
]
}
Example: Updating Attributes of Multiple SequenceUsageLink Objects
This example shows you how to update the attributes of two SequenceUsageLink objects for a specific Process Plan. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/SequenceHolders('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:200667')/PTC.MfgProcMgmt.UpdateSequenceUsageLink
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"SequenceUsageLink": [
{
"ID": "OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequenceUsageLink:202614",
"BranchingLag": {
"Precision": 0,
"Unit": "s",
"Value": 1
},
"BranchingOperation": "0020",
"BranchingType": "start_start",
"ReturnLag": {
"Precision": 0,
"Unit": "s",
"Value": 2
},
"ReturnOperation": "0030",
"ReturnType": "finish_finish"
},
{
"ID": "OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequenceUsageLink:202738",
"BranchingLag": {
"Precision": 0,
"Unit": "min",
"Value": 3
},
"BranchingOperation": "0030",
"BranchingType": "start_finish",
"ReturnLag": {
"Precision": 0,
"Unit": "min",
"Value": 2
},
"ReturnOperation": "0040",
"ReturnType": "finish_start"
}
]
}
Was this helpful?