Exporting Changes to a Package
You can export administrative changes for any of the created or updated object types that are supported for business administrative change promotion.
Example: Exporting Profile Changes
The following example demonstrates how to export business administrative changes for profile object types 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/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 its 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"
}
Example: Exporting Document Template Changes
The following example demonstrates how to export changes for a document template object type to a package. In this example, the document template is created at the Site level. The exported document template changes are available in a zip file on success. Use the following POST URI with the request body.
URI
POST /Windchill/servlet/odata/BACMgmt/Export HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"name": "TestDocExport1",
"description": "",
"types": [
"DocumentTemplate"
],
"objects": [
{
"identifier": "wt.doc.WTDocument:177406",
"type": "DocumentTemplate"
}
],
"startDate": "2022-08-31T00:00:00.000Z",
"endDate": "2022-10-09T00:00:00.000Z"
}
Response
The created zip file and its location is returned in the response:
{
"@odata.context": "http://pwdcsv-wpa05d.ptcnet.ptc.com:8007/Windchill/servlet/odata/v2/BACMgmt/$metadata#Edm.String",
"@PTC.AppliedContainerContext.LocalTimeZone": "Asia/Calcutta",
"value": "http://pwdcsv-wpa05d.ptcnet.ptc.com:8007/Windchill/servlet/WindchillGW/wt.fv.master.StandardMasterService/doDirectDownload/TestDocExport1%202022-10-07-06-25-14_PTC%20BAC%20Target_0000000007.zip?folderId=170525&ft=FF&userid=12&adId=178383&fileName=00000000002f45&refsize=27982&mime=application/zip&mk=wt.fv.master.StandardMasterService&c=0&riid=-1&sT=1665123919&sign=gbuTfQNI5078CC29m%2B7t2IPLaao9lEQvgpKI7QApi4g%3D&site=http%3A%2F%2Fpwdcsv-wpa05d.ptcnet.ptc.com%3A8007%2FWindchill%2Fservlet%2FWindchillGW&AUTH_CODE=HmacSHA256&isProxy=true"
}