Creating a Part in a Different Organization
This example shows you how to create a part in a different organization. In Windchill, set the Expose Organization preference in the Preference Management utility to Yes. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name":"TestWTPart_001",
"AssemblyMode": {
"Value": "separable",
"Display": "Separable"
},

"PhantomManufacturingPart" : false,
"Organization@odata.bind": "Groups('OR:wt.org.WTOrganization:274098')",
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:48507000')"
}
¿Fue esto útil?