DataMapping
Create a Data Mapping
Changed onCreate a new data mapping to connect an external data source to this Memory Store. For DATASET_CLOUDAPP and DATASET_WAREHOUSE types, validates that all mapped Trait Groups and traits exist and that dataset field data types match their respective mapped trait data types.
post/v1/ControlPlane/Stores/{storeId}/DataMappings
Request
- Base URLhttps://memory.twilio.com
- URLhttps://memory.twilio.com/v1/ControlPlane/Stores/{storeId}/DataMappings
- AuthHTTP basic
Request body
Example request
{
"displayName": "crm-contacts",
"description": "Syncs customer data from CRM dataset to profile traits",
"isEnabled": true,
"mappingTo": {
"type": "TRAITS",
"mappings": [
{
"expression": "primary_email",
"traitGroup": "Contact",
"traitName": "email"
}
]
},
"mappingFrom": {
"type": "INGRESS",
"columns": [
"first_name",
"last_name",
"email",
"favorite_color"
]
}
}Response
Data mapping creation request accepted.
Example response
{
"message": "Data mapping creation request accepted for processing."
}Changes
- breaking
removed from the
request propertyoneOflist - info
removed
CSVDATASETdiscriminator mapping keys from therequest property
- breaking
- info
added
INGRESSDATASET_CLOUDAPPDATASET_WAREHOUSEdiscriminator mapping keys to therequest property - info
added to the
request propertyoneOflist
- info