Creation of multiple Test Profiles in AEP through API
How to create multiple Test Profiles in AEP through API in a one go
How to create multiple Test Profiles in AEP through API in a one go
Hey @sourjodipma1
It would look something like this!
I formatted it as a CURL so that you can import it right into Postman, or whatever your API client preference is.
curl -X POST \
'https://platform.adobe.io/data/core/upsert' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'x-gw-ims-org-id: YOUR_ORG_ID' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'x-sandbox-name: YOUR_SANDBOX_NAME' \
-H 'Content-Type: application/json' \
-d '[
{
"identityMap": {
"email": [
{
"id": "test_user_A@example.com",
"primary": true
}
]
},
"_xdm": {
"testProfile": true
}
},
{
"identityMap": {
"ECID": [
{
"id": "98765432109876543210987654321098",
"primary": true
}
]
},
"_xdm": {
"testProfile": true
}
},
{
"identityMap": {
"CRM_ID": [
{
"id": "CRM007",
"primary": true
}
]
},
"_xdm": {
"testProfile": true
}
}
]'
Obviously make sure and update your identity map to the correct path and values, but this should do the trick for you via the API!
If it doesn't, you could also create a schema and dataset with the testProfile attribute, after which you can upload large amounts of profiles to flag and you could do this via query service jobs (which you could schedule via API!) or with a local file upload source ingestion.
Let me know if you need a hand with any of these methods, but this should do the trick for you!
Best,
Tyler Krause
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.