Saving Import Mappings
The following example demonstrates how to create and save mapping between the source attribute value and the target attribute value. Use the following POST URI with the request body:
URI
POST /Windchill/servlet/odata/BACMgmt/SaveImportMappings HTTP/1.1
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
{
"@odata.context": "http://pwdcsv-wcqa73d.ptcnet.ptc.com/Windchill/servlet/odata/v2/BACMgmt/$metadata#Edm.Boolean",
"@PTC.AppliedContainerContext.LocalTimeZone": "Asia/Calcutta",
"value": true
}
The flag is set to true indicating success of the saved mapping.