On Demand Segment Evaluation | Community
Skip to main content
Level 3
April 1, 2025
Solved

On Demand Segment Evaluation

  • April 1, 2025
  • 4 replies
  • 765 views

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 : 

{
   "segmentId": "de252a01-c4f8-473b-99ec-341db56221ca"
}



Best regards

Sching

Best answer by KotiSyamala

It is supposed to be an array of JSON body : 

4 replies

DavidRoss91
Community Advisor
Community Advisor
April 1, 2025

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?

KotiSyamala
KotiSyamalaAccepted solution
Level 5
April 1, 2025

It is supposed to be an array of JSON body : 

brekrut
Adobe Employee
Adobe Employee
April 1, 2025

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" } ]
TylerKrause
Adobe Champion
Adobe Champion
April 1, 2025

Yes as others have stated it needs the brackets, even for a singular one. 

[
    {
    "segmentId": "segmentIDHERE"
    }
]

I totally understand your confusion though, the documentation you sited was incorrect!