Updating Product Effectivities for a Process Plan/Operation/Sequence
You can update single or multiple product effectivities (Date, Lot, Unit, or Serial) for a Process Plan, Operation, Sequence, or its subtype.
* 
The request fails and returns an error if you—
Specify an invalid object OID.
Do not provide all required attributes.
Specify an invalid effectivity context, effectivity range, or effectivity format.
Provide a Trace Code that is not compatible with the specified effectivity type.
Request to change the effectivity type.
Example: Updating Product Date Effectivities for a Process Plan
This example shows you how to update two product Date effectivities for a Process Plan specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('OR:com.ptc.windchill.mpml.processplan.MPMProcessPlan:200842')/PTC.MfgProcMgmt.ModifyEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205014",
"EffectivityQualifier": {
"Value": "NO_LATER_THAN"
}
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205016",
"EffectivityQualifier": {
"Value": "EXACT"
}
}
]
}
Example: Updating Product Date Effectivities for an Operation
This example shows you how to update two product Date effectivities for an Operation specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:203874')/PTC.MfgProcMgmt.ModifyEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205014",
"EffectivityQualifier": {
"Value": "NO_LATER_THAN"
}
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205016",
"EffectivityQualifier": {
"Value": "EXACT"
}
}
]
}
Example: Updating Product Date Effectivities for a Sequence
This example shows you how to update two product Date effectivities for a Sequence specified in the request URI. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/ProcessPlans('OR:com.ptc.windchill.mpml.processplan.sequence.MPMSequence:203904')/PTC.MfgProcMgmt.ModifyEffectivities
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Effectivities": [
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205014",
"EffectivityQualifier": {
"Value": "NO_LATER_THAN"
}
},
{
"ID": "OR:wt.effectivity.WTDatedEffectivity:205016",
"EffectivityQualifier": {
"Value": "EXACT"
}
}
]
}