updateEnrichmentMap

put

/ccadmin/v1/enrichmentMaps/{id}

Update the attribute mappings from an external source to an internal item type (profile or account).

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
Root Schema : updateEnrichmentMap_request
Type: object
Show Source
Example:
{
    "IDGraphRuleName":"mockIdGraphRuleName1",
    "configMap":[
        {
            "targetName":"numberOfOrders",
            "sourceType":"integer",
            "sourceName":"unity_numberOfOrders"
        },
        {
            "targetName":"email",
            "sourceType":"string",
            "sourceName":"unity_email"
        },
        {
            "targetName":"taxExempt",
            "sourceType":"boolean",
            "sourceName":"unity_taxExempt"
        }
    ],
    "source":"customer",
    "target":"profile",
    "subRuleName":"mockSubRuleName"
}
Nested Schema : configMap
Type: object
An array of mappings
Show Source
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateEnrichmentMap_response
Type: object
Show Source
Nested Schema : configMap
Type: object
An array of mappings
Show Source
Example Response (application/json)
{
    "IDGraphRuleName":"mockIdGraphRuleName1",
    "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"
        }
    ],
    "source":"customer",
    "target":"profile",
    "subRuleName":"mockSubRuleName"
}

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| |------------------|------------------| |55200|The request was missing the required attribute mapping data in the body.| |55201|An error occurred while trying to access the source attribute data map.| |55202|{0} is not a supported property data type. Supported data types are: {1}.| |55203|{0} is not a supported property data type. Supported data types are: {1}.| |55205|A non-empty profile map ID is required.| |55206|Profile Maps repository is not initialized.| |55207|Unable to find a profile map with id: {0}.| |55208|Corresponding types {0} for source and {1} for target are incompatible. The compatible types are: {2}.| |55209|IDGraph Rule with name {0} does not exist. Please enter an existing IDGraphRule name or create a new one.| |55210|Data Source View object with name {0} does not exist. Please enter an existing DSV name or create a new one.| |55211|Attribute {0} is not in the DSV. Please include it by modifying the DSV object or exclude it from the mapping.| |55212|Subrule with name {0} does not exist. Please enter an existing subRule name or modify the IDGraphRule object with name {1} to include it.| |55213|UnityProfileSyncService was not initialized.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top