Creating a Department Data Object for a Set of Plant Data Objects
This example shows you how to create a Department Data object for each Plant Data object in a set of Plant Data objects. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BomTransformation/CreateDepartmentDataForPlantData?$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
{
"plantData": [
{
"ID": "OR:com.ptc.windchill.enterprise.data.EnterpriseData:200886"
},
{
"ID": "OR:com.ptc.windchill.enterprise.data.EnterpriseData:200887"
}
],
"departmentData": [
{
"@odata.type": "#PTC.BomTransformation.Logistics",
"Category": "process",
"Location": "004",
"SupplyChain": "005"
}
]
}