Example: BAC Mgmt—Export Changes to Package
The following example demonstrates how to export business administrative changes to a package. The exported changes are available in a zip file on success. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/v2/BACMgmt/Export HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"name": "73d_Profile",
"description": "",
"types": [
"Profile"
],
"objects": [
{
"identifier": "wt.org.StandardProfile:31872",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:34400",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:38610",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:36084",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:31030",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:33558",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:35242",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:37770",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:32715",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:30189",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:177420",
"type": "Profile"
},
{
"identifier": "wt.org.StandardProfile:36927",
"type": "Profile"
}
],
"startDate": "2020-08-31T00:00:00.000Z",
"endDate": "2020-10-09T00:00:00.000Z"
}
Response
The created zip file and it’s location is returned in the response:

{
"@odata.context":"http://pwdcsv-wcqa73d.ptcnet.ptc.com/Windchill/servlet/odata/v2/BACMgmt/$metadata#Edm.String",
"@PTC.AppliedContainerContext.LocalTimeZone":"Asia/Calcutta",
"value": "http://pwdcsv-wcqa73d.ptcnet.ptc.com/Windchill/servlet/WindchillGW/wt.fv.master.StandardMasterService/doDirectDownload/73d_Profile%202020-10-11-16-29-29_PTC%20BAC%20Target_0000000061.zip?folderId=174225&ft=FF&userid=12&adId=192369&fileName=000000000036c4&refsize=90022&mime=application/zip&mk=wt.fv.master.StandardMasterService&ofn=73d_Profile%202020-10-11-16-29-29_PTC%20BAC%20Target_0000000061.zip&c=37&riid=-1&sT=1602433773&sign=6%2Bt7gRhNeuACa1QMt01ylg%3D%3D&site=http%3A%2F%2Fpwdcsv-wcqa73d.ptcnet.ptc.com%2FWindchill%2Fservlet%2FWindchillGW&AUTH_CODE=HmacMD5&isProxy=true"
}