Create/update mapping

put

/api/{version}/mapping

Versions Supported:

v4

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml; charset=UTF-8 ()
Mapping details to be added or modified.
Root Schema : schema
Type: object
Show Source
Nested Schema : createdOn
Type: object
Nested Schema : mapAttribute
Type: array
Show Source
Nested Schema : modifiedOn
Type: object
Nested Schema : MappingAttributes
Type: object
Show Source
Request Body - application/json; charset=UTF-8 ()
Mapping details to be added or modified.
Root Schema : schema
Type: object
Show Source
Nested Schema : createdOn
Type: object
Nested Schema : mapAttribute
Type: array
Show Source
Nested Schema : modifiedOn
Type: object
Nested Schema : MappingAttributes
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Success
Body ()
Root Schema : schema
Type: object
Mapping details.
Show Source
Nested Schema : createdOn
Type: object
Nested Schema : mapAttribute
Type: array
Show Source
Nested Schema : modifiedOn
Type: object
Nested Schema : MappingAttributes
Type: object
Show Source

404 Response

Requested resource could not be found.

500 Response

An unexpected error occurred during request.
Back to Top

Examples

Example Request:

/api/v4/mapping/

Example Request Body:

{"mapId":0,"mapName":"ComExpCRMMapTgtImportSRG1427874543362_1589456503233","mapDesc":"Company Export CRM Mapping with Company Daas Attributes and corresponding fusion_Crm_import attributes","mapMode":"CRM","mapType":"Export","editable":"Y","createdBy":0,"modifiedBy":0,"objectType":"Company","mapAttribute":[{"sourceAttributeId":0,"daasAttributeId":"11766","daasAttributeName":"externalId","daasAttributeType":"FIELD","targetAttributeId":10069,"targetAttributeName":"PartyId","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11608","daasAttributeName":"name.tradename","daasAttributeType":"FIELD","targetAttributeId":10070,"targetAttributeName":"PartyOrigSystem","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11605","daasAttributeName":"id","daasAttributeType":"FIELD","targetAttributeId":10071,"targetAttributeName":"PartyOrigSystemReference","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11612","daasAttributeName":"location.city","daasAttributeType":"FIELD","targetAttributeId":10325,"targetAttributeName":"DataCloudStatus","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11633","daasAttributeName":"company.an_sles_cc","daasAttributeType":"FIELD","targetAttributeId":10296,"targetAttributeName":"OrganizationName","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11630","daasAttributeName":"company.sales_volume","daasAttributeType":"FIELD","targetAttributeId":10308,"targetAttributeName":"PrefFunctionalCurrency","enrichRuleName":"UPDATE","sortOrder":0},{"sourceAttributeId":0,"daasAttributeId":"11629","daasAttributeName":"info.fax_number","daasAttributeType":"FIELD","targetAttributeId":10261,"targetAttributeName":"CurrFyPotentialRevenue","enrichRuleName":"UPDATE","sortOrder":0}]}

Example Output:

{"createdBy":"1","createdOn":"2014-03-28 09:37:13.35621","editable":"Y","mapAttribute":[{"daasAttributeDisp":"Business Name","daasAttributeId":"11386","daasAttributeMsgKey":"BUSINESS_NAME","daasAttributeName":"name.display_name","daasAttributeType":"FIELD","daasObjectName":"COMPANY","enrichRuleName":"UPDATE","sortOrder":"1","sourceAttributeDisp":"BusinessName","sourceAttributeId":"0","sourceAttributeName":"BusinessName","targetAttributeId":"0"},{"daasAttributeDisp":"City","daasAttributeId":"11393","daasAttributeMsgKey":"CITY","daasAttributeName":"location.city","daasAttributeType":"FIELD","daasObjectName":"COMPANY","enrichRuleName":"UPDATE","sortOrder":"2","sourceAttributeDisp":"City","sourceAttributeId":"0","sourceAttributeName":"City","targetAttributeId":"0"},{"daasAttributeDesc":"DUNSNumber","daasAttributeDisp":"DUNSNumber","daasAttributeId":"11388","daasAttributeMsgKey":"DUNSNUMBER","daasAttributeName":"company.duns_number","daasAttributeType":"FIELD","daasObjectName":"COMPANY","enrichRuleName":"UPDATE","sortOrder":"3","sourceAttributeDisp":"dunsnumber","sourceAttributeId":"0","sourceAttributeName":"dunsnumber","targetAttributeId":"0"}],"mapId":"10022","mapName":"testCompany1","mapType":"ENRICH","modifiedBy":"1","modifiedOn":"2014-03-28 09:46:25.833645","objectType":"COMPANY"}

Error Response Details:

{"errorMessage":"DCS-3034 : An error occurred while saving the map because input contains an attribute for which attribute type is not specified. Action: Update the input map request and try again"}
Back to Top