Deleting Received BAC Deliveries
You can delete the changes exported or imported for any of the existing object types.
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/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 a Received Delivery Using the DELETE Action
Use the following DELETE URI with the request body:
DELETE /Windchill/servlet/odata/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
Was this helpful?