Need help for Adobe Target entities reject case | Community
Skip to main content
December 1, 2023
Question

Need help for Adobe Target entities reject case

  • December 1, 2023
  • 0 replies
  • 384 views

Hi, all,  might need some help for how we could getting Adobe Target /entities API call to return the error of "rejected" defined in https://developer.adobe.com/target/administer/recommendations-api/#tag/Entities/operation/saveEntities

I'm doing this for Unit testing in our Java code, however,  it seems I couldn't get to this case, the response shall be looking like:

 

public static final String JSON_RESPONSE_REJECT = "{\"inserted/updated\":0, \"rejected\":1, \"rejectCauses\":[{\"cause\": {\"key\": \"123\", " +
"\"keyArguments\": [\"someArguments\"], \"text\": \"someText\"}, \"occurrences\": 1}]}";

 

And the doc is not clear enough,   it just mentioned "Error messages that caused the rejection of entities. Details can be found in cause.text.",  and I couldn't find the cause.text anywhere.

Anyone knows how we could make Adobe Target entities API reject the payload and return the similar response?  (Not 400 error validating JSON format)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.