Submit Event Feedback

Hand off to an LLM

Submit a correction for an event.

Accepts training corrections for extract, classify, and join events. For extract/join events, correction is a JSON object matching the function's output schema. For classify events, correction is a JSON string matching one of the function version's declared classifications.

Submitting feedback again for the same event overwrites the previous correction.

Unsupported function types (split, enrich) return 400.

POST
/v3/events/{eventID}/feedback
x-api-key<token>

Authenticate using API Key in request header

In: header

Path Parameters

eventID*string

The unique identifier of the event being corrected.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://api.bem.ai/v3/events/string/feedback" \  -H "Content-Type: application/json" \  -d '{    "correction": null  }'
{
  "eventID": "string",
  "functionType": "extract",
  "correction": null,
  "createdAt": "2019-08-24T14:15:22Z"
}

See also