Skip to main content
TylerKrause
TylerKrauseAccepted solution
Adobe Champion and User Group Leader
Jun 3, 2025 2:19 PM UTC

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

6 replies

DavidRoss91
Community Advisor
Community Advisor
Jun 2, 2025 11:47 AM UTC

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
}
Translate
David Ross
Level 2
Jun 2, 2025 12:28 PM UTC

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

Translate
Level 4
Jun 2, 2025 3:51 PM UTC

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

Translate
KotiSyamala
Level 5
Jun 3, 2025 12:02 AM UTC

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 

Translate
TylerKrause
Adobe Champion and User Group Leader
TylerKrauseAdobe Champion and User Group LeaderAccepted solution
Adobe Champion and User Group Leader
Jun 3, 2025 2:19 PM UTC

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

Translate
kautuk_sahni
Level 9
Jun 26, 2025 2:42 PM UTC

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

Translate
Kautuk Sahni