getEnrichmentMap
get
/ccadmin/v1/enrichmentMaps/{id}
Get the attribute mappings from an external source to an internal item type (profile or account).
Request
Supported Media Types
- application/json
Path Parameters
-
id: string
The ID of the map.
Header Parameters
-
X-CCAsset-Language(optional): string
The asset language of the request.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : getMap_response
Type:
Show Source
object
-
configMap(optional):
object configMap
An array of mappings
-
IDGraphRuleName(optional):
string
Name of the IDGraphRule object that has been configured in Unity
-
source(optional):
string
Name of the source
-
subRuleName(optional):
string
Name of the subRule that has been configured in the DSV in Unity
-
target(optional):
string
Name of the target
Nested Schema : configMap
Type:
object
An array of mappings
Show Source
-
sourceName(optional):
string
Name of an attribute from the source
-
sourceType(optional):
string
Data type of an attribute from the source
-
targetName(optional):
string
Name of an attribute from the target
-
targetType(optional):
string
Data type of an attribute from the target
Example Response (application/json)
{
"configMap":[
{
"targetName":"numberOfOrders",
"sourceType":"integer",
"targetType":"int",
"sourceName":"unity_numberOfOrders"
},
{
"targetName":"email",
"sourceType":"string",
"targetType":"string",
"sourceName":"unity_email"
},
{
"targetName":"taxExempt",
"sourceType":"boolean",
"targetType":"boolean",
"sourceName":"unity_taxExempt"
}
],
"IDGraphRuleName":"mockIdGraphRuleName1",
"links":[
{
"rel":"self",
"href":"http://localhost:9080/ccadminui/v1/enrichmentMaps/unity-profile"
}
],
"source":"customer",
"subRuleName":"mockSubRuleName",
"target":"profile"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|55207|Unable to find a profile map with id: {0}|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code