Example: Deleting Received BAC Deliveries
The following example demonstrates how to delete the imported BAC package. Use the following POST URI with the request body:
URI
POST /Windchill/servlet/odata/v2/BACMgmt/DeleteBACReceivedDeliveries HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"BACReceivedDeliveries": [
{
"ID": "OR:com.ptc.windchill.bac.delivery.BACReceivedDelivery:188230"
}
]
}
Response
1
Example: Deleting received packages using the DELETE action on the BACReceivedDeliveries entity
Use the following DELETE URI with the request body:
DELETE: http://pwdcsv-wcqa73d.ptcnet.ptc.com/Windchill/servlet/odata/v2/BACMgmt/BACReceivedDeliveries('OR:com.ptc.windchill.bac.delivery.BACReceivedDelivery:190391')
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"ImportMappings": [
{
"ObjectType": "USER_OBJ_TYPE",
"SourceAttrValue": "PTC_User",
"TargetAttrValue": {
"Name": "Demo, User",
"OID": "wt.org.WTUser:157940"
}
}
]
}
Response
1