SuggestionBatchResponse
The result of a batch POST. Always 200, even when some events failed:
the ones that succeeded really were stored. Check num_errors and the
per-item status values — do not rely on the status code alone.
200True for a batch that was processed, whether or not individual events failed. It reports that the request was understood, not that every event was accepted.
true/api/v1/suggestionsitem_results object[]
One result per event you sent, in the order you sent them.
The event's position in the suggestions array you sent. Results are
returned in that order, so this is also the index of this result — but
match on it rather than assuming, and it stays correct if that ever
changes.
0The source_id of the event, echoed back so a result can be tied to its
input without counting positions. Null if the event carried none.
jxfeed-alice-20260914-a91c3fThe outcome:
created— a new suggestion was added.updated— an existing suggestion matching thissource_idwas changed.unchanged— a match was found and nothing about it differed. Not an error; re-sending an unchanged feed is expected to land here.error— the event was refused. Seeerror.
Possible values: [created, updated, unchanged, error]
createdThe suggestion's ID. Present on created, updated, and unchanged;
absent on error.
97Why the event was refused. Present only when status is error.
A suggestion needs a start and end.How many new suggestions were added.
2How many existing suggestions were changed.
0How many matched an existing suggestion with nothing to change.
0How many events were refused.
1{
"response_code": 200,
"success": true,
"uri": "/api/v1/suggestions",
"item_results": [
{
"index": 0,
"source_id": "jxfeed-alice-20260914-a91c3f",
"status": "created",
"id_suggestion": 97,
"error": "A suggestion needs a start and end."
}
],
"num_created": 2,
"num_updated": 0,
"num_unchanged": 0,
"num_errors": 1
}