Expand my Community achievements bar.

Join us on September 25th for a must-attend webinar featuring Adobe Experience Maker winner Anish Raul. Discover how leading enterprises are adopting AI into their workflows securely, responsibly, and at scale.
SOLVED

Creation of multiple Test Profiles in AEP through API

Avatar

Level 1

How to create multiple Test Profiles in AEP through API in a one go

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 5

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

View solution in original post

6 Replies

Avatar

Community Advisor

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
}

Avatar

Level 1

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

Avatar

Level 5

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

Avatar

Level 5

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-multipl... 

Avatar

Correct answer by
Level 5

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

Avatar

Administrator

@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