Example: Allocating a Work Center to an Operation
Allocating a Work Center to an Operation
This example shows you how to allocate a Work Center to an operation. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/MfgProcMgmt/Operations('OR:com.ptc.windchill.mpml.processplan.operation.MPMOperation:243732')/PTC.MfgProcMgmt.AssociateWorkCenter HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"OperationToWorkCenterLink": {
"Description": null,
"Department": "",
"WorkCenter@odata.bind": "WorkCenters('OR:com.ptc.windchill.mpml.resource.MPMWorkCenter:233848')"
},
"doCopyOverDefaultCostAndTime": true
}