Updating an AXL Entry
This example shows you how to update the AXL entry by adding a new vendor part. Use the following PATCH request.
URI
UPDATE /Windchill/servlet/odata/ProdMgmt/Parts('VR:wt.part.WTPart:287234')/AXLEntries('OR:com.ptc.windchill.suma.axl.AXLEntry:304030') HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"SourcingContext@odata.bind":"SourcingContexts('OR:com.ptc.windchill.suma.axl.AXLContext:93056')",
"VendorPartReference@odata.bind":"VendorParts('OR:com.ptc.windchill.suma.part.VendorPart:266317')",
"VendorPartSourcingStatus": {
"Value": "approved",
"Display": "Approved"
}