Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Batch is Empty Response when create profiles using Bulk Profile Update API v2

Avatar

Level 1

Hi 

 

I'm facing an error that seems to be common, we are trying to send batch updates to Target using API v2, but we see always the same response,

 

<response>
    <success>false</success>
    <visitorId></visitorId>
    <message>Batch is empty</message>
</response>
 
I'm using the following cURL to make the calls, 
 
curl --location --request POST 'https://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate' \
--header 'Authorization: Bearer <<TOKEN>>' \
--data-binary '@BATCH.TXT'
 
The contents of the BATCH.txt file are like this:
batch=thirdPartyId,param1,param2
id1,value1,value1
id2,value2,value2
 
I've search here and find some comments regarding this APÌ isn't working on Postman, so we tried via unix and get the same response, any thoughts in whats are we messing?
1 Accepted Solution

Avatar

Correct answer by
Level 7

1.In windows machine install Ubuntu 

2.  cmd --> wsl

3. curl -X POST --header 'Authorization:Bearer xxxx' --data-binary @filesName.txt http://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate 

 

Postman is not working try from Ubuntu prompt.

 

Thank you,

Uma

View solution in original post

0 Replies

Avatar

Correct answer by
Level 7

1.In windows machine install Ubuntu 

2.  cmd --> wsl

3. curl -X POST --header 'Authorization:Bearer xxxx' --data-binary @filesName.txt http://<<CLIENT CODE>>.tt.omtrdc.net/m2/<<CLIENT CODE>>/v2/profile/batchUpdate 

 

Postman is not working try from Ubuntu prompt.

 

Thank you,

Uma