How to create multiple Test Profiles in AEP through API in a one go
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
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
Hi @SourjodipMa1 you can create test profiles in AEP via API by adding the following to the end of the XDM entity payload:
Hi @DavidRoss91 thanks for the reply, I am aware of the testProfile=True, but here I want to create multiple test profiles from Postman through API, all in a single call, i.e I want to create 10 test profiles from Postman through a single API call only
Views
Replies
Total Likes
Hello @SourjodipMa1 ,
so far i know that we cant able to create 10 test profiles in one go through API.
You can try other ways to create 10 test profiles like CSV or JSON file upload.
Thanks
AJODev
Hey @SourjodipMa1 Try sending multiple messages in a single HTTP request.
Find this tutorial helpful in ingesting multiple records into a single request.
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
@SourjodipMa1 Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies