Example: BAC Mgmt —Preview Changes
The following example demonstrates how to preview all the changes in a particular type of object between two dates. Use the following POST request in the header URI
URI
POST / Windchill/servlet/odata/BACMgmt/Preview HTTP/1.1
Request Headers
Content-Type: application/json
CSRF_NONCE: <Use the value from Fetch NONCE example>
Request Body
{
"types": [
"OIR"
],
"startDate": "2020-09-20T00:00:00.000Z",
"endDate": "2020-10-09T00:00:00.000Z"
}
Response
The following is the response:
{
"@odata.context": "http://pwdcsv-wcqa73d.ptcnet.ptc.com/Windchill/servlet/odata/v2/BACMgmt/$metadata#Collection(PTC.BACMgmt.Delta)",
"@PTC.AppliedContainerContext.LocalTimeZone": "Asia/Calcutta",
"value": [
{
"oid": "wt.rule.TypeBasedRule:93313",
"type": "OIR",
"localizedType": "Object Initialization Rule",
"context": "Site",
"name": "Expression Alias",
"description": null,
"details": [
{
"key": "Object Type",
"value": "com.ptc.windchill.option.model.ExpressionAlias"
}
],
"modifiedDate": "2020-09-28T14:55:30Z",
"localizedModifiedDate": "2020-09-28 20:25:30 IST",
"modifiedBy": "wcadmin",
"action": "Create"
},
{
"oid": "wt.rule.TypeBasedRule:69502",
"type": "OIR",
"localizedType": "Object Initialization Rule",
"context": "Site",
"name": "Delivery Record",
"description": null,
"details": [
{
"key": "Object Type",
"value": "com.ptc.windchill.wp.delivery.DeliveryRecord"
}
],
"modifiedDate": "2020-09-28T14:54:04Z",
"localizedModifiedDate": "2020-09-28 20:24:04 IST",
"modifiedBy": "wcadmin",
"action": "Create"
},
{
"oid": "wt.rule.TypeBasedRule:168701",
"type": "OIR",
"localizedType": "Object Initialization Rule",
"context": "Site",
"name": "MPMSequence",
"description": null,
"details": [
{
"key": "Object Type",
"value": "com.ptc.windchill.mpml.processplan.sequence.MPMSequence"
}
],
"modifiedDate": "2020-09-28T15:00:22Z",
"localizedModifiedDate": "2020-09-28 20:30:22 IST",
"modifiedBy": "wcadmin",
"action": "Create"
}
]
}