Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC BOM Transformation Domain > Creating Multiple Department Data Objects for Each Plant Data Object in a Set of Parts Objects
Creating Multiple Department Data Objects for Each Plant Data Object in a Set of Parts Objects
Example: Creating Multiple Department Data Objects for Each Plant Data Object with Navigation Criteria and Associated Change and Specified View
This example shows you how to create multiple Department Data objects for each Plant Data object in a set of Parts objects. The request creates multiple Department Data objects for each Plant Data object with Navigation Criteria and associated Change and Design 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:210433"
},
{
"ID": "VR:wt.part.WTPart:203881"
}
],
"departmentData": [
{
"@odata.type": "#PTC.BomTransformation.Logistics",
"Category": "Process",
"Location": "001"
},
{
"@odata.type": "#PTC.BomTransformation.Logistics",
"Category": "Quality",
"Location": "002"
}
],
"NavigationCriteria": {
"ID": "OR:wt.filter.NavigationCriteria:200537"
},
"view": "Design",
"changeOid": "VR:wt.change2.WTChangeOrder2:210243"
}