Report what a decision call led to
POST/v1/decisions/:name/outcomes
Records the outcome of one call of a saved decision: the right answer for each question that the call asked, or the action taken and its result. The outcome is stored once: a second report for the same decision_id is refused. No model runs on this route, so the route needs no Jev grant.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 503
The outcome is stored.
missing_decision_id and bad_decision_id for a report without the id of the call, and bad_outcome for a report that holds no answer and no action, an answer that names no question of the call, an action without its result, or a report over the size limit.
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
A content rule of the project blocked the report (guardrail_blocked).
unknown_decision: the project has no call of that decision and that decision_id.
outcome_already_stored: the call already holds its one outcome.
The gateway has no database or the database did not answer (no_db).