Creation of multiple Test Profiles in AEP through API | Community
Skip to main content
Best answer by TylerKrause

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

5 replies

DavidRoss91
Community Advisor
Community Advisor
June 2, 2025

Hi @sourjodipma1 you can create test profiles in AEP via API by adding the following to the end of the XDM entity payload:

},
            "testProfile":true
}
June 2, 2025

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

Level 4
June 2, 2025

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

KotiSyamala
Level 5
June 3, 2025

Hey @sourjodipma1 Try sending multiple messages in a single HTTP request.

Find this tutorial helpful in ingesting multiple records into a single request.

https://experienceleague.adobe.com/en/docs/experience-platform/ingestion/tutorials/streaming-multiple-messages#stream-to-a-dataset 

TylerKrause
Adobe Champion
TylerKrauseAdobe ChampionAccepted solution
Adobe Champion
June 3, 2025

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

kautuk_sahni
Community Manager
Community Manager
June 26, 2025

@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!

Kautuk Sahni