Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Change Management Domain > Setting Pending Effectivities on Manufacturing Resources
  
Setting Pending Effectivities on Manufacturing Resources
You can set single or multiple pending effectivities (Date, Lot, Unit, or Serial) on single or multiple manufacturing resources (Process Materials, Skills, Toolings, or Work Centers) and their subtypes in the context of Change.
To set pending effectivities, you must specify the ResultingLink OIDs and the pending effectivities in the request body.
To set the pending effectivity, you must reserve the relevant change task for Edit.
* 
The request fails and returns an error if you—
Do not have Modify permissions to the existing change task related to the ResultingLink object.
Do not reserve the change task for Edit.
Specify an invalid object OID.
Do not provide all required attributes.
Specify an invalid effectivity context, effectivity range, or effectivity type.
Provide a Trace Code that is not compatible with the specified effectivity type.
Example: Setting Pending Date Effectivities
This example shows you how to set pending Date effectivities on a Process Material, Skill, Tooling, and Work Center object, respectively. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ChangeMgmt/SetPendingEffectivities?$expand=ResultingLinkItem($expand=ResultingObjects,PendingEffectivities)
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ResultingLinkItem": [
{
"ID": "OR:wt.change2.ChangeRecord2:203639"
},
{
"ID": "OR:wt.change2.ChangeRecord2:202484"
},
{
"ID": "OR:wt.change2.ChangeRecord2:203451"
},
{
"ID": "OR:wt.change2.ChangeRecord2:203260"
}
],
"PendingEffectivities": [
{
"@odata.type": "#PTC.ChangeMgmt.PendingDateEffectivity",
"EffectivityQualifier": {
"Value": "EXACT",
"Display": "Exact"
},
"PendingDateRange": {
"StartDate": "2021-09-14T00:00:00+02:00",
"EndDate": "2021-09-17T00:00:00+02:00"
}
},
{
"@odata.type": "#PTC.ChangeMgmt.PendingDateEffectivity",
"EffectivityQualifier": {
"Value": "EXACT",
"Display": "Exact"
},
"PendingDateRange": {
"StartDate": "2021-09-19T00:00:00+02:00",
"EndDate": "2021-09-22T00:00:00+02:00"
}
}
]
}
Similarly, you can set other types of pending effectivities on any or all manufacturing resources.