Creating a Supplier Part for a Supplier Organization
Using this request, you can create a part for the owning organization specified while creating the part.
To create a part using this request, set the Expose Organization preference to Yes in the Preference Management utility in Windchill.
* 
In the Preference Management utility in Windchill, if the Expose Organization and Expose Organization Only for Windchill Supplier Management Parts preferences are set to Yes and the Expose Organization for Change Management Objects preference is set to No, then only the supplier management parts can be created.
Example: Creating a Supplier Part for a Supplier Organization
This example shows you how to create a supplier part (here, manufacturer part) for a supplier organization by providing the owning supplier organization OID (here, manufacturer organization) in the request body.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/Parts
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "TestMfgPart",
"@odata.type": "#PTC.ProdMgmt.ManufacturerPart",
"Organization@odata.bind": "Organizations('OR:wt.org.WTOrganization:206773')",
"EndItem": false,
"ConfigurableModule": {
"Value": "standard",
"Display": "No"
},
"AssemblyMode": {
"Value": "separable"
},
"DefaultUnit": {
"Value": "ea"
},
"DefaultTraceCode": {
"Value": "L"
},
"GatheringPart": false,
"PhantomManufacturingPart": false,
"Source": {
"Value": "buy"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:118301')"
}
The request creates the TestMfgPart part for the specified supplier organization.
Example: Creating a Manufacturer Part for a Manufacturer Organization
This example shows you how to create a manufacturer part for a manufacturer organization by providing the owning manufacturer organization OID in the request body.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/ManufacturerParts
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "TestMfgPart1",
"@odata.type": "#PTC.ProdMgmt.ManufacturerPart",
"Organization@odata.bind": "Organizations('OR:wt.org.WTOrganization:206773')",
"EndItem": false,
"ConfigurableModule": {
"Value": "standard",
"Display": "No"
},
"AssemblyMode": {
"Value": "separable"
},
"DefaultUnit": {
"Value": "ea"
},
"DefaultTraceCode": {
"Value": "L"
},
"GatheringPart": false,
"PhantomManufacturingPart": false,
"Source": {
"Value": "buy"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:118301')"
}
The request creates the TestMfgPart1 part for the specified manufacturer organization.
Example: Creating a Vendor Part for a Vendor Organization
This example shows you how to create a vendor part for a vendor organization by providing the owning vendor organization OID in the request body.
Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/ProdMgmt/VendorParts
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"Name": "TestVendorPart",
"@odata.type": "#PTC.ProdMgmt.VendorPart",
"Organization@odata.bind": "Organizations('OR:wt.org.WTOrganization:500152')",
"EndItem": false,
"ConfigurableModule": {
"Value": "standard",
"Display": "No"
},
"AssemblyMode": {
"Value": "separable"
},
"DefaultUnit": {
"Value": "ea"
},
"DefaultTraceCode": {
"Value": "L"
},
"GatheringPart": false,
"PhantomManufacturingPart": false,
"Source": {
"Value": "buy"
},
"Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:118301')"
}
The request creates the TestVendorPart part in the specified vendor organization.
War dies hilfreich?