Windchill REST Services > Windchill REST Services Domain Capabilities > Examples for Basic REST Operations > Examples for the PTC Product Management Domain > Creating a Part Usage Link with Occurrences
  
Creating a Part Usage Link with Occurrences
This example shows you how to create a part usage link with occurrences. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:167652')/Uses
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Quantity" : 2,
"Unit" : {
"Value": "ea",
"Display": "Each"
},
"FindNumber" : "100",
"LineNumber" : 100,
"TraceCode": {
"Value": "0",
"Display": "Untraced"
},
"Uses@odata.bind" : "Parts('OR:wt.part.WTPart:176342')",
"Occurrences": [
{
"ReferenceDesignator": "R1",
"Location": {
"PointX": 0,
"PointY": 1,
"PointZ": 1,
"PointUnit": "m",
"AngleX": 1.04,
"AngleY": 1.04,
"AngleZ": 1.04,
"AngleUnit": "r"
}
},
{
"ReferenceDesignator": "R2",
"Location": {
"PointX": 1,
"PointY": 1,
"PointZ": 0,
"PointUnit": "m",
"AngleX": 3.14,
"AngleY": 3.14,
"AngleZ": 3.14,
"AngleUnit": "r"
}
}
]

}