Dear community,
I've been trying to create an On Deman Segment Evaluation but I keep getting the same error (Attached in images). The link I followed is here (https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-19251) I tried using all types of Audiences (Published, Draft, using already created, and newly created audience). I have attached the body below and the URL Endpoint is (https://platform.adobe.io/data/core/ups/segment/jobs). Please guide me onto how I could resolve this issue and do not hesitate if you need any more information.
JSON Body Below :
Best regards
Sching
Solved! Go to Solution.
It is supposed to be an array of JSON body :
Hello @ChanuteJo
I have never encountered this error when attempting to create an on-demand job. Can you validate that the segment ID you are using is not missing a character?
It is supposed to be an array of JSON body :
Hello @ChanuteJo
It appears your syntax in your body is not correct.
Please update your body to include the array notation as noted below. This will execute a single segment.
[
{
"segmentId": "de252a01-c4f8-473b-99ec-341db56221ca"
}
]
you can use the following for multiple segments in a single call.
[{
"segmentId": "de252a01-c4f8-473b-99ec-341db56221ca"
},
{
"segmentId": "segment2"
},
{
"segmentId": "segment3"
}
]
Yes as others have stated it needs the brackets, even for a singular one.