Creating a Department Data Object for a Specific Plant Data Object assigned to a Specific Parts Object
Example: Creating a Department Data Object for a Specific Plant Data Object with Specified View
This example shows you how to create a Department Data object for a specific Plant Data object that is assigned to a specific Parts object. The request creates a Department Data object for a specific Plant Data object with Manufacturing View. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/CreateDepartmentData?$expand=DepartmentData
|
You must apply $expand on DepartmentData, otherwise an empty list is returned.
|
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"parts": [
{
"ID": "OR:wt.part.WTPart:201394"
}
],
"departmentData": [
{
"@odata.type": "#PTC.BomTransformation.Logistics",
"SupplyChain": "005",
"Location": "005",
"Category": "Quality"
}
],
"view": "Manufacturing"
}