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

Adobe Target Community Q&A Coffee Break: On Wednesday, February 1 at 8am PT, Brent Kostak of the Adobe Target Product team will be joining us to answer your Target questions. To register and for more information, follow the link to the right.

When trying to create AB-Test from API - Invalid Json. Unrecognized property name 'offerLocations'


Level 1

I am trying to create an AB-Test using the ADOBE-API as documented at

but I keep getting the following error: 


{"httpStatus":400,"requestId":"74yQITxUwTToiaoReIMQinnYYciKGF2e","requestTime":"2021-11-16T09:59:49.745818Z","errors":[{"errorCode":"InvalidProperty.Json","message":"Invalid Json. Unrecognized property name 'offerLocations'. Location: line - 12, column - 32.","meta":{"propertyName":"offerLocations","line":12,"column":32}}]}


When I tried to remove the "offerLocations" property from the JSON I get the following error:

{"httpStatus":500,"requestId":"QeSREncBAFbTqweswA4CpS5F4t5yGSiM","requestTime":"2021-11-16T09:51:19.139933Z","errors":[{"errorCode":"INTERNAL_SERVER_ERROR.Service","message":"Internal Server Error","meta":{}}]}


My API Call's Json looks as following:

"name": "My New Activity",
"startsAt": "2021-11-11T08:00Z",
"endsAt": "2021-12-12T07:59:59Z",
"state": "saved",
"priority": 100,
"experiences": [
"experienceLocalId": 0,
"name": "ben0",
"visitorPercentage": 50,
"offerLocations": [ ]
"experienceLocalId": 1,
"name": "ben1",
"visitorPercentage": 50,
"offerLocations": []
"metrics": [
"metricLocalId": 32767,
"name": "goal",
"conversion": true,
"mboxes": [
"name": "order-complete",
"successEvent": "mbox_shown"
"action": {
"type": "count_once"
"workspace": "api-generated-ab-tests",
"propertyIds": [


When I call the listing of existing ab-tests I am able to get a valid answer from ADOBE's API

0 Replies